Skip to content

Upsert an attribute option

Request

OPA roles:
  • security_admin

Creates or updates the attribute option (the minimum and maximum range) for the specified namespace and attribute

Security
bearerAuth
Path
team_namestringrequired

The name of your team

namespacestringrequired

Namespace for the attribute option. Valid values are user or group.

attribute_namestringrequired

Attribute name. Valid values:

  • unix_uid, unix_gid (for user namespace)
  • unix_gid (for group namespace)
Bodyapplication/jsonrequired
attribute_namestringrequired

The attribute name. Valid values:

  • unix_uid, unix_gid (for user namespace)
  • unix_gid (for group namespace)
Enum:"unix_uid""unix_gid"
Example:"unix_uid"
detailsobject(AttributeOptionDetails)required

Attribute option details (the range for UID or GID attributes)

namespacestringrequired

Namespace for the attribute option. Valid values are user or group.

Enum:"user""group"
Example:"user"
updated_atstring, (date-time)

Timestamp of when the attribute option was last updated

curl -i -X PUT \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/attributes/options/{namespace}/{attribute_name}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "namespace": "user",
    "attribute_name": "unix_uid",
    "details": {
      "min": 1001,
      "max": 4294967295
    }
  }'

Responses

Created or updated successfully

Bodyapplication/json
attribute_namestringrequired

The attribute name. Valid values:

  • unix_uid, unix_gid (for user namespace)
  • unix_gid (for group namespace)
Enum:"unix_uid""unix_gid"
Example:"unix_uid"
detailsobject(AttributeOptionDetails)required

Attribute option details (the range for UID or GID attributes)

namespacestringrequired

Namespace for the attribute option. Valid values are user or group.

Enum:"user""group"
Example:"user"
team_idstring, (uuid)read-only

The team that the attribute option belongs to

updated_atstring, (date-time)

Timestamp of when the attribute option was last updated

Response
{ "attribute_name": "unix_uid", "details": { "max": 1001, "min": 1001 }, "namespace": "user", "team_id": "810007d0-bec5-486c-b5d1-28fcd8a079ba", "updated_at": "2019-08-24T14:15:22Z" }