RoadOpsDeveloper

Pass Types

Ask

List pass types

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

Lists pass types for a team.

Required scopes: pass_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"pass"

Catalog entry kind.

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

Current pass type aggregate version.

data[].createdAtstring:date-time

ISO 8601 timestamp when the pass type was created.

data[].createdBystring

User identifier that created the pass type.

data[].updatedAtstring:date-time

ISO 8601 timestamp when the pass type was last updated.

data[].updatedBystring

User identifier that last updated the pass type.

data[].cursorinteger

Latest event-ledger cursor projected into this pass 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 pass type

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

Accepts a command to create a pass type.

Required scopes: pass_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
idstring:uuid

Optional caller-supplied pass 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 pass type

GET/v1/teams/{teamId}/pass-types/{passTypeId}

Returns one pass type by ID.

Required scopes: pass_type:read

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

path.passTypeIdrequiredstring:uuid

Pass type identifier.

Response 200

dataobject
data.namestring
data.abbreviationstring
data.kind"pass"

Catalog entry kind.

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

Current pass type aggregate version.

data.createdAtstring:date-time

ISO 8601 timestamp when the pass type was created.

data.createdBystring

User identifier that created the pass type.

data.updatedAtstring:date-time

ISO 8601 timestamp when the pass type was last updated.

data.updatedBystring

User identifier that last updated the pass type.

data.cursorinteger

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

metaobject
meta.cursorinteger

Highest record cursor represented by this response.

Update a pass type

PATCH/v1/teams/{teamId}/pass-types/{passTypeId}

Accepts a command to update pass type fields.

Required scopes: pass_type:write

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

path.passTypeIdrequiredstring:uuid

Pass 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 pass type name.

abbreviationstring

Updated pass type abbreviation.

isArchivedboolean

Whether this pass type is archived.

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.

Delete a pass type

DELETE/v1/teams/{teamId}/pass-types/{passTypeId}

Accepts a command to delete a pass type.

Required scopes: pass_type:write

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

path.passTypeIdrequiredstring:uuid

Pass 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)

deletedAtstring:date-time

Optional deletion 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.