Import and export
Preview a portable binding import
Preview a portable binding import
curl --request POST \
--url https://api.atlan.com/ontology_binding/v1/imports/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"binding_api_name": "<string>",
"display_name": "<string>",
"document": "<string>",
"ontology_release": {
"manifest_digest": "<string>",
"ontology_id": "<string>",
"release": "<string>",
"release_id": "<string>"
},
"workspace_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
binding_api_name: '<string>',
display_name: '<string>',
document: '<string>',
ontology_release: {
manifest_digest: '<string>',
ontology_id: '<string>',
release: '<string>',
release_id: '<string>'
},
workspace_id: '<string>'
})
};
fetch('https://api.atlan.com/ontology_binding/v1/imports/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.atlan.com/ontology_binding/v1/imports/preview"
payload = {
"binding_api_name": "<string>",
"display_name": "<string>",
"document": "<string>",
"ontology_release": {
"manifest_digest": "<string>",
"ontology_id": "<string>",
"release": "<string>",
"release_id": "<string>"
},
"workspace_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"diagnostics": [
{
"code": "<string>",
"message": "<string>"
}
],
"is_valid": true,
"link_count": 1,
"object_count": 1,
"preview_id": "<string>",
"property_count": 1,
"target_ontology_release": {
"manifest_digest": "<string>",
"ontology_id": "<string>",
"release": "<string>",
"release_id": "<string>"
}
}{
"code": "invalid_base64",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "alg_mismatch",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "access_denied",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "compressed_payload_too_large",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "unsupported_content_encoding",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "graph_limit_exceeded",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "internal_error",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "auth_unavailable",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "request_timeout",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Available options:
base64, gzip, base64 Body
application/json
Response
HTTP 200 response.
Show child attributes
Show child attributes
Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Show child attributes
Show child attributes
⌘I
Preview a portable binding import
curl --request POST \
--url https://api.atlan.com/ontology_binding/v1/imports/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"binding_api_name": "<string>",
"display_name": "<string>",
"document": "<string>",
"ontology_release": {
"manifest_digest": "<string>",
"ontology_id": "<string>",
"release": "<string>",
"release_id": "<string>"
},
"workspace_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
binding_api_name: '<string>',
display_name: '<string>',
document: '<string>',
ontology_release: {
manifest_digest: '<string>',
ontology_id: '<string>',
release: '<string>',
release_id: '<string>'
},
workspace_id: '<string>'
})
};
fetch('https://api.atlan.com/ontology_binding/v1/imports/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.atlan.com/ontology_binding/v1/imports/preview"
payload = {
"binding_api_name": "<string>",
"display_name": "<string>",
"document": "<string>",
"ontology_release": {
"manifest_digest": "<string>",
"ontology_id": "<string>",
"release": "<string>",
"release_id": "<string>"
},
"workspace_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"diagnostics": [
{
"code": "<string>",
"message": "<string>"
}
],
"is_valid": true,
"link_count": 1,
"object_count": 1,
"preview_id": "<string>",
"property_count": 1,
"target_ontology_release": {
"manifest_digest": "<string>",
"ontology_id": "<string>",
"release": "<string>",
"release_id": "<string>"
}
}{
"code": "invalid_base64",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "alg_mismatch",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "access_denied",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "compressed_payload_too_large",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "unsupported_content_encoding",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "graph_limit_exceeded",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "internal_error",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "auth_unavailable",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}{
"code": "request_timeout",
"detail": "<string>",
"status": 1,
"title": "<string>",
"trace_id": "<string>"
}