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`.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidThe ended claims.
application/json- response
items*array<>curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/share/history'{ "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 } ] } ]}Change how a deployment is shared PUT
Turns sharing on or off and sets who may claim, the longest claim, what happens when a claim ends, and the hand-over jobs and migration check. Answers 409 `share.needs_branch` for a deployment that does not follow a branch and 409 `share.in_use` when sharing is turned off while someone holds it. Wri
Claim a shared deployment POST
Takes a shared deployment nobody holds: it follows the branch asked for until the claim ends. The deployment is pointed at the branch and rendered. Answers 409 `deployment.claimed` when someone holds it, which the web app turns into a request to use it, 409 `share.not_shared` for a deployment that i