Give a shared deployment back to the person who had it before
For a claim that began when someone handed the deployment over or an admin took it over. Ends the claim and starts one for the person who held it before, on the branch they were using, for the length they had, with the hand-over jobs the settings carry. Only the holder can. Answers 409 `share.no_pre
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidclaimId*stringuuidIdempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255The previous holder's new claim.
application/json- response
id*stringuuiddeploymentId*stringuuidholder*branch*stringnote*stringclaimedAt*stringdate-timeuntil*stringdate-timeminutes*integerThe length first asked for, which an extension adds once.
extended*booleanstate*string"active""ended"endedAt?stringdate-timeendReason?string"released""expired""handed_over""taken_over""given_back"endedBy?reason?stringWhy an admin took the deployment over.
resetFirst*booleanmigration?What the migration check could tell, from file names in git and from the names of the jobs that run. not_checked says it could not look.
migrationKept?booleanThe holder chose to keep the database as it is.
handoverJobs?array<>The hand-over jobs that ran during the claim, in the history.
curl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/share/claims/497f6eca-6276-4993-bfeb-53cbbbba6f08/give-back'{ "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 } ]}Keep the database as it is for this claim POST
Says the holder looked at the migration warning and keeps the database as it is, which ends the warning for this claim. Only the holder can. Writes an Activity entry. Needs `deployment:sync`.
Keep a failing deployment as it is to debug it POST
Says the holder has seen that the deployment's health checks failed after the claim began and keeps it as it is to find out why. The health problem stops showing for this claim; nothing is applied or reset. Only the holder can. Writes an Activity entry. Needs `deployment:sync`.