PATCH /users/:id/profile_picture

PATCH /users/{id}/profile_picture

Patch user profile_picture

Path parameters

  • id integer(int64) Required

    ID of the resource to fetch

application/json

Body Required

Responses

  • 200

    successful operation

    Hide response attributes Show response attributes array[object]
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 404

    User Not Found

  • 500

    Server Error

PATCH /users/{id}/profile_picture
curl \
 -X PATCH https://api.cosmily.com/api/v1/users/{id}/profile_picture \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"image":"string"}'
Request example
{
  "image": "string"
}
Response examples (200)
[
  {
    "id": 42,
    "user_id": 42,
    "image": "string",
    "url": "string"
  }
]