shield logo
Docs
Shield

Update API User

PATCH
/realms/{REALM_ID}/clients/{CLIENT_ID}/api-users/{API_USER_ID}

Update API User

/realms/{REALM_ID}/clients/{CLIENT_ID}/api-users/{API_USER_ID}

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonOptional

bodyobject

Header Parameters

api-keystring

Path Parameters

REALM_ID
Required
string

CLIENT_ID
Required
string

API_USER_ID
Required
string

curl -X PATCH "http://{{base_url}}/realms/string/clients/string/api-users/string" \
  -H "api-key: {{MASTER_API_KEY}}" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
      // "name": "Portal preprod - 2",
      "role": "realm",
      "access": "admin",
      "expires": "1m"
      // "lock": false
  }'

Successful response

Edit on GitHub

Last updated on