Add metadata policy
POST
/api/service/personas/{id}/policies#metadata
Add a single metadata policy to a persona.
Path parameters
-
id string Required
Unique identifier of the persona to which to add the policy.
Body Required
Details of the policy to add to the persona.
POST /api/service/personas/{id}/policies#metadata
curl \
-X POST https://tenant.atlan.com/api/service/personas/9bee3ff8-9bf4-436f-927b-3e415fd3afe9/policies#metadata \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type":"metadataPolicy","policy":{"actions":["entity-read","entity-update","entity-create","entity-delete","entity-update-business-metadata","entity-add-classification","entity-remove-classification","add-terms","remove-terms","link-assets"],"assets":["default/snowflake/1655116256"],"connectionId":"74b02320-3b01-4896-81ea-b7ac4d5e4b9b","allow":true,"name":"Full metadata access to all of Snowflake","description":""}}'
Request example
{
"type": "metadataPolicy",
"policy": {
"actions": [
"entity-read",
"entity-update",
"entity-create",
"entity-delete",
"entity-update-business-metadata",
"entity-add-classification",
"entity-remove-classification",
"add-terms",
"remove-terms",
"link-assets"
],
"assets": [
"default/snowflake/1655116256"
],
"connectionId": "74b02320-3b01-4896-81ea-b7ac4d5e4b9b",
"allow": true,
"name": "Full metadata access to all of Snowflake",
"description": ""
}
}
Response example (200)
{
"actions": [
"entity-read",
"entity-update",
"entity-create",
"entity-delete",
"entity-update-business-metadata",
"entity-add-classification",
"entity-remove-classification",
"add-terms",
"remove-terms",
"link-assets"
],
"allow": true,
"assets": [
"default/snowflake/1655116256"
],
"connectionId": "74b02320-3b01-4896-81ea-b7ac4d5e4b9b",
"createdAt": 1655221417218,
"createdBy": "service-account-apikey-e8d1f0bd-600e-4a8a-9248-b7c9aa1ef8c3",
"description": "",
"id": "dca8c163-40a7-4cab-9f92-2863a22a4188",
"name": "Full metadata access to all of Snowflake"
}