PATCH
/
tags
/
{id}
Ruby
require 'dub'

s = ::OpenApiSDK::Dub.new(
      security: ::OpenApiSDK::Shared::Security.new(
        token: "DUB_API_KEY",
      ),
    )

res = s.tags.update(id="<id>", request_body=::OpenApiSDK::Operations::UpdateTagRequestBody.new())

if ! res.tag_schema.nil?
  # handle response
end
{
  "id": "<string>",
  "name": "<string>",
  "color": "red"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

id
string
required

The ID of the tag to update.

Body

application/json

Response

200
application/json

The updated tag.

The response is of type object.