Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
displayName
string
required
type
enum<string>
default:RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED
required

Values become selectable enumerable options.

Available options:
RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED,
RESOURCE_ATTRIBUTE_KEY_TYPE_ENUM,
RESOURCE_ATTRIBUTE_KEY_TYPE_BOOLEAN,
RESOURCE_ATTRIBUTE_KEY_TYPE_NUMBER,
RESOURCE_ATTRIBUTE_KEY_TYPE_SET_OF_ENUM
description
string
initialEnumValues
object[]

Optional initial enum values to create alongside the key. Only applicable for ENUM type keys.

Response

A successful response.

resourceAttributeKey
object
required

A ResourceAttribute Key defines an attribute that can be assigned to Entities for the purpose of attribute based access control (ABAC).

enumValues
object[]

The enum values created alongside the key, if any were provided in the request.