Create Tag
POST
/v1/tags
const url = 'https://example.com/api/v1/tags';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"color":"example","description":"example","icon":"example","name":"example","parentId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/tags \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "color": "example", "description": "example", "icon": "example", "name": "example", "parentId": "example" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Tag Data
Media type application/json
object
color
string
description
string
icon
string
name
required
string
parentId
string
Example generated
{ "color": "example", "description": "example", "icon": "example", "name": "example", "parentId": "example"}Responses
Section titled “ Responses ”Created
Media type application/json
object
children
Array<object>
object
color
string
createdAt
string
description
string
icon
string
id
string
name
string
parentId
string
updatedAt
string
color
string
createdAt
string
description
string
icon
string
id
string
name
string
parent
object
color
string
createdAt
string
description
string
icon
string
id
string
name
string
parentId
string
updatedAt
string
parentId
string
updatedAt
string
Example generated
{ "children": [ { "color": "example", "createdAt": "example", "description": "example", "icon": "example", "id": "example", "name": "example", "parentId": "example", "updatedAt": "example" } ], "color": "example", "createdAt": "example", "description": "example", "icon": "example", "id": "example", "name": "example", "parent": { "color": "example", "createdAt": "example", "description": "example", "icon": "example", "id": "example", "name": "example", "parentId": "example", "updatedAt": "example" }, "parentId": "example", "updatedAt": "example"}