Ask the holder of a shared deployment to hand it over
Joins the line for the deployment with the branch and time wanted. The holder is told in their notifications and answers by handing over now, handing over when they release, or declining with a reason. Answers 409 `share.not_claimed` when nobody holds it and 409 `share.already_requested` for a perso
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*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 <= 255application/json- body
branch*stringThe branch the deployment follows while the claim lasts.
minutes*integerHow long, from 15 minutes up to the deployment's longest claim.
note?stringlength <= 280resetFirst?booleanRun the hand-over reset jobs before taking it, rather than keeping what the last holder left.
The request.
application/json- response
id*stringuuidclaimId*stringuuidby*branch*stringminutes*integernote*stringstate*string"waiting""accepted""handed_over""declined""withdrawn""taken_over"declineReason?stringcreatedAt*stringdate-timedecidedAt?stringdate-timecurl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/share/requests' \ -H 'Content-Type: application/json' \ -d '{ "branch": "string", "minutes": 0}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "claimId": "88057929-7728-4a26-8396-f965dcc8b947", "by": { "id": "string", "name": "string" }, "branch": "string", "minutes": 0, "note": "string", "state": "waiting", "declineReason": "string", "createdAt": "2019-08-24T14:15:22Z", "decidedAt": "2019-08-24T14:15:22Z"}Take a shared deployment over from its holder POST
Ends the claim on the authority of an admin, with a reason the holder is told. The deployment goes to the next person in line, or back to its branch. Answers 403 `share.takeover_off` when the deployment's settings do not allow it. Writes an Activity entry. Needs `deployment:manage`.
Say yes to a request for a shared deployment POST
`now` ends the claim and gives the deployment to the person at once; `when_released` keeps them first in line for the moment the holder lets go. Only the holder can. Writes an Activity entry. Needs `deployment:sync`.