Update custom metadata definitions
PUT
/api/meta/types/typedefs#customMetadata
Update one or many custom metadata types. This includes the ability to add new custom metadata properties to the custom metadata type.
Body Required
List of custom metadata types to update. The custom metadata definitions should be within the businessMetadataDefs
array.
-
businessMetadataDefs array[object] | null Required
Definition of a custom metadata type in Atlan.
PUT /api/meta/types/typedefs#customMetadata
curl \
-X PUT https://tenant.atlan.com/api/meta/types/typedefs#customMetadata \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"businessMetadataDefs":[{"category":"BUSINESS_METADATA","guid":"917ffec9-fa84-4c59-8e6c-c7b114d04be3","name":"NQCB512fDtTlLFn00Arfar","description":"Custom metadata that is specific to our organization.","typeVersion":"1.0","options":{},"serviceType":"atlan","attributeDefs":[{"name":"string","displayName":"Custom Field 1","description":"Our first custom metadata field.","typeName":"string","includeInNotification":false,"isIndexable":true,"isOptional":true,"isUnique":false,"indexType":"DEFAULT","searchWeight":42.0,"cardinality":"SINGLE","valuesMinCount":0,"valuesMaxCount":1,"defaultValue":"abc123","options":{"applicableEntityTypes":"[\"Asset\"]","customApplicableEntityTypes":"[\"Database\",\"Schema\",\"Table\"]\n","maxStrLength":"100000000","isEnum":true,"enumType":"Custom Field Status","multiValueSelect":false,"allowFiltering":true,"allowSearch":true,"primitiveType":"string","description":"Our first custom metadata field."},"constraints":[{}]}],"displayName":"Organization Specific Metadata"}]}'
Request example
{
"businessMetadataDefs": [
{
"category": "BUSINESS_METADATA",
"guid": "917ffec9-fa84-4c59-8e6c-c7b114d04be3",
"name": "NQCB512fDtTlLFn00Arfar",
"description": "Custom metadata that is specific to our organization.",
"typeVersion": "1.0",
"options": {},
"serviceType": "atlan",
"attributeDefs": [
{
"name": "string",
"displayName": "Custom Field 1",
"description": "Our first custom metadata field.",
"typeName": "string",
"includeInNotification": false,
"isIndexable": true,
"isOptional": true,
"isUnique": false,
"indexType": "DEFAULT",
"searchWeight": 42.0,
"cardinality": "SINGLE",
"valuesMinCount": 0,
"valuesMaxCount": 1,
"defaultValue": "abc123",
"options": {
"applicableEntityTypes": "[\"Asset\"]",
"customApplicableEntityTypes": "[\"Database\",\"Schema\",\"Table\"]\n",
"maxStrLength": "100000000",
"isEnum": true,
"enumType": "Custom Field Status",
"multiValueSelect": false,
"allowFiltering": true,
"allowSearch": true,
"primitiveType": "string",
"description": "Our first custom metadata field."
},
"constraints": [
{}
]
}
],
"displayName": "Organization Specific Metadata"
}
]
}
Response example (200)
{
"businessMetadataDefs": [
{
"category": "BUSINESS_METADATA",
"guid": "917ffec9-fa84-4c59-8e6c-c7b114d04be3",
"name": "NQCB512fDtTlLFn00Arfar",
"description": "Custom metadata that is specific to our organization.",
"typeVersion": "1.0",
"options": {},
"serviceType": "atlan",
"attributeDefs": [
{
"name": "string",
"displayName": "Custom Field 1",
"description": "Our first custom metadata field.",
"typeName": "string",
"includeInNotification": false,
"isIndexable": true,
"isOptional": true,
"isUnique": false,
"indexType": "DEFAULT",
"searchWeight": 42.0,
"cardinality": "SINGLE",
"valuesMinCount": 0,
"valuesMaxCount": 1,
"defaultValue": "abc123",
"options": {
"applicableEntityTypes": "[\"Asset\"]",
"customApplicableEntityTypes": "[\"Database\",\"Schema\",\"Table\"]\n",
"maxStrLength": "100000000",
"isEnum": true,
"enumType": "Custom Field Status",
"multiValueSelect": false,
"allowFiltering": true,
"allowSearch": true,
"primitiveType": "string",
"description": "Our first custom metadata field."
},
"constraints": [
{}
]
}
],
"displayName": "Organization Specific Metadata",
"createdBy": "jsmith",
"updatedBy": "jsmith",
"createTime": 1648852296555,
"updateTime": 1649172284333,
"version": 2
}
],
"enumDefs": [
{}
],
"structDefs": [
{}
],
"classificationDefs": [
{}
],
"entityDefs": [
{}
],
"relationshipDefs": [
{}
]
}