Todos
Create a job todo
Changed onGit provider webhook triggers Scout to create a job todo. Similarly, a lint job started or completed triggers jobs todo. Since Scout is stateless and distributed, this is the API for storing things to do. It's also a way to communicate with Scout by making jobs for it to do too (such as communicating status back to Git). Finally, it can be used to trigger Scout to update again in the case of a GitHub webhook outage.
post/orgs/{orgId}/projects/{projectId}/scout/todos
Request
- Base URLhttps://app.cloud.redocly.com/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
orgIdstring required
Example:acme-inc
Organization ID.
projectIdstring required
Example:my-project
Project ID.
Headers
x-redocly-scout-versionstring
Example:1.0.0
Scout version.
Request body
Example request
{
"id": "sjob_01h2t9ksv7vmsvbhh5ty40zctw",
"parentJobId": "sjob_01h2t9ksv7vmsvbhh5ty40zctw",
"checks": [
{
"name": "Scorecard - Compliance API"
}
],
"metadata": {
"scoutVersion": "1.0.0"
}
}Response
Created.
Example response
{
"id": "sjob_01h2t9ksv7vmsvbhh5ty40zctw",
"parentJobId": "sjob_01h2t9ksv7vmsvbhh5ty40zctw",
"checks": [
{
"name": "Scorecard - Compliance API"
}
],
"metadata": {
"scoutVersion": "1.0.0"
}
}Changes
- breaking
the response property
became optional for the status - breaking
the response property
became optional for the status
- breaking