Skip to main content

Associate tags with a metadata object

POST 

/metalakes/:metalake/objects/:metadataObjectType/:metadataObjectFullName/tags

Attaches tags to a metadata object and detaches others in one request, and returns the names of the tags attached directly to the object afterward. A tag listed in both tagsToAdd and tagsToRemove is left unchanged.

Sign in with a bearer token or a local user's password; see Authentication.

Request​

Path Parameters

    metalake stringrequired

    The name of the metalake

    metadataObjectType stringrequired

    Possible values: [CATALOG, SCHEMA, FILESET, TABLE, VIEW, TOPIC, COLUMN, MODEL, FUNCTION]

    The type of the metadata object. Tags can be associated with these types only; associating a tag with any other type fails with IllegalArgumentException. The server matches the value case-insensitively.

    metadataObjectFullName stringrequired

    The full name of the metadata object

Body

    tagsToAdd string[]nullable

    The names of the tags to attach

    tagsToRemove string[]nullable

    The names of the tags to detach

Responses​

The names of the tags attached directly to the object after the change.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    names string[]
Loading...