Create a Workflow
Create a new Xcode Cloud workflow for an Xcode Cloud product.
URL
POST https://api.appstoreconnect.apple.com/v1/ciWorkflowsResponse Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 201 | Created Content-Type: application/json | CiWorkflowResponse | The request completed successfully and a new Workflows resource has been created. |
| 400 | Bad Request Content-Type: application/json | ErrorResponse | An error occurred with your request. |
| 401 | Unauthorized Content-Type: application/json | ErrorResponse | |
| 403 | Forbidden Content-Type: application/json | ErrorResponse | Request not authorized. |
| 409 | Conflict Content-Type: application/json | ErrorResponse | The provided resource data is not valid. |
| 422 | Content-Type: application/json | ErrorResponse | |
| 429 | Content-Type: application/json | ErrorResponse |
Discussion
The example request below creates a new workflow that performs the archive action. App Store Connect returns the 201 HTTP status code to indicate the successful creation of the workflow and returns information about the workflow. Use the data to access additional information or to start a new build.
Example Request and Response
HTTP Body
The request body you use to create a new Xcode Cloud workflow.