Skip to main content
PUT
/
users
/
{user_id}
Update a user
curl --request PUT \
  --url https://api-dev.narrative.io/users/{user_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "name": "<string>",
  "id": 20
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
integer<int64>
required

The user id

Example:

20

Body

application/json
name
string

User name

Response

200 - application/json

OK

name
string

User name

id
integer<int64>
Example:

20