Create a glossary term
curl --request POST \
--url https://api.example.com/api/data-readiness/glossary/terms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"term": "<string>",
"definition": "<string>",
"resource_uri": "<string>",
"domain": "Custom",
"type": "Concept",
"owner": "<string>",
"related_terms": [
"<string>"
],
"data_sources": [
"<string>"
],
"source_schema": "<string>",
"source_reference_file": "<string>",
"custom_tags": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/data-readiness/glossary/terms"
payload = {
"term": "<string>",
"definition": "<string>",
"resource_uri": "<string>",
"domain": "Custom",
"type": "Concept",
"owner": "<string>",
"related_terms": ["<string>"],
"data_sources": ["<string>"],
"source_schema": "<string>",
"source_reference_file": "<string>",
"custom_tags": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
term: '<string>',
definition: '<string>',
resource_uri: '<string>',
domain: 'Custom',
type: 'Concept',
owner: '<string>',
related_terms: ['<string>'],
data_sources: ['<string>'],
source_schema: '<string>',
source_reference_file: '<string>',
custom_tags: ['<string>']
})
};
fetch('https://api.example.com/api/data-readiness/glossary/terms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/data-readiness/glossary/terms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'term' => '<string>',
'definition' => '<string>',
'resource_uri' => '<string>',
'domain' => 'Custom',
'type' => 'Concept',
'owner' => '<string>',
'related_terms' => [
'<string>'
],
'data_sources' => [
'<string>'
],
'source_schema' => '<string>',
'source_reference_file' => '<string>',
'custom_tags' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/data-readiness/glossary/terms"
payload := strings.NewReader("{\n \"term\": \"<string>\",\n \"definition\": \"<string>\",\n \"resource_uri\": \"<string>\",\n \"domain\": \"Custom\",\n \"type\": \"Concept\",\n \"owner\": \"<string>\",\n \"related_terms\": [\n \"<string>\"\n ],\n \"data_sources\": [\n \"<string>\"\n ],\n \"source_schema\": \"<string>\",\n \"source_reference_file\": \"<string>\",\n \"custom_tags\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/data-readiness/glossary/terms")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"term\": \"<string>\",\n \"definition\": \"<string>\",\n \"resource_uri\": \"<string>\",\n \"domain\": \"Custom\",\n \"type\": \"Concept\",\n \"owner\": \"<string>\",\n \"related_terms\": [\n \"<string>\"\n ],\n \"data_sources\": [\n \"<string>\"\n ],\n \"source_schema\": \"<string>\",\n \"source_reference_file\": \"<string>\",\n \"custom_tags\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/data-readiness/glossary/terms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"term\": \"<string>\",\n \"definition\": \"<string>\",\n \"resource_uri\": \"<string>\",\n \"domain\": \"Custom\",\n \"type\": \"Concept\",\n \"owner\": \"<string>\",\n \"related_terms\": [\n \"<string>\"\n ],\n \"data_sources\": [\n \"<string>\"\n ],\n \"source_schema\": \"<string>\",\n \"source_reference_file\": \"<string>\",\n \"custom_tags\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"term": "<string>",
"definition": "<string>",
"domain": "<string>",
"type": "Concept",
"status": "<string>",
"owner": "<string>",
"last_updated": "<string>",
"version": "<string>",
"related_terms": [
"<string>"
],
"usage_count": 0,
"data_sources": [
"<string>"
],
"source_schema": "<string>",
"source_reference_file": "<string>",
"conflict_reason": "<string>",
"is_generated": false,
"custom_tags": [
"<string>"
],
"resource_uri": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"error": {
"code": "WORKFLOW_NOT_FOUND",
"message": "Workflow configuration with id '123e4567-e89b-12d3-a456-426614174000' not found",
"details": {
"workflow_id": "123e4567-e89b-12d3-a456-426614174000"
}
},
"request_id": "req_abc123xyz"
}Glossary
Create a glossary term
Create a new glossary term.
POST
/
api
/
data-readiness
/
glossary
/
terms
Create a glossary term
curl --request POST \
--url https://api.example.com/api/data-readiness/glossary/terms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"term": "<string>",
"definition": "<string>",
"resource_uri": "<string>",
"domain": "Custom",
"type": "Concept",
"owner": "<string>",
"related_terms": [
"<string>"
],
"data_sources": [
"<string>"
],
"source_schema": "<string>",
"source_reference_file": "<string>",
"custom_tags": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/data-readiness/glossary/terms"
payload = {
"term": "<string>",
"definition": "<string>",
"resource_uri": "<string>",
"domain": "Custom",
"type": "Concept",
"owner": "<string>",
"related_terms": ["<string>"],
"data_sources": ["<string>"],
"source_schema": "<string>",
"source_reference_file": "<string>",
"custom_tags": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
term: '<string>',
definition: '<string>',
resource_uri: '<string>',
domain: 'Custom',
type: 'Concept',
owner: '<string>',
related_terms: ['<string>'],
data_sources: ['<string>'],
source_schema: '<string>',
source_reference_file: '<string>',
custom_tags: ['<string>']
})
};
fetch('https://api.example.com/api/data-readiness/glossary/terms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/data-readiness/glossary/terms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'term' => '<string>',
'definition' => '<string>',
'resource_uri' => '<string>',
'domain' => 'Custom',
'type' => 'Concept',
'owner' => '<string>',
'related_terms' => [
'<string>'
],
'data_sources' => [
'<string>'
],
'source_schema' => '<string>',
'source_reference_file' => '<string>',
'custom_tags' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/data-readiness/glossary/terms"
payload := strings.NewReader("{\n \"term\": \"<string>\",\n \"definition\": \"<string>\",\n \"resource_uri\": \"<string>\",\n \"domain\": \"Custom\",\n \"type\": \"Concept\",\n \"owner\": \"<string>\",\n \"related_terms\": [\n \"<string>\"\n ],\n \"data_sources\": [\n \"<string>\"\n ],\n \"source_schema\": \"<string>\",\n \"source_reference_file\": \"<string>\",\n \"custom_tags\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/data-readiness/glossary/terms")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"term\": \"<string>\",\n \"definition\": \"<string>\",\n \"resource_uri\": \"<string>\",\n \"domain\": \"Custom\",\n \"type\": \"Concept\",\n \"owner\": \"<string>\",\n \"related_terms\": [\n \"<string>\"\n ],\n \"data_sources\": [\n \"<string>\"\n ],\n \"source_schema\": \"<string>\",\n \"source_reference_file\": \"<string>\",\n \"custom_tags\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/data-readiness/glossary/terms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"term\": \"<string>\",\n \"definition\": \"<string>\",\n \"resource_uri\": \"<string>\",\n \"domain\": \"Custom\",\n \"type\": \"Concept\",\n \"owner\": \"<string>\",\n \"related_terms\": [\n \"<string>\"\n ],\n \"data_sources\": [\n \"<string>\"\n ],\n \"source_schema\": \"<string>\",\n \"source_reference_file\": \"<string>\",\n \"custom_tags\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"term": "<string>",
"definition": "<string>",
"domain": "<string>",
"type": "Concept",
"status": "<string>",
"owner": "<string>",
"last_updated": "<string>",
"version": "<string>",
"related_terms": [
"<string>"
],
"usage_count": 0,
"data_sources": [
"<string>"
],
"source_schema": "<string>",
"source_reference_file": "<string>",
"conflict_reason": "<string>",
"is_generated": false,
"custom_tags": [
"<string>"
],
"resource_uri": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"error": {
"code": "WORKFLOW_NOT_FOUND",
"message": "Workflow configuration with id '123e4567-e89b-12d3-a456-426614174000' not found",
"details": {
"workflow_id": "123e4567-e89b-12d3-a456-426614174000"
}
},
"request_id": "req_abc123xyz"
}Authorizations
Body
application/json
Request to create a new glossary term.
Response
Successful Response
A single glossary term as returned to the UI.
Was this page helpful?

