Virtual Environments
Retrieves a list of virtual environments that have at least one flow version deployment. Can be filtered by name, type, status, hasDeployedVersion, and labelled.
API key passed in the Authorization header. Format: <api-key>
Filter results by name.
Filter results by type.
Filter results by status.
Filter results by hasDeployedVersion.
Filter results by label id.
Comma-separated list of relationships to include. Available: versions, firstVersion, firstVersion.user, deployments, deployedVersion.variables, deployments.flowVersion, deployments.flowVersion.flow, deployments.enabledBy, deployments.user, deployments.package, packageDeployments.user, packageDeployments.package, labels
Sort field. Prefix with - for descending. Available: name
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
Too Many Requests. The rate limit for this user has been reached.
GET /api/v1/flow-version-deployments/virtual-environments HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 0,
"name": "string",
"deleted_at": null
}
]
}Retrieves a paginated list of virtual environments.
API key passed in the Authorization header. Format: <api-key>
Filter results by name.
Filter results by status.
Filter results by hasDeployedVersion.
Filter results by label id.
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
Too Many Requests. The rate limit for this user has been reached.
GET /api/v1/virtual-environments HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 0,
"name": "string",
"description": "string",
"type": "string",
"flows": [],
"is_deployed": true,
"created_at": "string"
}
],
"links": {
"first": "string",
"last": "string",
"prev": null,
"next": null
},
"meta": {
"current_page": 0,
"from": 0,
"last_page": 0,
"links": [],
"path": "string",
"per_page": 0,
"to": 0,
"total": 0
}
}Creates a new virtual environment.
API key passed in the Authorization header. Format: <api-key>
Successful response
Unauthenticated
Unauthorized
Validation Error
Too Many Requests. The rate limit for this user has been reached.
POST /api/v1/virtual-environments HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 101
{
"description": "A description of the resource",
"type": "example_type",
"name": "My Example",
"labels": []
}{
"data": {
"id": 1,
"notes": "example_notes",
"deployed_at": "2025-01-15T10:30:00.000000Z",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"name": "My Example",
"description": "A description of the resource",
"type": "example_type",
"deployments": [],
"versions": [],
"versions_count": 5,
"first_version": "example_first_version",
"deployed_version": "example_deployed_version",
"flows": "example_flows",
"is_deployed": true,
"deployments_count": 5,
"pivot": [],
"package_deployments": [],
"labels": []
}
}Retrieves the details of a specific virtual environment.
API key passed in the Authorization header. Format: <api-key>
The virtual environment identifier.
Filter results by label id.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Too Many Requests. The rate limit for this user has been reached.
GET /api/v1/virtual-environments/{virtual_environment} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 0,
"name": "string",
"description": "string",
"type": "string",
"flows": [],
"is_deployed": false,
"created_at": "2025-01-15T10:30:00.000000Z"
}
}Updates an existing virtual environment.
API key passed in the Authorization header. Format: <api-key>
The virtual environment identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Validation Error
Too Many Requests. The rate limit for this user has been reached.
PUT /api/v1/virtual-environments/{virtual_environment} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 101
{
"description": "A description of the resource",
"type": "example_type",
"name": "My Example",
"labels": []
}{
"data": {
"id": 1,
"notes": "example_notes",
"deployed_at": "2025-01-15T10:30:00.000000Z",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"name": "My Example",
"description": "A description of the resource",
"type": "example_type",
"deployments": [],
"versions": [],
"versions_count": 5,
"first_version": "example_first_version",
"deployed_version": "example_deployed_version",
"flows": "example_flows",
"is_deployed": true,
"deployments_count": 5,
"pivot": [],
"package_deployments": [],
"labels": []
}
}Permanently deletes a specific virtual environment.
API key passed in the Authorization header. Format: <api-key>
The virtual environment identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Too Many Requests. The rate limit for this user has been reached.
DELETE /api/v1/virtual-environments/{virtual_environment} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "Action completed successfully."
}Creates a copy of a specific virtual environment.
API key passed in the Authorization header. Format: <api-key>
The virtual environment identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Validation Error
Too Many Requests. The rate limit for this user has been reached.
POST /api/v1/virtual-environments/{virtual_environment}/copy HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{}Retrieves a paginated list of versions for a specific virtual environment.
API key passed in the Authorization header. Format: <api-key>
The virtual environment identifier.
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Too Many Requests. The rate limit for this user has been reached.
GET /api/v1/virtual-environments/{virtual_environment}/versions HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 0,
"version": 0,
"virtual_environment_id": 0,
"status": "string",
"deployed_at": null,
"notes": null,
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"user_id": 0
}
],
"links": {
"first": "string",
"last": "string",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 15,
"to": 1,
"total": 1
}
}Creates a new version for a specific virtual environment.
API key passed in the Authorization header. Format: <api-key>
The virtual environment identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Validation Error
Too Many Requests. The rate limit for this user has been reached.
POST /api/v1/virtual-environments/{virtual_environment}/versions HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 25
{
"notes": "example_notes"
}{
"data": {
"id": 1,
"notes": "example_notes",
"deployed_at": "2025-01-15T10:30:00.000000Z",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"name": "My Example",
"description": "A description of the resource",
"type": "example_type",
"deployments": [],
"versions": [],
"versions_count": 5,
"first_version": "example_first_version",
"deployed_version": "example_deployed_version",
"flows": "example_flows",
"is_deployed": true,
"deployments_count": 5,
"pivot": [],
"package_deployments": [],
"labels": []
}
}Retrieves the details of a specific version for a specific virtual environment.
API key passed in the Authorization header. Format: <api-key>
The virtual environment identifier.
The version identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Too Many Requests. The rate limit for this user has been reached.
GET /api/v1/virtual-environments/{virtual_environment}/versions/{version} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 0,
"version": 0,
"virtual_environment_id": 0,
"status": "string",
"deployed_at": null,
"notes": null,
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"user_id": 0
}
}Updates an existing version for a specific virtual environment.
API key passed in the Authorization header. Format: <api-key>
The virtual environment identifier.
The version identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Validation Error
Too Many Requests. The rate limit for this user has been reached.
PUT /api/v1/virtual-environments/{virtual_environment}/versions/{version} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 25
{
"notes": "example_notes"
}{
"data": {
"id": 1,
"notes": "example_notes",
"deployed_at": "2025-01-15T10:30:00.000000Z",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"name": "My Example",
"description": "A description of the resource",
"type": "example_type",
"deployments": [],
"versions": [],
"versions_count": 5,
"first_version": "example_first_version",
"deployed_version": "example_deployed_version",
"flows": "example_flows",
"is_deployed": true,
"deployments_count": 5,
"pivot": [],
"package_deployments": [],
"labels": []
}
}Permanently deletes a specific version for a specific virtual environment.
API key passed in the Authorization header. Format: <api-key>
The virtual environment identifier.
The version identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Too Many Requests. The rate limit for this user has been reached.
DELETE /api/v1/virtual-environments/{virtual_environment}/versions/{version} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "Action completed successfully."
}Creates a copy of a specific version for a specific virtual environment.
API key passed in the Authorization header. Format: <api-key>
The virtual environment identifier.
The version identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Validation Error
Too Many Requests. The rate limit for this user has been reached.
POST /api/v1/virtual-environments/{virtual_environment}/versions/{version}/copy HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{}Deploys a specific version of a specific virtual environment.
API key passed in the Authorization header. Format: <api-key>
The virtual environment identifier.
The version identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Validation Error
Too Many Requests. The rate limit for this user has been reached.
POST /api/v1/virtual-environments/{virtual_environment}/versions/{version}/deploy HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{}Last updated
Was this helpful?