IAM
cURL
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" }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The account identifier
Record updated successfully.
The response is of type object.
object
Was this page helpful?