Tags
GET
http://localhost:4000/api/v1 /tags List tags
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/tags" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
[
{
"id": "string",
"organizationId": "string",
"name": "string",
"color": "string"
}
]Schema
idstring
required
organizationIdstring
required
namestring
required
colorstring
required
POST
http://localhost:4000/api/v1 /tags Create or update a tag
Request body
application/json
idstring
namestring
required
colorstring
required
{
"id": "string",
"name": "string",
"color": "string"
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/tags" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"string","name":"string","color":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}DELETE
http://localhost:4000/api/v1 /tags/{id} Delete a tag
Parameters
idstring
path
required
Code samples
cURL
curl -X DELETE "http://localhost:4000/api/v1/tags/{id}" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}POST
http://localhost:4000/api/v1 /tags/{tagId}/posts Add a tag to many posts, whatever their status
Parameters
tagIdstring
path
required
Request body
application/json
postIdsstring[]
required
{
"postIds": [
"string"
]
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/tags/{tagId}/posts" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"postIds":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}Updated