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

Body Required

Responses

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"
}
Request examples
{
  "image": "string"
}
Response examples (200)
[
  {
    "id": 42,
    "user_id": 42,
    "image": "string",
    "url": "string"
  }
]
Response examples (200)
[
  {
    "id": 42,
    "user_id": 42,
    "image": "string",
    "url": "string"
  }
]