Skip to main content
Version: Next

Update tag

PUT 

http://localhost:8090/api/metalakes/:metalake/tags/:tag

Alters the specified tag information in the specified metalake

Request

Path Parameters

    metalake stringrequired

    The name of the metalake

    tag stringrequired

    The name of the tag

Body

    updates

    object[]

    required

  • Array [

  • oneOf

    @type stringrequired

    Possible values: [rename]

    newName stringrequired

    The new name of the tag

  • ]

Responses

Returns the updated tag object

Schema

    code int32

    Possible values: [0]

    Status code of the response

    tag

    object

    A tag

    name stringrequired

    The name of the tag

    comment stringnullable

    A comment about the tag

    audit

    object

    required

    Audit information for a Gravitino resource.

    creator string

    The user who created the resource

    createTime date-time

    The time the resource was created

    lastModifier string

    The user who last modified the resource

    lastModifiedTime date-time

    The time the resource was last modified

    properties

    object

    Configured string to string map of properties for the tag

    property name* string
    inherited booleannullable

    Whether the tag is inherited from the parent metadata object

curl -L -X PUT 'http://localhost:8090/api/metalakes/:metalake/tags/:tag' \
-H 'Content-Type: application/json' \
-H 'Accept: application/vnd.gravitino.v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"updates": [
{
"@type": "rename",
"newName": "my_tag_new"
},
{
"@type": "updateComment",
"newComment": "This is my new tag comment"
},
{
"@type": "setProperty",
"property": "key1",
"value": "value1"
},
{
"@type": "removeProperty",
"property": "key2"
}
]
}'
Request Collapse all
Base URL
http://localhost:8090/api
Auth
Parameters
— pathrequired
— pathrequired
Body
{
  "updates": [
    {
      "@type": "rename",
      "newName": "my_tag_new"
    },
    {
      "@type": "updateComment",
      "newComment": "This is my new tag comment"
    },
    {
      "@type": "setProperty",
      "property": "key1",
      "value": "value1"
    },
    {
      "@type": "removeProperty",
      "property": "key2"
    }
  ]
}
ResponseClear

Click the Send API Request button above and see the response here!