cURL
curl --request PATCH \ --url http://api.attention.tech/v2/scim/Users/{id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "schemas": [ "urn:ietf:params:scim:api:messages:2.0:PatchOp" ], "Operations": [ { "op": "replace", "value": { "active": false } } ] }'
{ "id": "d0dd58e43ded4293a61a8760fcba0458", "externalId": "00ustvXq1A8UAuobW0f5", "meta": { "created": "04-17-2020 00:00:00", "lastModified": "04-17-2020 00:00:00", "version": "v1.0" }, "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User", "urn:scim:schemas:extension:okta:1.0" ], "userName": "steph.c@example.com", "displayName": " Steph Curry", "preferredLanguage": "en", "locale": "en-US", "timezone": "America/Los_Angeles", "active": true, "emails": [ { "value": "steph.c@example.com", "type": "work", "primary": true } ], "phoneNumbers": [ { "value": "123-444-5555", "type": "mobile" } ], "groups": [], "name": { "familyName": "Curry", "givenName": "Steph" }, "urn:okta:onprem_app:1.0:user:custom": { "roleUUID": "84e67f54-5157-442b-a2b3-8b9c728b2fef" } }
Partially updates a user.
SCIM ID of the user
[ "urn:ietf:params:scim:api:messages:2.0:PatchOp"]
Show child attributes
User patched successfully
Was this page helpful?