Tags

Create a tag

Creates a tag owned by the current user.

POST
/tags

Authorization

token_auth
AuthorizationBearer <token>

Token-based authentication using access tokens.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://v2.api.piktid.com/tags" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "color": "string"  }'
{
  "id": "string",
  "name": "string",
  "color": "string",
  "created_by": "string",
  "created_at": "string"
}
{
  "error": "Invalid request",
  "detail": [
    {
      "field": null,
      "message": "string",
      "position": "query"
    }
  ]
}
Empty