Skip to content

Upload author photo

POST
/api/v1/authors/{authorId}/photo/upload
curl --request POST \
--url http://127.0.0.1:58259/api/v1/authors/1/photo/upload \
--header 'Content-Type: application/json' \
--data '{ "file": "binary" }'

Upload a photo for an author from a file.

authorId
required
integer format: int64

ID of the author

Media type application/json
object
file
required

Photo image file

string format: binary
Example generated
{
"file": "binary"
}

Author photo uploaded successfully