`POST /v1/orgs/{org}/signing-keys/retire`.
const url = 'https://api.updawg.net/v1/orgs/example/signing-keys/retire';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"key":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.updawg.net/v1/orgs/example/signing-keys/retire \ --header 'Content-Type: application/json' \ --data '{ "key": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization slug.
Request Bodyrequired
Section titled “Request Bodyrequired”object
The sk_… of a key still retiring: the one before a rotation
(DAWG-309), Updawg’s after a hand-over to your own, or an earlier one
of yours (DAWG-293).
Example generated
{ "key": "example"}Responses
Section titled “Responses”Retired. No job is signed with it again, and hosts refuse anything it signed once they next renew — which they do within minutes of a rotation. A host that has not renewed since holds no key that can sign its jobs until it does: check each key’s hosts_pinned first. After a hand-over, Updawg is never asked to sign for this organization again.
object
The key retired.
Example generated
{ "key": "example"}key is missing or not a signing key id.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No session.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Not permitted for this role.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No such organization or key, or not yours — one answer for both.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Not a key still retiring while another is active: the active key, or one already retired.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}The organization’s data is in another region (wrong-region, DAWG-159). detail names that region’s API; send the request there.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}