Deployments
Preview

List the promotions into a deployment

The snapshots that arrived by promotion, newest first, each with the snapshot it copies and who promoted it.

GET
/deployments/{deploymentId}/promotions
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

deploymentId*string
Formatuuid
limit?integer

Page size. Defaults to 50, at most 200.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from a previous page's nextCursor.

Response Body

OK.

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/promotions'
Example Response
{  "items": [    {      "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",      "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",      "sourceSnapshotId": "7f07e884-6f41-498e-a6a8-6365a22fbc3a",      "source": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string",        "visible": true      },      "promotedBy": "string",      "reason": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}