Skip to main content
POST
/
api
/
v1
/
tags
CreateTag
curl --request POST \
  --url https://your-sift-api-url.com/api/v1/tags \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "organizationId": "<string>"
}'
{
  "tag": {
    "tagId": "<string>",
    "name": "<string>",
    "organizationId": "<string>",
    "createdByUserId": "<string>",
    "modifiedByUserId": "<string>",
    "createdDate": "2023-11-07T05:31:56Z",
    "modifiedDate": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The request for a call to TagService.CreateTag.

name
string
required

The name for the new tag. If the tag already exists, an error is returned.

organizationId
string

Response

A successful response.

The result of a call to TagService.CreateTag.

tag
object