What to know before taking a shared deployment
Read-only checks for a person about to claim or ask for the deployment with `branch`: what runs now and whose it is, how many apps would move to other commits, whether the branch differs in database migration files from what runs (compared by file names in git, and by the names of the jobs that run;
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidbranch*stringThe branch the person would use.
length <= 255The checks.
application/json- response
branch*stringchecks*array<>resetJobs*array<string>The hand-over jobs that run before the next holder, which "Reset first" runs.
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/share/checks?branch=string'{ "branch": "string", "checks": [ { "kind": "runs_now", "level": "ok", "title": "string", "detail": "string", "items": [ "string" ], "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" } } ], "resetJobs": [ "string" ]}Read how a deployment is shared, who holds it and who waits GET
Returns the shared-use settings, the claim that holds the deployment now (absent when nobody does), the requests waiting for it, oldest first, and what the caller may do. A deployment that is not shared answers with `settings.enabled` false. Needs `deployment:read`.
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