SmartGare
API referenceEndpoints

Update an identity user

Updates the user's first name, last name and replacement realm roles. **Required permission:** `identity.user:write`

PATCH/identity/v1/users/{id}

Updates the user's first name, last name and replacement realm roles.

Required permission: identity.user:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Identity provider user id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*UpdateIdentityUserRequest

Response Body

*/*

curl -X PATCH "https://example.com/identity/v1/users/string" \  -H "Content-Type: application/json" \  -d '{    "first_name": "string",    "last_name": "string",    "roles": [      "string"    ]  }'
{  "email": "string",  "first_name": "string",  "id": "string",  "last_name": "string",  "last_sign_in": "2019-08-24T14:15:22Z",  "phone": "string",  "roles": [    "string"  ],  "status": "ACTIVE",  "username": "string"}