Praecise Cloud/ Reference/ Projects
Serve a kept release again
post/api/projects/{name}/rollback
Serve a kept release again. Answers when the release is live and healthy, which can take a few minutes; allow five. Anything that is not a kept release answers 400.
Before you call
- Credential
Authorization: Bearer $KEYwithrollback- Scope
rollback- Role
member
Parameters
- namestringrequiredIn the path. The project's name.
- Idempotency-KeystringHeader. Send the same key when retrying. Within 24 hours the first successful answer is returned again, with Idempotent-Replayed: true, instead of running twice.
Request bodyapplication/json, required
- releasestringrequiredA release id from the kept releases, or "previous" for the release that was live before the current one.
Responses
- 200application/jsonThe release is live.
object - 400application/jsonThe request is not valid: a bad parameter, or a release that is not kept. Code bad_request or bad_release.
- errorstringrequired
- codestringrequired
- 401application/jsonNo token, or the token is unknown, revoked or expired. Code unauthenticated, token_revoked or token_expired.
- errorstringrequired
- codestringrequired
- 403application/jsonThe token lacks the scope, the call is not open to tokens, or the caller is not an owner. Code scope_missing, session_required or owner_required.
- errorstringrequired
- codestringrequired
- 404application/jsonNo such project, or one the caller cannot see. The two are not told apart. Code not_found.
- errorstringrequired
- codestringrequired
- 409application/jsonA deploy is already running for the project, or the first request with this Idempotency-Key has not finished. Code deploy_running, no_source or request_in_progress.
- errorstringrequired
- codestringrequired
- 422application/jsonThe Idempotency-Key was already used for a different request. Code idempotency_key_reused.
- errorstringrequired
- codestringrequired
- 429application/jsonToo many requests for this token. Retry-After says how many seconds to wait. Code rate_limited.
- errorstringrequired
- codestringrequired
- 500application/jsonThe rollback did not complete; the answer carries its output. Code rollback_failed.
- errorstringrequired
- codestringrequired