PATCH /users/:id/identity/username

PATCH /users/{id}/identity/username

Update the username of the user

Path parameters

  • id integer(int64) Required

    ID of the resource to fetch

Body Required

Responses

  • successful operation

    Hide response attribute Show response attribute object
  • Bad Request

  • Authorization information is missing or invalid.

  • Unprocessable Entity

  • Server Error

PATCH /users/{id}/identity/username
curl \
 -X PATCH https://api.cosmily.com/api/v1/users/{id}/identity/username \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"username":"john_doe"}'
Request example
{
  "username": "john_doe"
}
Request examples
{
  "username": "john_doe"
}
Response examples (200)
{
  "success": "string"
}
Response examples (200)
{
  "success": "string"
}