POST api/Tickets/CreateAndAddUnstaticTag

Creates a new unstatic Tag and adds it to the Ticket.

Request Information

URI Parameters

None.

Body Parameters

CreateTicketTagPost
NameDescriptionTypeAdditional information
TicketId

integer

None.

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:
{
  "TicketId": 1,
  "Name": "sample string 2",
  "Static": true,
  "Color": "sample string 3",
  "Type": 1
}

application/xml, text/xml

Sample:
<CreateTicketTagPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <Color>sample string 3</Color>
  <Name>sample string 2</Name>
  <Static>true</Static>
  <Type>Ticket</Type>
  <TicketId>1</TicketId>
</CreateTicketTagPost>

Response Information

Resource Description

Returns tag id

IHttpActionResult

None.