Pass Types
Ask
List pass types
GET/v1/teams/{teamId}/pass-typesLists pass types for a team.
Required scopes: pass_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 | "pass"Catalog entry kind. |
data[].isArchived | boolean |
data[].id | string:uuid |
data[].orgId | string:uuid |
data[].isDeleted | boolean |
data[].version | integerCurrent pass type aggregate version. |
data[].createdAt | string:date-timeISO 8601 timestamp when the pass type was created. |
data[].createdBy | stringUser identifier that created the pass type. |
data[].updatedAt | string:date-timeISO 8601 timestamp when the pass type was last updated. |
data[].updatedBy | stringUser identifier that last updated the pass type. |
data[].cursor | integerLatest cursor projected into this pass 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 pass type
POST/v1/teams/{teamId}/pass-typesAccepts a command to create a pass type.
Required scopes: pass_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 |
id | string:uuidOptional caller-supplied pass 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 pass type
GET/v1/teams/{teamId}/pass-types/{passTypeId}Returns one pass type by ID.
Required scopes: pass_type:read
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.passTypeIdrequired | string:uuidPass type identifier. |
Response 200
data | object |
|---|---|
data.name | string |
data.abbreviation | string |
data.kind | "pass"Catalog entry kind. |
data.isArchived | boolean |
data.id | string:uuid |
data.orgId | string:uuid |
data.isDeleted | boolean |
data.version | integerCurrent pass type aggregate version. |
data.createdAt | string:date-timeISO 8601 timestamp when the pass type was created. |
data.createdBy | stringUser identifier that created the pass type. |
data.updatedAt | string:date-timeISO 8601 timestamp when the pass type was last updated. |
data.updatedBy | stringUser identifier that last updated the pass type. |
data.cursor | integerLatest cursor projected into this pass type record. |
meta | object |
meta.cursor | integerHighest 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.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.passTypeIdrequired | string:uuidPass 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 pass type name. |
abbreviation | stringUpdated pass type abbreviation. |
isArchived | booleanWhether this pass type is archived. |
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. |
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.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.passTypeIdrequired | string:uuidPass 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)
deletedAt | string:date-timeOptional deletion 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. |