tags

Create

POST
Creates a new tag, which is used to create associations between objects and a logical concept denoted by the tag's name.

Request

This endpoint expects an object.
name
stringRequired
The name for the tag, which must be unique across all tags.
allowed_values
list of stringsOptional
The allowed values for the tag, or empty if no values are permitted.
description
stringOptional
The description for the tag.

Response

This endpoint returns an object
tag
object
POST
1curl -X POST https://api.devrev.ai/tags.create \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "name": "name"
6}'
200Successful
1{
2 "tag": {
3 "id": "id",
4 "name": "name",
5 "allowed_values": [
6 "allowed_values"
7 ],
8 "created_date": "2023-01-01T12:00:00Z",
9 "description": "description",
10 "display_id": "display_id",
11 "modified_date": "2023-01-01T12:00:00Z"
12 }
13}