Queue a CI job on a runner
curl --request POST \
--url https://api.styne.ai/ci/jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"repo": "<string>",
"workflow": "<string>",
"ref": "<string>",
"inputs": {},
"env": {}
}
'import requests
url = "https://api.styne.ai/ci/jobs"
payload = {
"repo": "<string>",
"workflow": "<string>",
"ref": "<string>",
"inputs": {},
"env": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({repo: '<string>', workflow: '<string>', ref: '<string>', inputs: {}, env: {}})
};
fetch('https://api.styne.ai/ci/jobs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Queue a CI job on a runner
POST
/
ci
/
jobs
Queue a CI job on a runner
curl --request POST \
--url https://api.styne.ai/ci/jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"repo": "<string>",
"workflow": "<string>",
"ref": "<string>",
"inputs": {},
"env": {}
}
'import requests
url = "https://api.styne.ai/ci/jobs"
payload = {
"repo": "<string>",
"workflow": "<string>",
"ref": "<string>",
"inputs": {},
"env": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({repo: '<string>', workflow: '<string>', ref: '<string>', inputs: {}, env: {}})
};
fetch('https://api.styne.ai/ci/jobs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Authorizations
Body
application/json
Run a workflow of a repository the account's GitHub App installation covers, on a Styne runner. The workflow needs an on: workflow_dispatch trigger.
Response
Success. The answer is described on https://docs.styne.ai/ci.