Create purpose
Create a new purpose in Atlan.
Note that while it is technically possible to define policies at the same time as creating the purpose itself, this does run the risk of timeouts for the creation API call. Therefore, even though these lists are required in the request payload, it is recommended to send them as empty arrays for the create request.
Instead, create and update policies in subsequent requests, not the initial purpose creation request.
Body Required
Purpose to create.
-
id string | null
Unique identifier of the purpose.
-
name string Required
Unique system name for the purpose. This will generally be the same as the
displayName
, but must be unique. -
displayName string | null Required
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 \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"PII Protection","displayName":"PII Protection","tags":["rXlsT2vyr7mYtH1aCNLU6F"],"metadataPolicies":[],"dataPolicies":[]}'
{
"name": "PII Protection",
"displayName": "PII Protection",
"tags": [
"rXlsT2vyr7mYtH1aCNLU6F"
],
"metadataPolicies": [],
"dataPolicies": []
}
{
"id": "3f35d508-4f43-48d3-84e3-889c13571f1c",
"version": "small-sun-5855",
"isActive": true,
"createdAt": 1655214527401,
"updatedAt": 1655214527401,
"createdBy": "service-account-apikey-e8d1f0bd-600e-4a8a-9248-b7c9aa1ef8c3",
"description": null,
"displayName": "PII Protection",
"name": "PII Protection",
"dataPolicies": [],
"metadataPolicies": [],
"tags": [
"rXlsT2vyr7mYtH1aCNLU6F"
],
"level": "workspace",
"enabled": true,
"readme": null,
"resources": null,
"attributes": null
}
{
"code": 1000,
"error": "Please check your request parameters",
"info": null,
"message": "another policy exists for matching resource",
"requestId": "j2SgQ6TgeU0LvhncusUTo69QbOoW6xBV"
}