POST
/
tags
PHP
declare(strict_types=1);

require 'vendor/autoload.php';

use Dub;

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



$response = $sdk->tags->create(
    request: $request
);

if ($response->tagSchema !== null) {
    // handle response
}
{
  "id": "<string>",
  "name": "<string>",
  "color": "red"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json

Response

201
application/json

The created tag

The response is of type object.