Re-point production at an older version (deprecated)
const url = 'https://shareout.site/v1/artifacts/example/rollback';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"version_no":1,"version_id":"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://shareout.site/v1/artifacts/example/rollback \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "version_no": 1, "version_id": "example" }'Deprecated: use POST /v1/artifacts/{id}/versions/{no}/restore, which creates a new version with the old files and keeps the history. This endpoint only moves the production pointer and creates no version. Responses carry a Deprecation header. Editor or owner.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Artifact ID (e.g. art_abc123).
Request Bodyrequired
Section titled “Request Bodyrequired”object
Examplegenerated
{ "version_no": 1, "version_id": "example"}Responses
Section titled “Responses”Production now serves that version
object
Examplegenerated
{ "success": true, "deployed_version": 1, "version_id": "example"}Headers
Section titled “Headers”RFC 9745 deprecation date.
Access denied
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}Resource not found
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}No production deployment to roll back
