Ticket Types
Ask
List ticket types
GET/v1/teams/{teamId}/ticket-typesLists ticket types for a team.
Required scopes: ticket_type:read
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
query.limit | integerMaximum number of records to return. Defaults to 50 and is capped at 200. |
query.cursor | stringOpaque cursor returned by page.nextCursor. Reuse the same credential, endpoint, and filters within 24 hours; restart pagination after expiration or credential changes. |
Response 200
data | object[] |
|---|---|
data[].name | string |
data[].abbreviation | string |
data[].kind | "ticket"Catalog entry kind. |
data[].isArchived | boolean |
data[].isDefault | boolean |
data[].id | string:uuid |
data[].orgId | string:uuid |
data[].isDeleted | boolean |
data[].version | integerCurrent ticket type aggregate version. |
data[].createdAt | string:date-timeISO 8601 timestamp when the ticket type was created. |
data[].createdBy | stringUser identifier that created the ticket type. |
data[].updatedAt | string:date-timeISO 8601 timestamp when the ticket type was last updated. |
data[].updatedBy | stringUser identifier that last updated the ticket type. |
data[].cursor | integerLatest cursor projected into this ticket type record. |
page | object |
page.limit | integerMaximum number of records returned in this page. |
page.nextCursor | string | nullOpaque cursor to pass as the next request's cursor query parameter with the same credential, endpoint, and filters within 24 hours, or null when there are no more results. Restart pagination after expiration or credential changes. |
meta | object |
meta.cursor | number | nullHighest record cursor represented by this response. |
Create a ticket type
POST/v1/teams/{teamId}/ticket-typesAccepts a command to create a ticket type.
Required scopes: ticket_type:write
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
header.Idempotency-Key | string:uuidOptional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request. |
Request body (application/json)
namerequired | string |
|---|---|
abbreviationrequired | string |
isArchived | boolean |
isDefault | boolean |
id | string:uuidOptional caller-supplied ticket type ID. RoadOps generates one when omitted. |
Response 202
commandId | string:uuidCommand identifier accepted into the RoadOps command ledger. |
|---|---|
resourceId | string:uuidIdentifier of the resource targeted by the command. |
resourceType | stringResource type targeted by the command. |
status | "applied"Command dispatch status. |
aggregateVersion | integerAggregate version produced by the accepted command. |
cursor | integerCursor for the accepted update. Refetch until returned records reach this cursor. |
links | object |
links.refetch | stringRelative URL to refetch the affected resource. |
Retrieve a ticket type
GET/v1/teams/{teamId}/ticket-types/{ticketTypeId}Returns one ticket type by ID.
Required scopes: ticket_type:read
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.ticketTypeIdrequired | string:uuidTicket type identifier. |
Response 200
data | object |
|---|---|
data.name | string |
data.abbreviation | string |
data.kind | "ticket"Catalog entry kind. |
data.isArchived | boolean |
data.isDefault | boolean |
data.id | string:uuid |
data.orgId | string:uuid |
data.isDeleted | boolean |
data.version | integerCurrent ticket type aggregate version. |
data.createdAt | string:date-timeISO 8601 timestamp when the ticket type was created. |
data.createdBy | stringUser identifier that created the ticket type. |
data.updatedAt | string:date-timeISO 8601 timestamp when the ticket type was last updated. |
data.updatedBy | stringUser identifier that last updated the ticket type. |
data.cursor | integerLatest cursor projected into this ticket type record. |
meta | object |
meta.cursor | integerHighest record cursor represented by this response. |
Update a ticket type
PATCH/v1/teams/{teamId}/ticket-types/{ticketTypeId}Accepts a command to update ticket type fields.
Required scopes: ticket_type:write
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.ticketTypeIdrequired | string:uuidTicket type identifier. |
header.Idempotency-Key | string:uuidOptional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request. |
Request body (application/json)
expectedVersion | integerOptional aggregate version guard. |
|---|---|
name | stringUpdated ticket type name. |
abbreviation | stringUpdated ticket type abbreviation. |
isArchived | booleanWhether this ticket type is archived. |
isDefault | booleanWhether this ticket type is the team default. |
Response 202
commandId | string:uuidCommand identifier accepted into the RoadOps command ledger. |
|---|---|
resourceId | string:uuidIdentifier of the resource targeted by the command. |
resourceType | stringResource type targeted by the command. |
status | "applied"Command dispatch status. |
aggregateVersion | integerAggregate version produced by the accepted command. |
cursor | integerCursor for the accepted update. Refetch until returned records reach this cursor. |
links | object |
links.refetch | stringRelative URL to refetch the affected resource. |
Archive a ticket type
DELETE/v1/teams/{teamId}/ticket-types/{ticketTypeId}Accepts a command to archive a ticket type.
Required scopes: ticket_type:write
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.ticketTypeIdrequired | string:uuidTicket type identifier. |
header.Idempotency-Key | string:uuidOptional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request. |
Request body (application/json)
archivedAt | string:date-timeOptional archive timestamp. |
|---|
Response 202
commandId | string:uuidCommand identifier accepted into the RoadOps command ledger. |
|---|---|
resourceId | string:uuidIdentifier of the resource targeted by the command. |
resourceType | stringResource type targeted by the command. |
status | "applied"Command dispatch status. |
aggregateVersion | integerAggregate version produced by the accepted command. |
cursor | integerCursor for the accepted update. Refetch until returned records reach this cursor. |
links | object |
links.refetch | stringRelative URL to refetch the affected resource. |