delete_glossary_term¶
- CatalogApi.delete_glossary_term(glossary_id, term_id, role_id, _request_timeout=None, _request_auth=None, _content_type=None, _headers=None, _host_index=0)¶
Delete a glossary term
Deletes a glossary term and unlinks it from any data assets that referenced it. Requires editor access or higher - unlike deleting a whole glossary, which requires owner access.
- Parameters:
glossary_id (str) – Identifier of the glossary the term belongs to. (required)
term_id (str) – Identifier of the term to delete. (required)
role_id (str) – User role id (required)
_request_timeout (int, tuple(int, int), optional) – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
_request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
_content_type (str, Optional) – force content-type for the request.
_headers (dict, optional) – set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
_host_index (int, optional) – set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
- Return type:
- Returns:
Returns the result object.
Request and Response Examples¶
HTTP: DELETE /glossaries/{glossary_id}/terms/{term_id}
Success (HTTP 200)¶
Glossary term deleted successfully
Request / response example
{
"Message": "Glossary term deleted successfully"
}
Errors¶
Documented error codes: IPV-1002, AUTH-1002, GE-1021.
HTTP 400
Missing required request parameters
TermId does not exist
{
"Message": "IPV-1002 - Invalid TermId - a5c8e2f1-7b34-4d69-8e0a-2f6b9c1d4e73, resource not found."
}
Caller has no edit access on the glossary
{
"Message": "AUTH-1002 - User action is not permitted"
}
HTTP 500
Something went wrong at backend
Request / response example
{
"Message": "GE-1021 - Unable to delete items in GlossaryTerms table, please check for errors"
}