Syndai Docs

Continue a stopped slice chain

POST
/api/v1/external/coding/runs/{coding_run_id}/slice-chain/continue

Starts the next slice of a change that ships as several slices, when the chain stopped after this slice's work reached the default branch without starting the next one (for example its saved draft was merged by hand). Returns the next slice's run; calling again returns the same run. Returns 409 slice_not_landed when this slice's work is not on the default branch (Resume it or merge its pull request instead), chain_complete for the last slice, not_a_slice otherwise. An API key may call this; a signed-in person must be a workspace owner or admin (403).

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

coding_run_id*string
Formatuuid

Query Parameters

customer_id?|null

Response Body

Request fulfilled, document follows

application/json
  1. response
api_value_usd?number|null
artifact_retention_profile*string
attention?|null
auto_run_kind?string|null
autonomy_mode?string
Default"review"
base_branch?string|null
cap_usd?number|null
chain?|null
charged_usd?number|null
coding_project_id*string
Formatuuid
coding_repository_id?|null
created_at*string
Formatdate-time
current_activity_kind?string|null
current_activity_params?string|null
current_activity_since?string|null
current_activity_target?string|null
current_activity_template?string|null
current_phase*string
delivery_status?string|null
economy?boolean
Defaultfalse
effective_resolution_sha256?string|null
egress_profile*string
environment_id?|null
external_request_id*string
first_render_at?string|null
follow_through?array<>|null
harness_kind?|

The harness chosen in the run's policy_config, if any; null when no explicit choice was made. Open set — clients must tolerate unknown values.

id*string
Formatuuid
ingress?|null
land?|null
landed?boolean
Defaultfalse
last_stage?string|null
last_stage_at?|null
lesson?|null
memory_given?|null
origin?string|null
parent_coding_run_id?|null
policy_contract_sha256?string|null
policy_resolved_at?|null
pr_number?integer|null
pr_status?string|null
pr_url?string|null
preview_urls?
prompt?string|null
pull_requests?array<>|null
readiness?|null
redrive_count?integer
Default0
refund_under_review?boolean
Defaultfalse
refunded_usd?number|null
result_kind?string|null
schedule_id?|null
schedule_kind?string|null
service_coverage?array<>
site_build?string|null
site_plan_id?string|null
spec_review_mode?string
Default"auto"
stopped?boolean
Defaultfalse
subscription_share?|null
terminal_summary?|null
thread_id?|null
title?string|null
updated_at*string
Formatdate-time
validated_head_sha?string|null
validation_iteration*integer
work_usd?number|null
Example Request
curl -X POST 'https://api.syndai.ai/api/v1/external/coding/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/slice-chain/continue'
Example Response
{  "api_value_usd": 0,  "artifact_retention_profile": "string",  "attention": {    "attention_at": "2019-08-24T14:15:22Z",    "attention_class": 0,    "note": "string",    "pause_kind": "string",    "resume_at": "2019-08-24T14:15:22Z",    "state": "string",    "state_entered_at": "2019-08-24T14:15:22Z",    "unread": false  },  "auto_run_kind": "string",  "autonomy_mode": "review",  "base_branch": "string",  "cap_usd": 0,  "chain": {    "root_run_id": "string",    "sequence": 0,    "slices": [      {        "feature_key": "string",        "run_id": "string",        "sequence": 0,        "state": "string",        "title": "string"      }    ],    "total": 0  },  "charged_usd": 0,  "coding_project_id": "683a2bf2-1a01-4056-990f-d7c9b6f3ef2e",  "coding_repository_id": "0d18edb4-5201-4374-8af8-14fdbf761813",  "created_at": "2019-08-24T14:15:22Z",  "current_activity_kind": "string",  "current_activity_params": "string",  "current_activity_since": "string",  "current_activity_target": "string",  "current_activity_template": "string",  "current_phase": "string",  "delivery_status": "string",  "economy": false,  "effective_resolution_sha256": "string",  "egress_profile": "string",  "environment_id": "40ef0e48-a11f-4963-a229-e396c9f7e7c4",  "external_request_id": "string",  "first_render_at": "string",  "follow_through": [    {      "detail": "string",      "kind": "string",      "link": "string",      "state": "string"    }  ],  "harness_kind": "string",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "ingress": {    "category": "string",    "excerpt": "string",    "inherited": false,    "source": "string",    "url": "string"  },  "land": {    "can_merge_anyway": false,    "can_retry": false,    "commit_url": "string",    "deploy_status": "string",    "head_sha": "string",    "landed_sha": "string",    "live_url": "string",    "owner_step": "string",    "reason": "string",    "revert_of_run_id": "1e306a3f-a1e3-4923-8323-dbe1421af629",    "reverted_by_run_id": "51dd706d-ba27-424b-9048-1cd1baa3613f",    "security": {      "access": {        "intended": [          {            "quote": "string",            "sentence": "string"          }        ],        "members_see": [          "string"        ],        "unchecked": [          "string"        ],        "visitors_add": [          "string"        ],        "visitors_see": [          "string"        ]      },      "fixed": [        {          "proved": true,          "sentence": "string"        }      ],      "held": [        {          "file": "string",          "proved": true,          "sentence": "string",          "severity": "string"        }      ],      "state": "string"    },    "state": "string",    "strategy": "string",    "verified": true  },  "landed": false,  "last_stage": "string",  "last_stage_at": "2019-08-24T14:15:22Z",  "lesson": {    "note_id": "string",    "replaces": {      "body": "string",      "note_id": "f37a7c27-f466-4182-88ae-001e80802cdc",      "scope": "string"    },    "text": "string"  },  "memory_given": {    "answers": 0,    "brief": true,    "notes": 0  },  "origin": "string",  "parent_coding_run_id": "0087b7ae-a040-4979-b291-9a2d5a0db63c",  "policy_contract_sha256": "string",  "policy_resolved_at": "2019-08-24T14:15:22Z",  "pr_number": 0,  "pr_status": "string",  "pr_url": "string",  "preview_urls": {},  "prompt": "string",  "pull_requests": [    {      "base_branch": "string",      "branch": "string",      "draft": true,      "feature_key": "string",      "pr_number": 0,      "pr_status": "string",      "pr_url": "string",      "sequence": 0    }  ],  "readiness": {    "clarifying_questions": [      "string"    ],    "readiness": "string"  },  "redrive_count": 0,  "refund_under_review": false,  "refunded_usd": 0,  "result_kind": "string",  "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",  "schedule_kind": "string",  "service_coverage": [    {}  ],  "site_build": "string",  "site_plan_id": "string",  "spec_review_mode": "auto",  "stopped": false,  "subscription_share": {    "account_label": "string",    "final": true,    "overage": true,    "pct": 0,    "provider": "string",    "window": "string"  },  "terminal_summary": {},  "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",  "title": "string",  "updated_at": "2019-08-24T14:15:22Z",  "validated_head_sha": "string",  "validation_iteration": 0,  "work_usd": 0}
Was this page helpful?