Publish Change Request
Not available yet. This operation is part of the published contract and answers
501 not_implementeduntil it is built. The request and response shapes below are final for this contract version.
HTTPBearerAuthorizationBearer <token>Bearer credential. API keys look like sqk_<geo>_<key_id>_<secret>: treat them as opaque and never put one in a browser. Older keys without the geo part stay valid until rotated. Find a geo's endpoints through GET /.well-known/sparq-discovery before sending a key.
change_request_id*Change Request IduuidSparq-Workspace?stringFor a person signed in to a console with several workspaces: the workspace this call is for, one of their memberships (listMyMemberships). Without it such a person gets workspace_required (400); a workspace they are not a member of is forbidden. It never grants anything, and other callers' credentials ignore it.
uuidIdempotency-Key?stringMakes a retry safe: the same key, route and body within 24 hours returns the stored response and the same result id. The same key with a different body or route is idempotency_conflict; while the first request runs, idempotency_in_progress.
8 <= length <= 128application/json- body
environment*EnvironmentEnvironment name, for example 'dev', 'qa', 'preprod' or 'prod'.
^[a-z][a-z0-9-]{0,30}$canary_percent?|nullSuccessful Response
application/json- response
kind?Kind"release"schema_version?Schema Version"1"release_id*Release Iduuidproject_id*Project Iduuidenvironment*EnvironmentEnvironment name, for example 'dev', 'qa', 'preprod' or 'prod'.
^[a-z][a-z0-9-]{0,30}$version*VersionSemantic version, for example '1.4.0'.
^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-[0-9A-Za-z.-]+)?$length <= 64status*ReleaseStatus"draft""staging""live""retired"content_hash*Content HashHash over all items; identifies the Release.
^sha256:[0-9a-f]{64}$items*array<>eval_run_id*|Evaluation that gated this Release.
change_request_id*|nullcreated_at*Created Atdate-timepublished_at*|nullnotes?string|nullcurl -X POST 'http://dev-sparq.centralindia.cloudapp.azure.com:8000/v1/admin/change-requests/497f6eca-6276-4993-bfeb-53cbbbba6f08/publish' \ -H 'Content-Type: application/json' \ -d '{ "environment": "string"}'{ "kind": "release", "schema_version": "1", "release_id": "51d53377-463c-43a4-a864-f9b3ed9178de", "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9", "environment": "string", "version": "1.4.0", "status": "draft", "content_hash": "string", "items": [ { "kind": "agent", "name": "string", "version": "1.4.0", "content_hash": "string" } ], "eval_run_id": "8022d801-acb6-4836-b536-3cd4138b6ae0", "change_request_id": "f90819c3-6f40-44d9-9518-d77c485c0c12", "created_at": "2019-08-24T14:15:22Z", "published_at": "2019-08-24T14:15:22Z", "notes": "string"}List Releases GET
> **Not available yet.** This operation is part of the published contract and answers `501 not_implemented` until it is built. The request and response shapes below are final for this contract version.
Rollback POST
> **Not available yet.** This operation is part of the published contract and answers `501 not_implemented` until it is built. The request and response shapes below are final for this contract version.