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

application/json

Body Required

Responses

  • 200

    successful operation

    Hide response attribute Show response attribute object
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 422

    Unprocessable Entity

  • 500

    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"
}
Response examples (200)
{
  "success": "string"
}