Create a custom attribute

Creates a new custom attribute.

POST/v3/custom-attributes
JWTcustomAttribute:write

Request body

namestringrequired

Letters (a-z, A-Z), numbers, underscores, hyphens and dots.

Length: [1,256]Pattern: ^[a-zA-Z0-9_.-]+$

displayNamestringrequired

Any printable characters, including letters from any script, punctuation and emoji. Cannot contain line breaks, tabs, other control characters, invisible formatting characters (zero-width and bidirectional marks), and cannot start or end with whitespace.

Length: [1,256]Pattern: ^(?!\s)(?!.*\s$)[^\p{Cc}\p{Cf}\p{Zl}\p{Zp}]+$

resourceTypestringrequired

Allowed values: license, product, user, organization, reseller, activation, trial-activation

dataTypestringrequired

Allowed values: string

requiredbooleanrequired
applicationAccessstringrequired

Allowed values: none, read, read-write

userAccessstringrequired

Allowed values: none, read, read-write

organizationAccessstringrequired

Allowed values: none, read, read-write

resellerAccessstringrequired

Allowed values: none, read, read-write

defaultValuestring

Length: [0,1024]

productIdsarray of string

Response

201 Created

idstringrequired
createdAtstringrequired

Format: date-time

updatedAtstringrequired

Format: date-time

namestringrequired
resourceTypestringrequired

Allowed values: license, product, user, organization, reseller, activation, trial-activation

dataTypestringrequired

Allowed values: string

requiredbooleanrequired
archivedbooleanrequired
applicationAccessstringrequired

Allowed values: none, read, read-write

userAccessstringrequired

Allowed values: none, read, read-write

organizationAccessstringrequired

Allowed values: none, read, read-write

resellerAccessstringrequired

Allowed values: none, read, read-write

displayNamestring
defaultValuestring
productIdsarray of string

Only set for License custom attributes — the products whose licenses the attribute applies to.