POST api/Tags/CreateTag

Creates a new Tag.

Request Information

URI Parameters

None.

Body Parameters

CreateTagPost
NameDescriptionTypeAdditional information
Name

(Required) Name of the tag.

string

None.

Static

(Optional) If not set, it will be deleted after the last use is deleted. Default Static = true.

boolean

None.

Color

(Optional) The color of tag background.

string

None.

Type

(Required) Type of the tag.

TagTypeEnum

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "Sample tag",
  "Static": true,
  "Color": "#ffffff",
  "Type": 1
}

application/xml, text/xml

Sample:
<CreateTagPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <Color>#ffffff</Color>
  <Name>Sample tag</Name>
  <Static>true</Static>
  <Type>Ticket</Type>
</CreateTagPost>

Response Information

Resource Description

Returns id

IHttpActionResult

None.