Create a new ticket.
curl --request POST \
--url https://public.api.serval.com/v1/teams/{team_id}/tickets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"createdByUserId": "<string>",
"createdAt": "1s",
"assignedToUserId": "<string>"
}'
{
"ticket": {
"id": "<string>",
"friendlyIdentifier": "<string>",
"forTeam": {
"id": "<string>",
"name": "<string>"
},
"name": "<string>",
"description": "<string>",
"createdAt": "1s",
"completedAt": "1s",
"escalatedAt": "1s",
"createdByUser": {
"id": "<string>",
"email": "<string>"
},
"assignedToUser": {
"id": "<string>",
"email": "<string>"
},
"status": {
"id": "<string>",
"teamId": "<string>",
"statusGroup": "TICKET_STATUS_GROUP_UNSPECIFIED",
"name": "<string>",
"description": "<string>",
"isDefault": true
},
"escalationLevel": "AI",
"priority": {
"id": "<string>",
"teamId": "<string>",
"priority": "TICKET_PRIORITY_UNSPECIFIED",
"description": "<string>"
},
"slaStartedAt": "1s",
"slaBreachesAt": "1s",
"labels": [
{
"id": "<string>",
"teamId": "<string>",
"name": "<string>",
"description": "<string>"
}
]
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The ID of the team that the ticket should be created in.
Success
The response is of type object
.
curl --request POST \
--url https://public.api.serval.com/v1/teams/{team_id}/tickets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"createdByUserId": "<string>",
"createdAt": "1s",
"assignedToUserId": "<string>"
}'
{
"ticket": {
"id": "<string>",
"friendlyIdentifier": "<string>",
"forTeam": {
"id": "<string>",
"name": "<string>"
},
"name": "<string>",
"description": "<string>",
"createdAt": "1s",
"completedAt": "1s",
"escalatedAt": "1s",
"createdByUser": {
"id": "<string>",
"email": "<string>"
},
"assignedToUser": {
"id": "<string>",
"email": "<string>"
},
"status": {
"id": "<string>",
"teamId": "<string>",
"statusGroup": "TICKET_STATUS_GROUP_UNSPECIFIED",
"name": "<string>",
"description": "<string>",
"isDefault": true
},
"escalationLevel": "AI",
"priority": {
"id": "<string>",
"teamId": "<string>",
"priority": "TICKET_PRIORITY_UNSPECIFIED",
"description": "<string>"
},
"slaStartedAt": "1s",
"slaBreachesAt": "1s",
"labels": [
{
"id": "<string>",
"teamId": "<string>",
"name": "<string>",
"description": "<string>"
}
]
}
}