Skip to main content
POST
Run a pipeline

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Run a pipeline on ready images (see GET /upload/{image_id}): segment them with model_id, one of the ids GET /models returns, then run each template in template_ids. One image is a list of one.

image_ids
string[]
required
Required array length: 1 - 1000 elements
Example:
model_id
string<uuid> | null

The model that segments the images. Null keeps the outlines each image has, for templates.

Example:

"c0ffee00-1234-5678-9abc-def012345678"

template_ids
string[]

The lab's analysis templates to run once the images are segmented. Empty: segment only.

analyses
ColocalizationSettings · object[]

Colocalizations to run with settings not saved as a template, their channels by position, 0-based. Each image gets the answer as its own, under no template.

channels
ChannelRun · object[]

For a multiplex image, without templates or analyses: segment these channels, 0-based, each on its own and with its own model_id (default: the run's). The image gets one pipeline job, with a prediction job per channel under it.

Response

Successful Response

job_ids
string[]
required
skipped
SkippedTemplate · object[]
required
image_id
string
required
error
string | null