Skip to content
Start free

Make a coding job wait for an answer, a go, CI, a review, a reply, a ticket or a date - holding nothing while it waits

What you can call today

Every example here runs against api.xovris.ai with a key from your account’s settings. GET /v1/health and GET /v1/public/status answer without one.

PUT
/v1/code/tasks/{id}/wait
curl --request PUT \  --url https://api.xovris.ai/v1/code/tasks/example/wait \  --header 'Authorization: Bearer <token>' \  --header 'Content-Type: application/json' \  --data '{ "on": "review", "asked": "string", "until": "string", "ref": "string" }'

Needs a token that can read and change. A token without change access is refused with token_read_only and the step to take.

id
required
string
Media typeapplication/json
object
on
string
Allowed values: review ci ticket reply
asked
string
until
string
ref
string

Example

{  "on": "review",  "asked": "string",  "until": "string",  "ref": "string"}

Done.

Media typeapplication/json
object
says
required
string
history
string
createdAt
required
string
startedAt
required
One of:
string
endedAt
required
One of:
string
read
required
string
events
required
string
backend
string
analytics
string
preview
required
One of:
string
firstPage
required
boolean
live
required
One of:
string
watched
required
research
required
checklist
required
One of:
Array
stop
required
One of:
string
stopping
required
One of:
string
cancelled
required
One of:
object
shares
required
string
download
string
said
One of:
object
pullRequest
One of:
object
change
One of:
object
changed
object
proof
object
tried
object
next
One of:
object
ranIn
One of:
object
walk
One of:
object
deployed
One of:
object
id
required
string
kind
required
string
Allowed values: public deploy connected scratch
repository
required
string
words
required
string
via
required
string
state
required
string
beside
required
One of:
number
waitingUntil
required
One of:
string
after
required
One of:
string
waiting
required
One of:
object
says
required
string
on
required
string
Allowed values: answer date review ci go ticket reply
ref
required
One of:
string
until
required
One of:
string
since
required
string
asked
required
string
woke
required
Array<object>
object
on
required
string
Allowed values: answer date review ci go ticket reply
ref
required
One of:
string
at
required
string
said
required
string
waitedMs
required
number
since
required
string
plan
required
One of:
object
lines
required
Array<string>
by
required
string
at
required
One of:
string
waitingForGo
required
boolean
project
required
One of:
string
from
required
One of:
string
restored
required
One of:
string
steps
required
Array<object>
object
at
required
string
words
required
string
gate
required
One of:
object
at
required
string
figures
required
Array<object>
object
key
required
string
label
required
string
value
required
One of:
number
unit
required
string
Allowed values: score count
target
required
number
passed
required
boolean
detail
required
string
passed
required
boolean
measured
required
number
total
required
number
proven
required
boolean
checked
required
One of:
Array
chose
required
object
model
required
One of:
string
effort
required
string
chosen
required
One of:
object
model
required
string
name
required
string
effort
required
One of:
string

Example

{  "says": "string",  "history": "string",  "createdAt": "string",  "startedAt": "string",  "endedAt": "string",  "read": "string",  "events": "string",  "backend": "string",  "analytics": "string",  "preview": "string",  "firstPage": true,  "live": "string",  "watched": null,  "research": null,  "checklist": [    null  ],  "stop": "string",  "stopping": "string",  "cancelled": {},  "shares": "string",  "download": "string",  "said": {},  "pullRequest": {},  "change": {},  "changed": {},  "proof": {},  "tried": {},  "next": {},  "ranIn": {},  "walk": {},  "deployed": {},  "id": "string",  "kind": "public",  "repository": "string",  "words": "string",  "via": "string",  "state": "string",  "beside": 1,  "waitingUntil": "string",  "after": "string",  "waiting": {    "says": "string",    "on": "answer",    "ref": "string",    "until": "string",    "since": "string",    "asked": "string"  },  "woke": [    {      "on": "answer",      "ref": "string",      "at": "string",      "said": "string",      "waitedMs": 1,      "since": "string"    }  ],  "plan": {    "lines": [      "string"    ],    "by": "string",    "at": "string",    "waitingForGo": true  },  "project": "string",  "from": "string",  "restored": "string",  "steps": [    {      "at": "string",      "words": "string"    }  ],  "gate": {    "at": "string",    "figures": [      {        "key": "string",        "label": "string",        "value": 1,        "unit": "score",        "target": 1,        "passed": true,        "detail": "string"      }    ],    "passed": true,    "measured": 1,    "total": 1  },  "proven": true,  "checked": [    null  ],  "chose": {    "model": "string",    "effort": "string"  },  "chosen": {    "model": "string",    "name": "string"  },  "effort": "string"}

Not signed in: the token is missing, expired or revoked. The answer says how to get a new one.

Media typeapplication/json
object
error
required
object
code
required

A stable code a program can branch on.

string
message
required

What happened, in plain words.

string
nextStep
required

What to do next.

string
decisionId

The recorded authorisation decision, when a role refused it.

string

Example generated

{  "error": {    "code": "example",    "message": "example",    "nextStep": "example",    "decisionId": "example"  }}

Signed in, but this token or role may not do this. The answer names the permission it needs.

Media typeapplication/json
object
error
required
object
code
required

A stable code a program can branch on.

string
message
required

What happened, in plain words.

string
nextStep
required

What to do next.

string
decisionId

The recorded authorisation decision, when a role refused it.

string

Example generated

{  "error": {    "code": "example",    "message": "example",    "nextStep": "example",    "decisionId": "example"  }}

Nothing with that id here, or it belongs to another workspace. Nothing was changed.

Media typeapplication/json
object
error
required
object
code
required

A stable code a program can branch on.

string
message
required

What happened, in plain words.

string
nextStep
required

What to do next.

string
decisionId

The recorded authorisation decision, when a role refused it.

string

Example generated

{  "error": {    "code": "example",    "message": "example",    "nextStep": "example",    "decisionId": "example"  }}

Any other refusal or failure. The answer says what happened and what to do next.

Media typeapplication/json
object
error
required
object
code
required

A stable code a program can branch on.

string
message
required

What happened, in plain words.

string
nextStep
required

What to do next.

string
decisionId

The recorded authorisation decision, when a role refused it.

string

Example generated

{  "error": {    "code": "example",    "message": "example",    "nextStep": "example",    "decisionId": "example"  }}

Ask Xovris

Open the full page

Your data is never used to train our AI. How your data is kept

A problem is called fixed only once it works again. How each fix is checked

XOVRIS LTD, registered in England and Wales, company number 17499910. Registered office: 66 Paul Street, London EC2A 4NA.