Storyden
Accounts

Account Set Avatar

Upload an avatar for the authenticated account.

POST/accounts/self/avatar

Upload an avatar for the authenticated account.

storyden-session<token>

In: cookie

Header Parameters

Content-Length*integer

Body content length in bytes.

Request Body

application/octet-stream

TypeScript Definitions

Use the request body type in TypeScript.

body?file

Response Body

application/json

curl -X POST "https://example.com/accounts/self/avatar" \  -H "Content-Length: 0" \  -H "Content-Type: application/octet-stream" \  -d 'string'
Empty
Empty
Empty
{
  "type": "string",
  "title": "string",
  "detail": "string",
  "trace_id": "string",
  "metadata": {}
}