Skip to Content
Docs

Update user by id

PUT
/organizations/{organizationId}/users/{userId}

required scopes: contextual:users:update

Authorization

jwt
headerAuthorizationBearer <JWT>

Path Parameters

Request Body

application/json
  1. body
roles*array<>
Items1 <= items

Response Body

application/json
  1. response
id*string
Length1 <= length
roles*array<>
Items1 <= items
fullName?string
email?string
_metaData*
Example Request
curl -X PUT 'https://auth.your-tenant-id.my.contextual.io/api/v1/organizations/{organizationId}/users/{userId}' \  -H 'Content-Type: application/json' \  -d '{  "roles": [    "string"  ]}'
Example Response
{  "id": "string",  "roles": [    "string"  ],  "fullName": "string",  "email": "string",  "_metaData": {    "id": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}