Skip to content

Update a client

Request

OPA roles:
  • resource_admin

Updates the state or assigned user for a specified client. This is required for some enrollment policies. See Silently enroll the Client.

Security
bearerAuth
Path
team_namestringrequired

The name of your team

client_idstringrequired

The UUID of a client

Bodyapplication/jsonrequired
statestring or null, <= 255 characters

The state of the client: ACTIVE, PENDING, or DELETED

user_namestring or null, <= 255 characters

The user associated with the client

curl -i -X PUT \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/clients/{client_id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "state": "ACTIVE",
    "user_name": "Jason.Compson.IV"
  }'

Responses

No Content