Set Kill Switch
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.
Stops new and running work for the target within 30 seconds; audited.
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.
Sparq-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.
uuidIf-Match?stringThe ETag you last read. A different current version is precondition_failed (412). Optional in 0.5.0.
application/json- body
Body of PUT /v1/admin/kill-switches. Stops new and running work for the target within 30
seconds; a stopped run ends as cancelled with code kill_switch_active.
target_type*KillSwitchTarget"agent""audience_tenant""credential""project"target_id*Target IdId, or agent name.
1 <= length <= 200project_id?|Required for an agent target.
reason*Reason1 <= length <= 2000expires_at?|nullSuccessful Response
application/json- response
kill_switch_id*Kill Switch Iduuidtarget_type*KillSwitchTarget"agent""audience_tenant""credential""project"target_id*Target Idproject_id*|nullactive*Activereason*Reasonset_by_credential_id*Set By Credential Iduuidset_at*Set Atdate-timeexpires_at*|nullcleared_at*|nullcurl -X PUT 'http://dev-sparq.centralindia.cloudapp.azure.com:8000/v1/admin/kill-switches' \ -H 'Content-Type: application/json' \ -d '{ "target_type": "agent", "target_id": "string", "reason": "string"}'{ "kill_switch_id": "a4722600-1a5a-4538-be3e-0d58f18ed790", "target_type": "agent", "target_id": "string", "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9", "active": true, "reason": "string", "set_by_credential_id": "aa04de38-abd9-4592-a7d5-71fc56046449", "set_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "cleared_at": "2019-08-24T14:15:22Z"}List Kill Switches 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.
Create Session 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. Start a conversation with an agent, or with `auto` to let the router choose.