Skip to content

Blueprints โ€‹

Workflow templates โ€” the definition of what a Factory workflow does. A blueprint is created, modified, and versioned via these endpoints; running a blueprint creates an Assembly. The visual blueprint editor in the S-Launch UI is built on top of these endpoints.

Scopes โ€‹

ScopeReach
blueprints:readListing, reading, fetching thumbnails.
blueprints:writeCreating, updating, deleting, uploading thumbnails.

Endpoints โ€‹

List Blueprints โ€‹

GET /api/factory/workflows/

Returns a page of blueprint records.

Required scope: blueprints:read ยท also accepts API key

Query parameters โ€” standard pagination set; see Conventions โ€บ Pagination. Defaults: sort_by=created, sort_order=desc, hydrate=true.

Response 200 โ€” BlueprintInDbCursorPage

Get Blueprint Filter Metadata โ€‹

GET /api/factory/workflows/filters

Returns filter/operator/sort options for List Blueprints.

Required scope: blueprints:read

Response 200 โ€” open metadata object.

Get Blueprint by ID โ€‹

GET /api/factory/workflows/{id}

Returns a single blueprint.

Required scope: blueprints:read ยท also accepts API key

Path parameters

NameTypeRequiredDescription
idstringyesBlueprint ID.

Response 200 โ€” BlueprintRead

Get Blueprint Thumbnail โ€‹

GET /api/factory/workflows/{id}/thumbnail

Returns the thumbnail image for the blueprint (used by gallery views in the UI).

Required scope: blueprints:read

Path parameters

NameTypeRequiredDescription
idstringyesBlueprint ID.

Response 200 โ€” image bytes.

Create Blueprint โ€‹

POST /api/factory/workflows/

Creates a new blueprint.

Required scope: blueprints:write

Request body โ€” BlueprintWriteCreate

Response 201 โ€” BlueprintRead

Update Blueprint by ID โ€‹

PUT /api/factory/workflows/{id}

Replaces the blueprint definition.

Required scope: blueprints:write

Path parameters

NameTypeRequiredDescription
idstringyesBlueprint ID.

Request body โ€” BlueprintWriteReplace

Response 200 โ€” BlueprintRead

Patch Blueprint โ€‹

PATCH /api/factory/workflows/{id}

Partial blueprint update.

Required scope: blueprints:write

Path parameters

NameTypeRequiredDescription
idstringyesBlueprint ID.

Request body โ€” BlueprintWriteUpdate

Response 200 โ€” BlueprintRead

Delete Blueprint by ID โ€‹

DELETE /api/factory/workflows/{id}

Removes the blueprint definition. Existing Assemblies that ran this blueprint are retained as historical records.

Required scope: blueprints:write

Path parameters

NameTypeRequiredDescription
idstringyesBlueprint ID.

Response 204 โ€” empty.

Upload Blueprint Thumbnail โ€‹

POST /api/factory/workflows/{id}/thumbnail

Uploads a thumbnail image for the blueprint.

Required scope: blueprints:write

Path parameters

NameTypeRequiredDescription
idstringyesBlueprint ID.

Request body โ€” Body_Blueprints-upload_thumbnail (multipart/form-data).

Response 200 โ€” BlueprintRef

See also โ€‹

  • Tickets โ€” requests to run a blueprint.
  • Assemblies โ€” execution histories produced by running a blueprint.
  • Builder Helpers โ€” smartnames, factory store, and the UCS scope catalogue used in the editor.

S-Launch