RoadOpsDeveloper

Ticket Types

Ask

List ticket types

GET/v1/teams/{teamId}/ticket-types

Lists ticket types for a team.

Required scopes: ticket_type:read

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

query.limitinteger

Maximum number of records to return. Defaults to 50 and is capped at 200.

query.cursorstring

Cursor returned by page.nextCursor from the previous list response.

Response 200

dataobject[]
data[].namestring
data[].abbreviationstring
data[].kind"ticket"

Catalog entry kind.

data[].isArchivedboolean
data[].isDefaultboolean
data[].idstring:uuid
data[].orgIdstring:uuid
data[].isDeletedboolean
data[].versioninteger

Current ticket type aggregate version.

data[].createdAtstring:date-time

ISO 8601 timestamp when the ticket type was created.

data[].createdBystring

User identifier that created the ticket type.

data[].updatedAtstring:date-time

ISO 8601 timestamp when the ticket type was last updated.

data[].updatedBystring

User identifier that last updated the ticket type.

data[].cursorinteger

Latest event-ledger cursor projected into this ticket type record.

pageobject
page.limitinteger

Maximum number of records returned in this page.

page.nextCursorstring | null

Cursor to pass as the next request's cursor query parameter, or null when there are no more results.

metaobject
meta.cursornumber | null

Highest record cursor represented by this response.

Create a ticket type

POST/v1/teams/{teamId}/ticket-types

Accepts a command to create a ticket type.

Required scopes: ticket_type:write

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

header.Idempotency-Keystring:uuid

Optional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request.

Request body (application/json)

namerequiredstring
abbreviationrequiredstring
isArchivedboolean
isDefaultboolean
idstring:uuid

Optional caller-supplied ticket type ID. RoadOps generates one when omitted.

Response 202

commandIdstring:uuid

Command identifier accepted into the RoadOps command ledger.

resourceIdstring:uuid

Identifier of the resource targeted by the command.

resourceTypestring

Resource type targeted by the command.

status"applied"

Command dispatch status.

aggregateVersioninteger

Aggregate version produced by the accepted command.

cursorinteger

Event-ledger cursor for the accepted update. Refetch until returned records reach this cursor.

linksobject
links.refetchstring

Relative 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.teamIdrequiredstring:uuid

Team identifier.

path.ticketTypeIdrequiredstring:uuid

Ticket type identifier.

Response 200

dataobject
data.namestring
data.abbreviationstring
data.kind"ticket"

Catalog entry kind.

data.isArchivedboolean
data.isDefaultboolean
data.idstring:uuid
data.orgIdstring:uuid
data.isDeletedboolean
data.versioninteger

Current ticket type aggregate version.

data.createdAtstring:date-time

ISO 8601 timestamp when the ticket type was created.

data.createdBystring

User identifier that created the ticket type.

data.updatedAtstring:date-time

ISO 8601 timestamp when the ticket type was last updated.

data.updatedBystring

User identifier that last updated the ticket type.

data.cursorinteger

Latest event-ledger cursor projected into this ticket type record.

metaobject
meta.cursorinteger

Highest 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.teamIdrequiredstring:uuid

Team identifier.

path.ticketTypeIdrequiredstring:uuid

Ticket type identifier.

header.Idempotency-Keystring:uuid

Optional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request.

Request body (application/json)

expectedVersioninteger

Optional aggregate version guard.

namestring

Updated ticket type name.

abbreviationstring

Updated ticket type abbreviation.

isArchivedboolean

Whether this ticket type is archived.

isDefaultboolean

Whether this ticket type is the team default.

Response 202

commandIdstring:uuid

Command identifier accepted into the RoadOps command ledger.

resourceIdstring:uuid

Identifier of the resource targeted by the command.

resourceTypestring

Resource type targeted by the command.

status"applied"

Command dispatch status.

aggregateVersioninteger

Aggregate version produced by the accepted command.

cursorinteger

Event-ledger cursor for the accepted update. Refetch until returned records reach this cursor.

linksobject
links.refetchstring

Relative 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.teamIdrequiredstring:uuid

Team identifier.

path.ticketTypeIdrequiredstring:uuid

Ticket type identifier.

header.Idempotency-Keystring:uuid

Optional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request.

Request body (application/json)

archivedAtstring:date-time

Optional archive timestamp.

Response 202

commandIdstring:uuid

Command identifier accepted into the RoadOps command ledger.

resourceIdstring:uuid

Identifier of the resource targeted by the command.

resourceTypestring

Resource type targeted by the command.

status"applied"

Command dispatch status.

aggregateVersioninteger

Aggregate version produced by the accepted command.

cursorinteger

Event-ledger cursor for the accepted update. Refetch until returned records reach this cursor.

linksobject
links.refetchstring

Relative URL to refetch the affected resource.