PATCH
/
tags
/
{id}
declare(strict_types=1);

require 'vendor/autoload.php';

use Dub;
use Dub\Models\Operations;

$sdk = Dub\Dub::builder()
    ->setSecurity(
        'DUB_API_KEY'
    )
    ->build();

$requestBody = new Operations\UpdateTagRequestBody();

$response = $sdk->tags->update(
    id: '<id>',
    requestBody: $requestBody

);

if ($response->tagSchema !== null) {
    // handle response
}
{
  "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.