Deployments
Preview

List the claims that ended on a deployment

The last 50 claims that ended, newest first, with who held them, for how long, and how they ended. Needs `deployment:read`.

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

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

deploymentId*string
Formatuuid

Response Body

The ended claims.

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/share/history'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",      "holder": {        "id": "string",        "name": "string"      },      "branch": "string",      "note": "string",      "claimedAt": "2019-08-24T14:15:22Z",      "until": "2019-08-24T14:15:22Z",      "minutes": 0,      "extended": true,      "state": "active",      "endedAt": "2019-08-24T14:15:22Z",      "endReason": "released",      "endedBy": {        "id": "string",        "name": "string"      },      "reason": "string",      "resetFirst": true,      "migration": {        "state": "not_checked",        "apps": [          {            "appId": "string",            "appName": "string",            "state": "not_checked",            "folder": "string",            "onlyRunning": [              "string"            ],            "onlyIncoming": [              "string"            ],            "reason": "string"          }        ],        "jobs": [          "string"        ],        "statusJob": true,        "reason": "string"      },      "migrationKept": true,      "handoverJobs": [        {          "name": "string",          "succeeded": true        }      ]    }  ]}