`POST /v1/orgs/{org}/signing-keys/rotate`.
const url = 'https://api.updawg.net/v1/orgs/example/signing-keys/rotate';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"from":"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/rotate \ --header 'Content-Type: application/json' \ --data '{ "from": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization slug.
Request Bodyrequired
Section titled “Request Bodyrequired”object
The sk_… the caller believes is active. When given and no longer
true, the answer is 409 and nothing is queued — a page that is a
rotation out of date must not rotate a key its reader never saw.
Examplegenerated
{ "from": "example"}Responses
Section titled “Responses”Queued. The signer makes the new key and the outgoing one endorses it; the list shows it when it lands. Asking again before then is the same request, not a second rotation.
object
The key being replaced.
Examplegenerated
{ "from": "example"}from is not a signing key id.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No session.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Not permitted for this role.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No such organization, or not yours — one answer for both.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Nothing to rotate, a customer-held key, from is no longer the active key, or an earlier rotation from this key failed and is waiting for an operator.
object
Examplegenerated
{ "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
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}