Change participant profile photo
PATCH/participants/:user_id/profile_photo
Change participant profile photo
'filename' field is expected in form data as a name of form file field. If form 'name' is provided then it will use that name as the name of the form file field instead.
Example in cURL:
curl --request PATCH
--url http://localhost:8080/api/v1/participants/1/profile_photo
--header 'Accept: application/json, application/problem+json'
--header 'Authorization: Bearer {bearer_token}'
--header 'Content-Type: multipart/form-data'
--header 'X-API-Key: {api_key}'
--form filename=@gopher8.png
--form name=profile_photo
Request
Responses
- 200
- 400
- 401
- 409
- 422
- 500
OK
Response Headers
Access-Control-Allow-Headers
Access-Control-Allow-Methods
Access-Control-Allow-Origin
Cache-Control
Content-Type
Bad Request
Unauthorized
Conflict
Unprocessable Entity
Internal Server Error