---
title: "Assign Custom Flow"
method: POST
path: "/custom-flow/assign"
tags: ["Custom Flow"]
---

# Assign Custom Flow

`POST /custom-flow/assign`

## Request body

- BlueprintApiCustomFlowAssignmentRequest[]
  - `scope` 'ORGANIZATION' | 'PROJECT' | 'BLUEPRINT', required
  - `order` number — Determines the execution order of the assigned custom flow, with lower numbers being executed first. If not provided, the assigned custom flow will be executed last. If multiple assignments have the same order number, their custom flows execution order is chosen randomly.
  - `scopeId` string, required
  - `blueprintId` string, required

## Response `200`

- unknown

---

[API](https://skmtc.net/envzero/apis/env0-api.md) · [All operations](https://skmtc.net/envzero/apis/env0-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/envzero/env0-api/versions/513441cbe9dc/schema)
