RoadOpsDeveloper

Set List Items

Ask

List set list items

GET/v1/teams/{teamId}/set-list-items

Lists reusable set list library items for a team.

Required scopes: set_list_item: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[].titlestring

Reusable set list item title.

data[].durationSecondsinteger

Default duration in seconds for this reusable set list item.

data[].printTitlestring

Optional title to use on printed set list output.

data[].notesstring

Optional notes for the set list item.

data[].idstring:uuid

Set list item identifier.

data[].orgIdstring:uuid

Team identifier that owns this reusable set list item.

data[].isRetiredboolean

Whether this reusable item is hidden from active use.

data[].retiredAtstring:date-time

ISO 8601 timestamp when the item was retired.

data[].retiredBystring

User identifier that retired this item.

data[].isDeletedboolean

Whether this reusable item has been deleted.

data[].versioninteger

Current set list item aggregate version.

data[].createdAtstring:date-time

ISO 8601 timestamp when the item was created.

data[].createdBystring

User identifier that created this item.

data[].updatedAtstring:date-time

ISO 8601 timestamp when the item was last updated.

data[].updatedBystring

User identifier that last updated this item.

data[].cursorinteger

Latest event-ledger cursor projected into this set list item 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 set list item

POST/v1/teams/{teamId}/set-list-items

Accepts a command to create a reusable set list library item.

Required scopes: set_list_item: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)

titlerequiredstring

Reusable set list item title.

durationSecondsrequiredinteger

Default duration in seconds for this reusable set list item.

printTitlestring

Optional title to use on printed set list output.

notesstring

Optional notes for the set list item.

idstring:uuid

Optional caller-supplied set list item 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 set list item

GET/v1/teams/{teamId}/set-list-items/{setListItemId}

Returns one reusable set list library item by ID.

Required scopes: set_list_item:read

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

path.setListItemIdrequiredstring:uuid

Set list item identifier.

Response 200

dataobject
data.titlestring

Reusable set list item title.

data.durationSecondsinteger

Default duration in seconds for this reusable set list item.

data.printTitlestring

Optional title to use on printed set list output.

data.notesstring

Optional notes for the set list item.

data.idstring:uuid

Set list item identifier.

data.orgIdstring:uuid

Team identifier that owns this reusable set list item.

data.isRetiredboolean

Whether this reusable item is hidden from active use.

data.retiredAtstring:date-time

ISO 8601 timestamp when the item was retired.

data.retiredBystring

User identifier that retired this item.

data.isDeletedboolean

Whether this reusable item has been deleted.

data.versioninteger

Current set list item aggregate version.

data.createdAtstring:date-time

ISO 8601 timestamp when the item was created.

data.createdBystring

User identifier that created this item.

data.updatedAtstring:date-time

ISO 8601 timestamp when the item was last updated.

data.updatedBystring

User identifier that last updated this item.

data.cursorinteger

Latest event-ledger cursor projected into this set list item record.

metaobject
meta.cursorinteger

Highest record cursor represented by this response.

Update a set list item

PATCH/v1/teams/{teamId}/set-list-items/{setListItemId}

Accepts a command to update reusable set list library item fields.

Required scopes: set_list_item:write

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

path.setListItemIdrequiredstring:uuid

Set list item 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.

updatesrequiredobject

Set list library item fields to update.

updates.titlestring

Reusable set list item title.

updates.durationSecondsinteger

Default duration in seconds for this reusable set list item.

updates.printTitlestring

Optional title to use on printed set list output.

updates.notesstring

Optional notes for the set list item.

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 set list item

DELETE/v1/teams/{teamId}/set-list-items/{setListItemId}

Accepts a command to delete a reusable set list library item.

Required scopes: set_list_item:write

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

path.setListItemIdrequiredstring:uuid

Set list item 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.

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.

Retire a set list item

POST/v1/teams/{teamId}/set-list-items/{setListItemId}/retire

Accepts a command to retire a reusable set list library item without deleting it.

Required scopes: set_list_item:write

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

path.setListItemIdrequiredstring:uuid

Set list item 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.

timestampstring:date-time

Optional ISO 8601 timestamp to use for the lifecycle transition.

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.

Restore a set list item

POST/v1/teams/{teamId}/set-list-items/{setListItemId}/restore

Accepts a command to restore a retired reusable set list library item.

Required scopes: set_list_item:write

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

path.setListItemIdrequiredstring:uuid

Set list item 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.

timestampstring:date-time

Optional ISO 8601 timestamp to use for the lifecycle transition.

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.