PUT/api/v2/identities/{id}/suspension
security:manageAPI token
Some changes in this call need a fresh second factor. A token cannot give a second factor, so such a change gets 403 auth.api_token_not_allowed. Make it in the console.
Suspend a person: no sign-in method opens the console for them, their console sessions end and their API tokens stop working. Access rules and groups stay. Needs a fresh second factor.
Parameters
Path1 required of 1
idstringpathrequired
Identity ID (UUID)
Responses
200
The person is suspended
IdentitySuspensionResponse · 3 fields
suspendedbooleanrequired
reasonstring
Who suspended the person, an administrator or a connector that no longer finds them.
administratorconnectorsuspended_atstring · date-time
400
The ID is not a UUID, the person is you or not a person.
401
Authentication required
403
Forbidden or a fresh second factor is needed
Common errors: 404 409 413 429 500 504. They mean the same for every operation, see Errors.