PATCH
/
unified
/
iam
/
users
/
{id}
curl --request PATCH \
  --url https://api.stackone.com/unified/iam/users/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --header 'x-account-id: <x-account-id>' \
  --data '{
  "primary_email_address": "han@stackone.com",
  "first_name": "Han",
  "last_name": "Solo",
  "name": "Han Solo",
  "username": "hansolo1977",
  "is_bot_user": true,
  "status": {
    "value": "enabled",
    "source_value": "<string>"
  },
  "passthrough": {
    "other_known_names": "John Doe"
  }
}'
{
  "statusCode": 200,
  "message": "Record updated successfully.",
  "timestamp": "2021-01-01T01:01:01.000Z"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

x-account-id
string
required

The account identifier

Path Parameters

id
string
required

Body

application/json

Response

200
application/json

Record updated successfully.

The response is of type object.