The Labels API enables you to categorize and organize resources such as apps, groups, entitlements, and collections. You can create, update, and assign key-value labels to resources to support automation, streamline configuration, and simplify the management of access reviews and requests.
OAuth 2.0 scope:
- okta.governance.labels.manage
Admin roles:
- SUPER_ADMIN
Creates a label that includes the key name of the label and its values
POST
curl -i -X POST \
https://okta-subdomain.pixtulate.com/governance/api/v1/labels \
-H 'Content-Type: application/json' \
-d '{
"name": "Compliance",
"values": [
{
"name": "SOX",
"metadata": {
"additionalProperties": {
"backgroundColor": "blue"
}
}
},
{
"name": "PII",
"metadata": {
"additionalProperties": {
"backgroundColor": "yellow"
}
}
}
]
}'