Update purpose
Update a specific purpose based on its unique identifier.
Note that currently this is the only way to define policies for purposes as well. (Currently there is no separate endpoint through which to define policies individually.) Be aware that having many policies on a single purpose may lead to timeouts.
Path parameters
-
id string Required
Unique identifier of the purpose to update.
Body Required
Purpose with details to include in the update.
Note that if any policy attributes are included, then all policy attributes must be included (even if they are only empty arrays).
-
id string | null
Unique identifier of the purpose.
-
name string
Unique system name for the purpose. This will generally be the same as the
displayName
, but must be unique. -
displayName string | null
Human-readable name of the purpose. This is what is shown on the UI, and while not strictly required for creation if it is missing then no name will be displayed for the purpose in the UI.
-
description string | null
Meaningful explanation for what the purpose represents or how it is used.
-
metadataPolicies array[object] | null Required
Instance of metadata policy on a purpose in Atlan, with its detailed information.
-
dataPolicies array[object] | null Required
Instance of data policy on a purpose in Atlan, with its detailed information.
-
readme string | null
URL-encoded HTML representing the richly-formatted readme for the purpose.
curl \
-X POST https://tenant.atlan.com/api/service/purposes/3f35d508-4f43-48d3-84e3-889c13571f1c \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"PII Protection","description":"Data protection for all personally-identifiable information.","tags":["rXlsT2vyr7mYtH1aCNLU6F"],"metadataPolicies":[{"actions":["entity-remove-classification"],"allow":false,"name":"Deny access to remove classifications","description":"","users":[],"groups":[],"allUsers":true,"type":"metadata"}],"dataPolicies":[{"actions":["select"],"mask":"heka:MASK_REDACT","allow":true,"name":"Redact all PII","description":"","users":[],"groups":[],"allUsers":true,"type":"masking"}]}'
{
"name": "PII Protection",
"description": "Data protection for all personally-identifiable information.",
"tags": [
"rXlsT2vyr7mYtH1aCNLU6F"
],
"metadataPolicies": [
{
"actions": [
"entity-remove-classification"
],
"allow": false,
"name": "Deny access to remove classifications",
"description": "",
"users": [],
"groups": [],
"allUsers": true,
"type": "metadata"
}
],
"dataPolicies": [
{
"actions": [
"select"
],
"mask": "heka:MASK_REDACT",
"allow": true,
"name": "Redact all PII",
"description": "",
"users": [],
"groups": [],
"allUsers": true,
"type": "masking"
}
]
}
{
"id": "3f35d508-4f43-48d3-84e3-889c13571f1c",
"version": "calm-sound-3764",
"isActive": true,
"createdAt": 1655214527401,
"updatedAt": 1655218897319,
"createdBy": "service-account-apikey-e8d1f0bd-600e-4a8a-9248-b7c9aa1ef8c3",
"updatedBy": "service-account-apikey-e8d1f0bd-600e-4a8a-9248-b7c9aa1ef8c3",
"description": null,
"displayName": "PII Protection",
"name": "PII Protection",
"dataPolicies": [
{
"actions": [
"select"
],
"allUsers": true,
"allow": true,
"createdAt": 1655218897318,
"createdBy": "service-account-apikey-e8d1f0bd-600e-4a8a-9248-b7c9aa1ef8c3",
"description": "",
"groups": [],
"id": "3ec4ac32-1068-43a2-b367-5862a099f77b",
"mask": "heka:MASK_REDACT",
"name": "Redact all PII",
"type": "masking",
"updatedAt": 1655218897318,
"updatedBy": "service-account-apikey-e8d1f0bd-600e-4a8a-9248-b7c9aa1ef8c3",
"users": []
}
],
"metadataPolicies": [
{
"actions": [
"entity-remove-classification"
],
"allUsers": true,
"allow": false,
"createdAt": 1655218466881,
"createdBy": "service-account-apikey-e8d1f0bd-600e-4a8a-9248-b7c9aa1ef8c3",
"description": "",
"groups": [],
"id": "60b55683-dd59-4e05-90a9-2779abc06c16",
"name": "Deny access to remove classifications",
"type": "metadata",
"updatedAt": 1655218897318,
"updatedBy": "service-account-apikey-e8d1f0bd-600e-4a8a-9248-b7c9aa1ef8c3",
"users": []
}
],
"tags": [
"rXlsT2vyr7mYtH1aCNLU6F"
],
"level": "workspace",
"enabled": true,
"readme": null,
"resources": null,
"attributes": null
}
{
"code": 3500,
"error": "keycloak error",
"info": "string",
"message": "Got invalid status code from keycloak",
"requestId": "2PYHURjODyNywCwRDHtK4lWoepxkoxYd"
}