Check for draft mode support
You must also check if the connection spec ID and corresponding flow spec ID of the source you are using is enabled for draft mode.
Request
The following request retrieves the connection spec information for Azure File Storage:
Response
A successful response returns the connection spec information for your source. To verify if draft mode is supported for your source, check that the items[0].attributes.isDraftModeSupported has a value of true.
Request
The following request retrieves the flow spec details for a cloud storage source:
Response
A successful response returns the flow spec information for your source. To verify if draft mode is supported for your source, check that the items[0].attributes.isDraftModeSupported has a value of true.
Create a draft base connection
To create a draft base connection, make a POST request to the /connections endpoint of the Flow Service API and provide mode=draft as a query parameter.
API format
| Parameter | Description |
|---|---|
mode | A user-supplied query parameter that decides the state of the base connection. To set a base connection as a draft, set mode to draft. |
Request
The following request creates draft base connection for the Azure File Storage source:
Response
A successful response returns the base connection ID and corresponding etag for your draft base connection. You can use this ID later to update and publish your base connection.
Publish your draft base connection
Once your draft is ready to be published, make a POST request to the /connections endpoint and provide the ID of the draft base connection that you want to publish, as well as an action operation for publishing.
API format
| Parameter | Description |
|---|---|
op | An action operation that updates the state of the queried base connection. To publish a draft base connection, set op to publish. |
Request
The following request publishes the draft base connection for Azure File Storage that was created in an earlier step.
Response
A successful response returns the ID and corresponding etag for your published base connection.
Create a draft source connection
To create a draft source connection, make a POST request to the /sourceConnections endpoint of the Flow Service API and provide mode=draft as a query parameter.
API format
| Parameter | Description |
|---|---|
mode | A user-supplied query parameter that decides the state of the source connection. To set a source connection as a draft, set mode to draft. |
Request
Response
A successful response returns the source connection ID and corresponding etag for your draft source connection. You can use this ID later to update and publish your source connection.
Publish your draft source connection
Once your draft is ready to be published, make a POST request to the /sourceConnections endpoint and provide the ID of the draft source connection that you want to publish, as well as an action operation for publishing.
API format
| Parameter | Description |
|---|---|
op | An action operation that updates the state of the queried source connection. To publish a draft source connection, set op to publish. |
Request
The following request publishes the draft source connection for Azure File Storage that was created in an earlier step.
Response
A successful response returns the ID and corresponding etag for your published source connection.
Create a draft target connection
To create a draft target connection, make a POST request to the /targetConnections endpoint of the Flow Service API and provide mode=draft as a query parameter.
API format
| Parameter | Description |
|---|---|
mode | A user-supplied query parameter that decides the state of the target connection. To set a target connection as a draft, set mode to draft. |
Request
Response
A successful response returns the target connection ID and corresponding etag for your draft target connection. You can use this ID later to update and publish your target connection.
Publish your draft target connection
Once your draft is ready to be published, make a POST request to the /targetConnections endpoint and provide the ID of the draft target connection that you want to publish, as well as an action operation for publishing.
API format
| Parameter | Description |
|---|---|
op | An action operation that updates the state of the queried target connection. To publish a draft target connection, set op to publish. |
Request
The following request publishes the draft target connection for Azure File Storage that was created in an earlier step.
Response
A successful response returns the ID and corresponding etag for your published target connection.
Create a draft dataflow
To set a dataflow as a draft, make a POST request to the /flows endpoint while adding the mode=draft as a query parameter. This allows you to create a dataflow and save it as a draft.
API format
| Parameter | Description |
|---|---|
mode | A user-supplied query parameter that decides the state of the dataflow. To set a dataflow as a draft, set mode to draft. |
Request
The following request creates a draft dataflow.
Response
A successful response returns the flow ID and corresponding etag for your draft dataflow. You can use this ID later to update and publish your dataflow.
Publish your draft dataflow
Once your draft is ready to be published, make a POST request to the /flows endpoint while providing the ID of the draft dataflow that you want to publish, as well as an action operation for publishing.
API format
| Parameter | Description |
|---|---|
op | An action operation that updates the state of the queried dataflow. To publish a draft dataflow, set op to publish. |
Request
The following request publishes your draft dataflow.
Response
A successful response returns the ID and corresponding etag of your dataflow.
Next steps
By following this tutorial, you have learned how to create drafts of your Flow Service entities as well as publish these drafts. For more information on sources, please read the sources overview.
Was this content helpful?
Announcements
Get hands-on with agentic AI.
Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.
Find an eventAgentic AI Roadmap Webinar - Americas & EMEA
Preview the Agentic AI roadmap, see Agent Orchestrator in action, and ask the team.
Agentic AI Roadmap Webinar - Americas & APAC
Preview the Agentic AI roadmap, see Agent Orchestrator in action, and ask the team.
Adobe Experience Platform + Apps Roadmap Webinar - Americas & EMEA
Preview the Experience Platform and Apps roadmap and ask the product team questions.