Release a program’s claim
Preview. This operation may change in any release.
Release a ticket or pull request this program claimed, when the work is done. Only the program that holds a claim can release it; a chat’s claim or another program’s is refused (403 forbidden, “That belongs to someone else.”). The ref rides in the query (?ref=owner%2Frepo%2342), never the path: Remote Access refuses an encoded / in a URL path.
The sign-in cookie a browser gets when a person signs in to DorkOS. An installed DorkOS on port 4242 names it __Secure-better-auth.session_token. On any other port the prefix carries a suffix for its data folder (better-auth-<hash>), and a development server leaves off __Secure-. From this computer, an operation that takes the sign-in cookie or a personal API key needs neither while "Ask for a password on this computer too" is off, which is how DorkOS installs (dorkos auth enable turns it on). A request from another device needs one, with one exception for now: a browser reaching a Docker container through its published port, while the container runs with DORKOS_ALLOW_INSECURE_BIND and has no owner account yet.
In: cookie
Query Parameters
The ticket (DOR-1234) or pull request (owner/repo#42 or PR #42).
1 <= length <= 300Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X DELETE "https://example.com/api/program-claims?ref=string"{ "status": "approval_required", "capabilityId": "string", "approvalId": "string", "approvalToken": "string", "expiresAt": "string", "message": "string", "property1": null, "property2": null}