Add a profile photo
PUT /api/v1/users/:userId/profile-photo
Description
Add a profile photo for a user.
Headers:
- Content-Type: application/json
- Authorization:
Bearer {{bearerToken}}
Path Parameters:
-
userId(Required): User ID -
URL:
/api/v1/users/:userId/profile-photo -
Response: The response is "OK" with a code of 200.
/api/v1/users/:userId/profile-photo
Headers
| Content-Type | Value |
|---|---|
| Content-Type | application/json |
Body (raw)
{
"photo": "<string>",
"userId": "<string>"
}
🔑 Authentication bearer
| Param | value | Type |
|---|---|---|
| token | bearerToken | string |
Response: 200
LANGUAGE
CURL REQUEST
curl --request PUT \
--url /api/v1/users/:userId/profile-photo \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!