PATCH /users/:id/identity/username
Update the username of the user
Path parameters
-
ID of the resource to fetch
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"
}