Flow Version Deployments
API key passed in the Authorization header. Format: <api-key>
Filter results by package_id.
Filter results by virtual_environment_id.
Filter results by global.
Filter results by flowVersion.flow.
Filter results by name.
Filter results by LIKE.
Comma-separated list of relationships to include. Available: enabledBy, flowVersion, virtualEnvironment, package, user
Sort field. Prefix with - for descending. Available: created_at, enabled_at, flow_name, DESC, ASC, flow_versions, flow_version_deployments.flow_version_id, =, flow_versions.id, flows, flow_versions.flow_id, =, flows.id, flows.name, flow_version_iteration, DESC, ASC, flow_versions.id, ( SELECT COUNT(*) FROM flow_versions fv2 WHERE fv2.flow_id = flow_versions.flow_id AND fv2.id <= flow_versions.id ) AS iteration, flow_versions, flow_versions.id, flow_versions, flow_version_deployments.flow_version_id, =, flow_versions.id, iteration_calc, flow_versions.id, =, iteration_calc.id, iteration_calc.iteration
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/flow-version-deployments HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 0,
"flow_version_id": 0,
"flow_version": {
"id": 0,
"iteration": 0,
"deleted_at": null,
"flow": {
"id": 0,
"name": "string",
"deleted_at": null
}
},
"virtual_environment_id": null,
"enabled_by": 0,
"enabled_at": "string",
"package_id": null,
"user_id": 0,
"priority": null,
"created_at": "string",
"updated_at": "string"
}
],
"links": {
"first": "string",
"last": "string",
"prev": null,
"next": null
},
"meta": {
"current_page": 0,
"from": 0,
"last_page": 0,
"path": "string",
"per_page": 0,
"to": 0,
"total": 0
}
}API key passed in the Authorization header. Format: <api-key>
The flow version identifier.
Filter results by flow_id.
Filter results by package_id.
Filter results by virtual_environment_id.
Filter results by global.
Comma-separated list of relationships to include. Available: enabledBy, flowVersion, virtualEnvironment, package, user
Sort field. Prefix with - for descending. Available: flow_name, flow_version_iteration
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/flow-versions/{flow_version}/deployments HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 0,
"flow_version_id": 0,
"virtual_environment_id": null,
"priority": 0,
"deploy_disabled": false,
"enabled_at": null,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://core.wearepatchworks.com/api/v1/flow-versions/6/deployments",
"per_page": 15,
"to": 1,
"total": 1
},
"links": {
"first": "https://core.wearepatchworks.com/api/v1/flow-versions/6/deployments?page=1",
"last": "https://core.wearepatchworks.com/api/v1/flow-versions/6/deployments?page=1",
"prev": null,
"next": null
}
}API key passed in the Authorization header. Format: <api-key>
The flow version identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flow-versions/{flow_version}/deployments HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"flow_version_id": 0,
"virtual_environment_id": null,
"priority": 0,
"deploy_disabled": false
}{
"data": {
"id": 0,
"flow_version_id": 0,
"virtual_environment_id": null,
"priority": 0,
"deploy_disabled": false,
"enabled_at": null,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
}API key passed in the Authorization header. Format: <api-key>
The flow version identifier.
The deployment identifier.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/flow-versions/{flow_version}/deployments/{deployment} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 0,
"flow_version_id": 0,
"virtual_environment_id": null,
"priority": 0,
"deploy_disabled": false,
"enabled_at": null,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
}API key passed in the Authorization header. Format: <api-key>
The flow version identifier.
The deployment identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
PUT /api/v1/flow-versions/{flow_version}/deployments/{deployment} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 86
{
"virtual_environment_id": null,
"priority": 0,
"deploy_disabled": false,
"enabled_at": null
}{
"data": {
"id": 0,
"flow_version_id": 0,
"virtual_environment_id": null,
"priority": 0,
"deploy_disabled": false,
"enabled_at": null,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
}API key passed in the Authorization header. Format: <api-key>
The flow version identifier.
The deployment identifier.
Successful response
Unauthenticated
Unauthorized
DELETE /api/v1/flow-versions/{flow_version}/deployments/{deployment} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "string"
}API key passed in the Authorization header. Format: <api-key>
The flow version identifier.
The deployment identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flow-versions/{flow_version}/deployments/{deployment}/enable HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "string"
}API key passed in the Authorization header. Format: <api-key>
The flow version identifier.
The deployment identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flow-versions/{flow_version}/deployments/{deployment}/disable HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "string"
}Last updated
Was this helpful?