Download OpenAPI specification:Download
OpsChain is an orchestration and change automation platform based in GitOps principles with a core objective to Unify Change. Connect, automate, and orchestrate people, processes, and tools across your on-premise and cloud platforms.
Endpoints to interact with projects.
Notes:
show
and list
response payloads include links to the project's assets, changes, automated change rules, bookmarks and MintModels endpoints. These endpoints act like
the assets, changes, automated changes, bookmarks and MintModels endpoints respectively./<path/to/asset/owner>/assets
path. The example endpoints in this section reflect assets owned by a project.Lists all projects (including archived projects).
Each project in the response includes a link to:
changes
endpoint for managing changes belonging to this project. It acts like the changes endpoint.automated_change_rules
endpoint for managing automated change rules belonging to this project. It acts like the automated change endpoint.bookmarks
endpoint for managing the bookmarks belonging to this project. It acts like a bookmarks endpoint.mintmodels
endpoint for managing the MintModels belonging to this project. It acts like a MintModels endpoint.mintmodel_history
endpoint for viewing this project's MintModel history. It acts like a MintModel history endpoint.
.filter[<query/sort filter>]= | |
download | string Example: download=projects.csv Download the projects in CSV format with the specified file name. The projects will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
{- "data": [
- {
- "id": "e94ff0ee-d95c-4a08-84b8-9f6616ebf85a",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "fa196676-eeab-4a0f-978c-3854a8777997",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/fa196676-eeab-4a0f-978c-3854a8777997"
}
}, - "settings": {
- "data": {
- "id": "ab71f2b0-c4c0-4da7-8370-9322c79d5c6e",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/ab71f2b0-c4c0-4da7-8370-9322c79d5c6e"
}
}, - "children": {
- "data": [ ]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc",
- "bookmarks": "/api/projects/opc/bookmarks",
- "changes": "/api/projects/opc/changes",
- "automated_change_rules": "/api/projects/opc/automated_change_rules",
- "git_remotes": "/api/projects/opc/git_remotes",
- "workflows": "/api/projects/opc/workflows",
- "workflow_runs": "/api/projects/opc/workflow_runs",
- "templates": "/api/projects/opc/templates",
- "environments": "/api/projects/opc/environments",
- "assets": "/api/projects/opc/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": true,
- "requires_template": false,
- "child_node_types": [
- "environment",
- "asset"
]
}
}
]
}
Creates a project.
required | object |
{- "data": {
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project"
}
}
}
{- "data": {
- "id": "b75e055b-bc26-4835-aac1-e15cf601562a",
- "type": "project",
- "attributes": {
- "code": "ptkmk",
- "name": "repudiandae120",
- "description": "Autem et itaque animi.",
- "archived": false,
- "project_type": "Standard"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "23e92373-4e20-451a-bc30-f76220489c1a",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/23e92373-4e20-451a-bc30-f76220489c1a"
}
}, - "settings": {
- "data": {
- "id": "d0ca737d-9a1a-4248-909a-8525b7ad2b63",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/d0ca737d-9a1a-4248-909a-8525b7ad2b63"
}
}, - "children": {
- "data": [ ]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/ptkmk",
- "bookmarks": "/api/projects/ptkmk/bookmarks",
- "git_remotes": "/api/projects/ptkmk/git_remotes",
- "environments": "/api/projects/ptkmk/environments"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": false,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "environment"
]
}
}
}
Shows a project, including any direct children.
The response includes a link to:
changes
endpoint for managing changes belonging to this project. It acts like the changes endpoint.automated_change_rules
endpoint for managing automated change rules belonging to this project. It acts like the automated change endpoint.bookmarks
endpoint for managing the bookmarks belonging to this project. It acts like a bookmarks endpoint.mintmodels
endpoint for managing the MintModels belonging to this project. It acts like a MintModels endpoint.mintmodel_history
endpoint for viewing this project's MintModel history. It acts like a MintModel history endpoint.
.project_code required | string Example: opc project code |
{- "data": {
- "id": "849ad1be-0e60-451b-90db-2848990bab53",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "03a0b0f9-aeee-4759-a6b3-26dabd2ac31e",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/03a0b0f9-aeee-4759-a6b3-26dabd2ac31e"
}
}, - "settings": {
- "data": {
- "id": "21abc57c-3972-4fad-b95f-afdff7939edc",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/21abc57c-3972-4fad-b95f-afdff7939edc"
}
}, - "children": {
- "data": [ ]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc",
- "bookmarks": "/api/projects/opc/bookmarks",
- "changes": "/api/projects/opc/changes",
- "automated_change_rules": "/api/projects/opc/automated_change_rules",
- "git_remotes": "/api/projects/opc/git_remotes",
- "workflows": "/api/projects/opc/workflows",
- "workflow_runs": "/api/projects/opc/workflow_runs",
- "templates": "/api/projects/opc/templates",
- "environments": "/api/projects/opc/environments",
- "assets": "/api/projects/opc/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": true,
- "requires_template": false,
- "child_node_types": [
- "environment",
- "asset"
]
}
}, - "included": [ ]
}
Updates a project.
project_code required | string Example: opc project code |
required | object |
{- "data": {
- "attributes": {
- "name": "Modified",
- "description": "The updated project",
- "archived": false
}
}
}
{- "data": {
- "id": "6c7e4f80-7bef-43e5-95e2-ac57a9cef30f",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "qui125",
- "description": "Distinctio consequatur sint rem.",
- "archived": true,
- "project_type": "Standard"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "86360791-71a9-4d10-b51f-35260382690a",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/86360791-71a9-4d10-b51f-35260382690a"
}
}, - "settings": {
- "data": {
- "id": "66ceb5a8-4217-4da7-b28b-f5b70bafb610",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/66ceb5a8-4217-4da7-b28b-f5b70bafb610"
}
}, - "children": {
- "data": [ ]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc",
- "bookmarks": "/api/projects/opc/bookmarks",
- "git_remotes": "/api/projects/opc/git_remotes",
- "environments": "/api/projects/opc/environments"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": false,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "environment"
]
}
}
}
Endpoints to interact with environments.
Notes:
show
and list
response payloads include links to the environment's assets, changes, automated change rules, bookmarks and MintModels endpoints. These endpoints act like
the assets, changes, automated changes, bookmarks and MintModels endpoints respectively./<path/to/asset/owner>/assets
path. The example endpoints in this section reflect assets owned by a project.Lists all project environments (including archived environments).
Each environment in the response includes a link to:
changes
endpoint for managing changes belonging to this environment. It acts like the changes endpoint.automated_change_rules
endpoint for managing automated change rules belonging to this environment. It acts like the automated change endpoint.bookmarks
endpoint for managing the bookmarks belonging to this environment. It acts like a bookmarks endpoint.mintmodels
endpoint for managing the MintModels belonging to this environment. It acts like a MintModels endpoint.mintmodel_history
endpoint for viewing this environment's MintModel history. It acts like a MintModel history endpoint.
.project_code required | string Example: opc project code |
filter[<query/sort filter>]= | |
download | string Example: download=environments.csv Download the project environments in CSV format with the specified file name. The environments will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
{- "data": [
- {
- "id": "19a3692a-d7c6-4e9b-b98d-5fc869a6228b",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "9064850a-78af-443e-bc5d-388cdf672f92",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/9064850a-78af-443e-bc5d-388cdf672f92"
}
}, - "settings": {
- "data": {
- "id": "90113512-7b35-4dee-979a-f1b4911606e3",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/90113512-7b35-4dee-979a-f1b4911606e3"
}
}, - "project": {
- "data": {
- "id": "684c6ece-3179-495b-8200-632062b8cb7f",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "children": {
- "data": [ ]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/environments/dev",
- "bookmarks": "/api/projects/opc/environments/dev/bookmarks",
- "changes": "/api/projects/opc/environments/dev/changes",
- "automated_change_rules": "/api/projects/opc/environments/dev/automated_change_rules",
- "parent": "/api/projects/opc",
- "assets": "/api/projects/opc/environments/dev/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "asset"
]
}
}
]
}
Creates an environment.
project_code required | string Example: opc project code |
required | object |
{- "data": {
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment"
}
}
}
{- "data": {
- "id": "109d0e67-8015-4a26-bf76-3b8b65b7395e",
- "type": "environment",
- "attributes": {
- "code": "khd12",
- "name": "quia104",
- "description": "Animi aut eius aliquam.",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "d07236e6-c012-42e7-aec7-0d849eb01287",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/d07236e6-c012-42e7-aec7-0d849eb01287"
}
}, - "settings": {
- "data": {
- "id": "a9e4d962-07a4-4a75-b5b4-55cd70429ffc",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/a9e4d962-07a4-4a75-b5b4-55cd70429ffc"
}
}, - "project": {
- "data": {
- "id": "da2aac90-6d80-43b8-afe3-15585e354968",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "children": {
- "data": [ ]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/environments/khd12",
- "bookmarks": "/api/projects/opc/environments/khd12/bookmarks",
- "changes": "/api/projects/opc/environments/khd12/changes",
- "automated_change_rules": "/api/projects/opc/environments/khd12/automated_change_rules",
- "parent": "/api/projects/opc",
- "assets": "/api/projects/opc/environments/khd12/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "asset"
]
}
}
}
Shows an environment.
The response includes a link to:
changes
endpoint for managing changes belonging to this environment. It acts like the changes endpoint.automated_change_rules
endpoint for managing automated change rules belonging to this environment. It acts like the automated change endpoint.bookmarks
endpoint for managing the bookmarks belonging to this environment. It acts like a bookmarks endpoint.mintmodels
endpoint for managing the MintModels belonging to this environment. It acts like a MintModels endpoint.mintmodel_history
endpoint for viewing this environment's MintModel history. It acts like a MintModel history endpoint.
.project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
{- "data": {
- "id": "7f6e0ab0-a4b1-4caa-a1f4-db35127cebe2",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "bc402cb9-d939-4621-9cac-022f7a323973",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/bc402cb9-d939-4621-9cac-022f7a323973"
}
}, - "settings": {
- "data": {
- "id": "c97b9642-4d33-4bfe-9368-0be876a38954",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/c97b9642-4d33-4bfe-9368-0be876a38954"
}
}, - "project": {
- "data": {
- "id": "ad5cd281-1b0d-4c24-bbbd-4e8bda36dcac",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "children": {
- "data": [ ]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/environments/dev",
- "bookmarks": "/api/projects/opc/environments/dev/bookmarks",
- "changes": "/api/projects/opc/environments/dev/changes",
- "automated_change_rules": "/api/projects/opc/environments/dev/automated_change_rules",
- "parent": "/api/projects/opc",
- "assets": "/api/projects/opc/environments/dev/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "asset"
]
}
}, - "included": [
- {
- "id": "ad5cd281-1b0d-4c24-bbbd-4e8bda36dcac",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "eedfacef-2811-4fae-aa76-7e029f025419",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/eedfacef-2811-4fae-aa76-7e029f025419"
}
}, - "settings": {
- "data": {
- "id": "61425259-d4ce-43f0-b4ec-53cc6bc2e47b",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/61425259-d4ce-43f0-b4ec-53cc6bc2e47b"
}
}, - "children": {
- "data": [
- {
- "id": "7f6e0ab0-a4b1-4caa-a1f4-db35127cebe2",
- "type": "environment"
}
]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc",
- "bookmarks": "/api/projects/opc/bookmarks",
- "changes": "/api/projects/opc/changes",
- "automated_change_rules": "/api/projects/opc/automated_change_rules",
- "git_remotes": "/api/projects/opc/git_remotes",
- "workflows": "/api/projects/opc/workflows",
- "workflow_runs": "/api/projects/opc/workflow_runs",
- "templates": "/api/projects/opc/templates",
- "environments": "/api/projects/opc/environments",
- "assets": "/api/projects/opc/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": true,
- "requires_template": false,
- "child_node_types": [
- "environment",
- "asset"
]
}
}
]
}
Updates an environment.
project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
required | object |
{- "data": {
- "attributes": {
- "name": "Modified",
- "description": "The updated environment",
- "archived": false
}
}
}
{- "data": {
- "id": "f08e86c0-d667-44b8-beac-f527d1fcce28",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "consequatur110",
- "description": "Et qui tempora quam.",
- "archived": true
}, - "relationships": {
- "properties": {
- "data": {
- "id": "4f88f9b4-42bd-47db-9031-5c23d2881851",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/4f88f9b4-42bd-47db-9031-5c23d2881851"
}
}, - "settings": {
- "data": {
- "id": "6df23c72-3fca-49f7-8bd7-e72f6b091f0d",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/6df23c72-3fca-49f7-8bd7-e72f6b091f0d"
}
}, - "project": {
- "data": {
- "id": "50c73ba9-6915-4b91-9002-8bd34cdaa959",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "children": {
- "data": [ ]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/environments/dev",
- "bookmarks": "/api/projects/opc/environments/dev/bookmarks",
- "changes": "/api/projects/opc/environments/dev/changes",
- "automated_change_rules": "/api/projects/opc/environments/dev/automated_change_rules",
- "parent": "/api/projects/opc",
- "assets": "/api/projects/opc/environments/dev/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "asset"
]
}
}
}
Endpoints to interact with assets.
Notes:
show
and list
response payloads include links to the asset's changes, automated change rules, bookmarks and MintModels endpoints. These endpoints act like
the changes, automated changes, bookmarks and MintModels endpoints respectively./<path/to/asset/owner>/assets
path. The example endpoints in this section reflect assets owned by a project.Lists all assets (including archived assets) that belong to the project.
Each asset in the response includes a link to:
changes
endpoint for managing changes belonging to this asset. It acts like the changes endpoint.automated_change_rules
endpoint for managing automated change rules belonging to this asset. It acts like the automated change endpoint.bookmarks
endpoint for managing the bookmarks belonging to this asset. It acts like a bookmarks endpoint.mintmodels
endpoint for managing the MintModels belonging to this asset. It acts like a MintModels endpoint.mintmodel_history
endpoint for viewing this asset's MintModel history. It acts like a MintModel history endpoint.
.project_code required | string Example: opc project code |
filter[<query/sort filter>]= | |
download | string Example: download=assets.csv Download the project assets in CSV format with the specified file name. The assets will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
{- "data": [
- {
- "id": "32e2866c-5919-4e7b-b47a-29e11ac740ff",
- "type": "asset",
- "attributes": {
- "code": "prj_soa",
- "name": "Project asset",
- "description": "Project asset description",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "c71e472d-c170-4933-8e9f-1a5d26666714",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/c71e472d-c170-4933-8e9f-1a5d26666714"
}
}, - "settings": {
- "data": {
- "id": "ccf4ea7f-08a9-4e20-a7aa-8ce3e807f7cb",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/ccf4ea7f-08a9-4e20-a7aa-8ce3e807f7cb"
}
}, - "project": {
- "data": {
- "id": "9b489ab3-08e8-43ca-a428-b289d3c2b6e0",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "8f1eb317-2779-4820-bed4-dcd8564b2305",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "bookmarks": {
- "data": [
- {
- "id": "6d5c0d47-fb99-4be2-89de-4a30dd1af295",
- "type": "bookmark"
}
]
}, - "template": {
- "data": {
- "id": "5c5337b0-17e9-400c-8548-8ee2e1225ab5",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}, - "mintmodel_history": {
- "data": [
- {
- "id": "fef4c7fd-3b2f-4a09-8903-263cd34e9da1",
- "type": "mintmodel_history"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa",
- "bookmarks": "/api/projects/opc/assets/prj_soa/bookmarks",
- "changes": "/api/projects/opc/assets/prj_soa/changes",
- "automated_change_rules": "/api/projects/opc/assets/prj_soa/automated_change_rules",
- "converged_properties": "/api/projects/opc/assets/prj_soa/converged_properties",
- "mintmodels": "/api/projects/opc/assets/prj_soa/mintmodels",
- "mintmodel_history": "/api/projects/opc/assets/prj_soa/mintmodel_history",
- "parent": "/api/projects/opc",
- "version_history": "/api/projects/opc/assets/prj_soa/version_history"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": false,
- "can_have_properties": true,
- "can_have_settings": false,
- "can_have_templates": false,
- "requires_template": true,
- "child_node_types": [ ]
}
}
]
}
Creates an asset belonging to the project.
project_code required | string Example: opc project code |
required | object |
{- "data": {
- "attributes": {
- "code": "prj_soa",
- "name": "Project asset",
- "description": "Project asset description",
- "template_name": "Oracle SOA template",
- "template_version": "2023_Q4_2"
}
}
}
{- "data": {
- "id": "e2084dd0-dde3-4a7e-a172-8b76325ef4be",
- "type": "asset",
- "attributes": {
- "code": "0utxr",
- "name": "voluptatem87",
- "description": "Aperiam facilis quas cumque.",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "e81e27da-d61c-473d-9a71-0dac7ebeda28",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/e81e27da-d61c-473d-9a71-0dac7ebeda28"
}
}, - "settings": {
- "data": {
- "id": "e8e3b411-b1e3-4324-bb64-b1b57826b550",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/e8e3b411-b1e3-4324-bb64-b1b57826b550"
}
}, - "project": {
- "data": {
- "id": "e290527d-dd08-448c-b17b-423b929ce685",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "0d9a89db-c403-4889-ae0f-177425248893",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "bookmarks": {
- "data": [ ]
}, - "template": {
- "data": {
- "id": "346ccb85-f712-4130-a7cc-adf5d3d63eaf",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}, - "mintmodel_history": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/assets/0utxr",
- "bookmarks": "/api/projects/opc/assets/0utxr/bookmarks",
- "changes": "/api/projects/opc/assets/0utxr/changes",
- "automated_change_rules": "/api/projects/opc/assets/0utxr/automated_change_rules",
- "converged_properties": "/api/projects/opc/assets/0utxr/converged_properties",
- "mintmodels": "/api/projects/opc/assets/0utxr/mintmodels",
- "mintmodel_history": "/api/projects/opc/assets/0utxr/mintmodel_history",
- "parent": "/api/projects/opc",
- "version_history": "/api/projects/opc/assets/0utxr/version_history"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": false,
- "can_have_properties": true,
- "can_have_settings": false,
- "can_have_templates": false,
- "requires_template": true,
- "child_node_types": [ ]
}
}
}
Shows an asset belonging to a project.
The response includes a link to:
changes
endpoint for managing changes belonging to this asset. It acts like the changes endpoint.automated_change_rules
endpoint for managing automated change rules belonging to this asset. It acts like the automated change endpoint.bookmarks
endpoint for managing the bookmarks belonging to this asset. It acts like a bookmarks endpoint.mintmodels
endpoint for managing the MintModels belonging to this asset. It acts like a MintModels endpoint.mintmodel_history
endpoint for viewing this asset's MintModel history. It acts like a MintModel history endpoint.
.project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
{- "data": {
- "id": "de9ce8fe-5dd3-4066-8fbe-35c7f23bae8e",
- "type": "asset",
- "attributes": {
- "code": "prj_soa",
- "name": "Project asset",
- "description": "Project asset description",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "b857e8d0-ba6e-47d5-996d-baf39a1f8c27",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/b857e8d0-ba6e-47d5-996d-baf39a1f8c27"
}
}, - "settings": {
- "data": {
- "id": "042eb82e-4bb2-4e9f-b4d2-d85ef6ac2a8d",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/042eb82e-4bb2-4e9f-b4d2-d85ef6ac2a8d"
}
}, - "project": {
- "data": {
- "id": "c05b1452-addc-41e2-9d32-49b31e33f349",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "1a348122-b278-4b30-bc59-edc01df6a0fb",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "bookmarks": {
- "data": [
- {
- "id": "17a8e389-7d56-4baa-b78f-27046d7fa360",
- "type": "bookmark"
}
]
}, - "template": {
- "data": {
- "id": "8e40cffb-d4e3-4f3f-9991-fddaa5191345",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}, - "mintmodel_history": {
- "data": [
- {
- "id": "d705a34f-1885-461c-9d2f-0b9eb061fac3",
- "type": "mintmodel_history"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa",
- "bookmarks": "/api/projects/opc/assets/prj_soa/bookmarks",
- "changes": "/api/projects/opc/assets/prj_soa/changes",
- "automated_change_rules": "/api/projects/opc/assets/prj_soa/automated_change_rules",
- "converged_properties": "/api/projects/opc/assets/prj_soa/converged_properties",
- "mintmodels": "/api/projects/opc/assets/prj_soa/mintmodels",
- "mintmodel_history": "/api/projects/opc/assets/prj_soa/mintmodel_history",
- "parent": "/api/projects/opc",
- "version_history": "/api/projects/opc/assets/prj_soa/version_history"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": false,
- "can_have_properties": true,
- "can_have_settings": false,
- "can_have_templates": false,
- "requires_template": true,
- "child_node_types": [ ]
}
}, - "included": [
- {
- "id": "c05b1452-addc-41e2-9d32-49b31e33f349",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "fe2d9c1e-9987-41b6-bba0-4e66860fc7c7",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/fe2d9c1e-9987-41b6-bba0-4e66860fc7c7"
}
}, - "settings": {
- "data": {
- "id": "a7af3592-ad39-4c14-af3d-4229be3fc02d",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/a7af3592-ad39-4c14-af3d-4229be3fc02d"
}
}, - "children": {
- "data": [
- {
- "id": "de9ce8fe-5dd3-4066-8fbe-35c7f23bae8e",
- "type": "asset"
}
]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc",
- "bookmarks": "/api/projects/opc/bookmarks",
- "changes": "/api/projects/opc/changes",
- "automated_change_rules": "/api/projects/opc/automated_change_rules",
- "git_remotes": "/api/projects/opc/git_remotes",
- "workflows": "/api/projects/opc/workflows",
- "workflow_runs": "/api/projects/opc/workflow_runs",
- "templates": "/api/projects/opc/templates",
- "environments": "/api/projects/opc/environments",
- "assets": "/api/projects/opc/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": true,
- "requires_template": false,
- "child_node_types": [
- "environment",
- "asset"
]
}
}, - {
- "id": "d705a34f-1885-461c-9d2f-0b9eb061fac3",
- "type": "mintmodel_history",
- "attributes": {
- "created_at": "2024-06-17T06:31:30.835028Z",
- "updated_at": "2024-06-17T06:31:30.835028Z"
}, - "relationships": {
- "parents": {
- "data": [
- {
- "id": "c05b1452-addc-41e2-9d32-49b31e33f349",
- "type": "project"
}, - {
- "id": "de9ce8fe-5dd3-4066-8fbe-35c7f23bae8e",
- "type": "asset"
}
]
}, - "mintmodel": {
- "data": {
- "id": "e04bc759-0e62-491c-8bd1-144cd4ade791",
- "type": "mintmodel"
}, - "links": {
- "related": "/api/projects/opc/assets/prj_soa/mintmodels/e04bc759-0e62-491c-8bd1-144cd4ade791"
}
}, - "opschain_changes": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/mintmodel_history/d705a34f-1885-461c-9d2f-0b9eb061fac3"
}
}, - {
- "id": "17a8e389-7d56-4baa-b78f-27046d7fa360",
- "type": "bookmark",
- "attributes": {
- "description": "SOA administration console",
- "created_by": "dallas.halvorson",
- "created_at": "2024-06-17T06:31:30.829034Z",
- "updated_at": "2024-06-17T06:31:30.829034Z"
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/bookmarks/17a8e389-7d56-4baa-b78f-27046d7fa360",
- "parent": "/api/projects/opc/assets/prj_soa"
}
}, - {
- "id": "8e40cffb-d4e3-4f3f-9991-fddaa5191345",
- "type": "template",
- "attributes": {
- "name": "Oracle SOA template",
- "archived": false,
- "disabled": false,
- "created_at": "2024-06-17T06:31:30.772731Z",
- "updated_at": "2024-06-17T06:31:30.772731Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}",
- "code": "soa",
- "description": "Oracle SOA Suite 12c (12.2.1.4.0)"
}, - "relationships": {
- "template_versions": {
- "data": [
- {
- "id": "1a348122-b278-4b30-bc59-edc01df6a0fb",
- "type": "template_version"
}
], - "links": {
- "related": "/api/projects/opc/templates/soa/versions"
}
}
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/templates/soa",
- "template_versions": "/api/projects/opc/templates/soa/versions"
}, - "meta": null
}, - {
- "id": "1a348122-b278-4b30-bc59-edc01df6a0fb",
- "type": "template_version",
- "attributes": {
- "version": "2023_Q4_2",
- "description": "Added additional configuration options",
- "state": "ready",
- "created_by": "mireya",
- "archived": false,
- "has_mintmodel": true,
- "created_at": "2024-06-17T06:31:30.785563Z",
- "updated_at": "2024-06-17T06:31:30.785563Z",
- "git_rev": "multi-byte",
- "commit_sha": "9046859029ca33d412a5d755c1514a35707053c5",
- "actions": [
- {
- "name": "quantify",
- "description": "Atque repellat ea nisi."
}, - {
- "name": "navigate",
- "description": "Est non repudiandae quam."
}
]
}, - "links": {
- "self": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "template": "/api/projects/opc/templates/soa"
}
}
]
}
Updates an asset belonging to a project.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
required | object |
{- "data": {
- "attributes": {
- "name": "Modified",
- "description": "The updated asset",
- "archived": false
}
}
}
{- "data": {
- "id": "fbae56b1-b98a-4a0d-b5e6-2c7eae5b7eda",
- "type": "asset",
- "attributes": {
- "code": "prj_soa",
- "name": "ex93",
- "description": "Tempora commodi eligendi dolorum.",
- "archived": true
}, - "relationships": {
- "properties": {
- "data": {
- "id": "0f573f80-aa6f-4cee-99be-316e0b5590df",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/0f573f80-aa6f-4cee-99be-316e0b5590df"
}
}, - "settings": {
- "data": {
- "id": "c36548cc-e4a4-4116-8395-ad681096d084",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/c36548cc-e4a4-4116-8395-ad681096d084"
}
}, - "project": {
- "data": {
- "id": "12df92da-d2e6-4d46-90eb-ef273de54799",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "ed2c674b-1ce2-43a2-9922-2c6aa241da6e",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "bookmarks": {
- "data": [
- {
- "id": "d8dcbf55-26b7-4e4e-800e-9429fdf66ffe",
- "type": "bookmark"
}
]
}, - "template": {
- "data": {
- "id": "350866f1-e393-43e4-bcd2-c5bed2b7f90f",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}, - "mintmodel_history": {
- "data": [
- {
- "id": "c3d9c14f-56ad-4afc-99e6-c8d7afe2bda7",
- "type": "mintmodel_history"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa",
- "bookmarks": "/api/projects/opc/assets/prj_soa/bookmarks",
- "changes": "/api/projects/opc/assets/prj_soa/changes",
- "automated_change_rules": "/api/projects/opc/assets/prj_soa/automated_change_rules",
- "converged_properties": "/api/projects/opc/assets/prj_soa/converged_properties",
- "mintmodels": "/api/projects/opc/assets/prj_soa/mintmodels",
- "mintmodel_history": "/api/projects/opc/assets/prj_soa/mintmodel_history",
- "parent": "/api/projects/opc",
- "version_history": "/api/projects/opc/assets/prj_soa/version_history"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": false,
- "can_have_properties": true,
- "can_have_settings": false,
- "can_have_templates": false,
- "requires_template": true,
- "child_node_types": [ ]
}
}
}
Show the converged properties as they will appear to actions run on this asset. i.e. the endpoint will
The API response will also include all the individual repository and database properties that were included in the result.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
filter[<query/sort filter>]= |
{- "data": {
- "id": "prj_soa",
- "type": "converged_properties",
- "attributes": {
- "data": {
- "repo": "project_properties",
- "common": "property",
- "project": "property",
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}
}, - "relationships": {
- "repository_properties": {
- "data": [
- {
- "id": "properties.yaml",
- "type": "repository_properties"
}, - {
- "id": "projects/opc.yaml",
- "type": "repository_properties"
}
]
}, - "properties": {
- "data": [
- {
- "id": "1fa654ea-101a-4d39-98d5-abb47ba587e5",
- "type": "properties"
}, - {
- "id": "3fbe494e-d03a-4e30-a640-e90476ff69d5",
- "type": "properties"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/converged_properties"
}
}, - "included": [
- {
- "id": "1fa654ea-101a-4d39-98d5-abb47ba587e5",
- "type": "properties",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1,
- "created_at": "2024-06-17T06:31:32.197916Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/properties/1fa654ea-101a-4d39-98d5-abb47ba587e5",
- "current_version": "/api/properties/1fa654ea-101a-4d39-98d5-abb47ba587e5/versions/1",
- "versions": "/api/properties/1fa654ea-101a-4d39-98d5-abb47ba587e5/versions"
}
}, - {
- "id": "3fbe494e-d03a-4e30-a640-e90476ff69d5",
- "type": "properties",
- "attributes": {
- "data": { },
- "version": 1,
- "created_at": "2024-06-17T06:31:32.285867Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc/assets/prj_soa"
}
}
}, - "links": {
- "self": "/api/properties/3fbe494e-d03a-4e30-a640-e90476ff69d5",
- "current_version": "/api/properties/3fbe494e-d03a-4e30-a640-e90476ff69d5/versions/1",
- "versions": "/api/properties/3fbe494e-d03a-4e30-a640-e90476ff69d5/versions"
}
}, - {
- "id": "properties.yaml",
- "type": "repository_properties",
- "attributes": {
- "content": {
- "repo": "base_properties",
- "common": "property"
}
}, - "links": {
- "repository_path": ".opschain/properties.yaml"
}
}, - {
- "id": "projects/opc.yaml",
- "type": "repository_properties",
- "attributes": {
- "content": {
- "repo": "project_properties",
- "project": "property"
}
}, - "links": {
- "repository_path": ".opschain/projects/opc.yaml"
}
}
]
}
Lists the template versions that have been assigned to the asset.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
filter[<query/sort filter>]= |
{- "data": [
- {
- "id": "b845c40a-205c-463b-b363-9a73a49450ec",
- "type": "template_version_history",
- "attributes": {
- "active_from": "2024-06-17T06:31:42.745971Z",
- "active_to": null
}, - "relationships": {
- "owner": {
- "data": {
- "id": "2e29fcae-8e88-4a65-8d70-254668b67504",
- "type": "asset"
}
}, - "template_version": {
- "data": {
- "id": "73f63239-cb47-41be-886f-ea65fe12120b",
- "type": "template_version"
}
}
}, - "links": {
- "template_version": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "self": "/api/projects/opc/assets/prj_soa/version_history/b845c40a-205c-463b-b363-9a73a49450ec",
- "asset": "/api/projects/opc/assets/prj_soa"
}
}
]
}
Shows a specific project asset's template version history record.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
id required | string Example: 42b107ff-eacb-4b7e-bfcb-875a655b36e5 version history id |
{- "data": {
- "id": "b8e75065-5308-4d78-bcc6-ff05019b6f9b",
- "type": "template_version_history",
- "attributes": {
- "active_from": "2024-06-17T06:31:42.938824Z",
- "active_to": null
}, - "relationships": {
- "owner": {
- "data": {
- "id": "f5dc52f4-2934-4199-aefb-969c3d41309a",
- "type": "asset"
}
}, - "template_version": {
- "data": {
- "id": "634ef1c0-eff1-415e-a699-2d7f18b5ddc2",
- "type": "template_version"
}
}
}, - "links": {
- "template_version": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "self": "/api/projects/opc/assets/prj_soa/version_history/b8e75065-5308-4d78-bcc6-ff05019b6f9b",
- "asset": "/api/projects/opc/assets/prj_soa"
}
}, - "included": [
- {
- "id": "f5dc52f4-2934-4199-aefb-969c3d41309a",
- "type": "asset",
- "attributes": {
- "code": "prj_soa",
- "name": "Project asset",
- "description": "Project asset description",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "7e750298-48d3-400e-b9ea-e4e8e9558628",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/7e750298-48d3-400e-b9ea-e4e8e9558628"
}
}, - "settings": {
- "data": {
- "id": "b55bfc61-0e75-4d10-aac1-70f5b8e29b41",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/b55bfc61-0e75-4d10-aac1-70f5b8e29b41"
}
}, - "project": {
- "data": {
- "id": "7087f0f8-7cdb-4e15-a19e-08f8cd91bf6b",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "634ef1c0-eff1-415e-a699-2d7f18b5ddc2",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "bookmarks": {
- "data": [
- {
- "id": "dc678927-3c43-4485-a03a-fd224fc64615",
- "type": "bookmark"
}
]
}, - "template": {
- "data": {
- "id": "b9fcaaa5-7ea6-4254-bb64-08f09f66a969",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}, - "mintmodel_history": {
- "data": [
- {
- "id": "b0cca7ca-41ba-45ff-bcc4-6dacc0b00b0f",
- "type": "mintmodel_history"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa",
- "bookmarks": "/api/projects/opc/assets/prj_soa/bookmarks",
- "changes": "/api/projects/opc/assets/prj_soa/changes",
- "automated_change_rules": "/api/projects/opc/assets/prj_soa/automated_change_rules",
- "converged_properties": "/api/projects/opc/assets/prj_soa/converged_properties",
- "mintmodels": "/api/projects/opc/assets/prj_soa/mintmodels",
- "mintmodel_history": "/api/projects/opc/assets/prj_soa/mintmodel_history",
- "parent": "/api/projects/opc",
- "version_history": "/api/projects/opc/assets/prj_soa/version_history"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": false,
- "can_have_properties": true,
- "can_have_settings": false,
- "can_have_templates": false,
- "requires_template": true,
- "child_node_types": [ ]
}
}, - {
- "id": "634ef1c0-eff1-415e-a699-2d7f18b5ddc2",
- "type": "template_version",
- "attributes": {
- "version": "2023_Q4_2",
- "description": "Added additional configuration options",
- "state": "ready",
- "created_by": "chelsea",
- "archived": false,
- "has_mintmodel": true,
- "created_at": "2024-06-17T06:31:42.898206Z",
- "updated_at": "2024-06-17T06:31:42.898206Z",
- "git_rev": "multi-byte",
- "commit_sha": "35db0d3ee9d5e98a3951e6c10139a8e27b3eb7dd",
- "actions": [
- {
- "name": "calculate",
- "description": "Eius occaecati autem et."
}, - {
- "name": "bypass",
- "description": "Autem vel ab non."
}
]
}, - "links": {
- "self": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "template": "/api/projects/opc/templates/soa"
}
}
]
}
Templates provide the available actions and a base set of repository properties that will be used to configure the asset.
Lists all versions of a specific template.
project_code required | string Example: opc project code |
template_code required | string Example: soa template code |
{- "data": [
- {
- "id": "0814de56-cb4b-4f2a-9cce-24d550f52760",
- "type": "template_version",
- "attributes": {
- "version": "2023_Q4_2",
- "description": "Added additional configuration options",
- "state": "ready",
- "created_by": "rochell",
- "archived": false,
- "has_mintmodel": true,
- "created_at": "2024-06-17T06:31:43.094490Z",
- "updated_at": "2024-06-17T06:31:43.094490Z",
- "git_rev": "solid-state",
- "commit_sha": "30da995d6b6bc19924706dce19c1dbb59ae7cb2b",
- "actions": [
- {
- "name": "generate",
- "description": "Tempora commodi quis accusantium."
}, - {
- "name": "override",
- "description": "Ut distinctio voluptate quia."
}
]
}, - "links": {
- "self": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "template": "/api/projects/opc/templates/soa"
}
}
]
}
Create or update a template version.
project_code required | string Example: opc project code |
template_code required | string Example: soa template code |
version required | string Example: 2023_Q4_2 template version |
required | object |
{- "data": {
- "attributes": {
- "description": "Added additional configuration options",
- "git_rev": "mobile",
- "archived": false
}
}
}
{- "data": {
- "id": "00b38b4a-fbde-408d-9685-27f08f33cba6",
- "type": "template_version",
- "attributes": {
- "version": "2023_Q4_2",
- "description": "Repellat quia sunt similique et dolorem consequatur nulla unde ea",
- "state": "initializing",
- "created_by": "booker",
- "archived": false,
- "has_mintmodel": false,
- "created_at": "2024-06-17T06:31:43.411265Z",
- "updated_at": "2024-06-17T06:31:43.411265Z",
- "git_rev": "haptic",
- "commit_sha": null
}, - "links": {
- "self": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "template": "/api/projects/opc/templates/soa"
}
}
}
Shows a specific template version.
project_code required | string Example: opc project code |
template_code required | string Example: soa template code |
version required | string Example: 2023_Q4_2 template version |
{- "data": {
- "id": "efd52c58-f5e8-4f7a-910f-8e3ed5816768",
- "type": "template_version",
- "attributes": {
- "version": "2023_Q4_2",
- "description": "Added additional configuration options",
- "state": "ready",
- "created_by": "taren_gusikowski",
- "archived": false,
- "has_mintmodel": true,
- "created_at": "2024-06-17T06:31:43.973950Z",
- "updated_at": "2024-06-17T06:31:43.973950Z",
- "git_rev": "redundant",
- "commit_sha": "5a4ad06e30ec2bae771ea67608ae5be7618d2066",
- "actions": [
- {
- "name": "reboot",
- "description": "Tempore voluptatem aliquid aut."
}, - {
- "name": "transmit",
- "description": "Et molestias assumenda culpa."
}
]
}, - "links": {
- "self": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "template": "/api/projects/opc/templates/soa"
}
}
}
Create a template.
project_code required | string Example: opc project code |
required | object |
{- "data": {
- "attributes": {
- "code": "soa",
- "name": "Oracle SOA template",
- "description": "Oracle SOA Suite 12c (12.2.1.4.0)",
- "user": "limepoint",
- "password": "password",
- "ssh_key_data": "-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----\n"
}
}
}
{- "data": {
- "id": "3961d244-cb95-4d40-bf05-865d26e03381",
- "type": "template",
- "attributes": {
- "name": "stephen",
- "archived": false,
- "disabled": false,
- "created_at": "2024-06-17T06:31:44.260045Z",
- "updated_at": "2024-06-17T06:31:44.260045Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}",
- "code": "jyno0",
- "description": "Sed est impedit mollitia."
}, - "relationships": {
- "template_versions": {
- "data": [ ],
- "links": {
- "related": "/api/projects/opc/templates/jyno0/versions"
}
}
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/templates/jyno0",
- "template_versions": "/api/projects/opc/templates/jyno0/versions"
}, - "meta": null
}
}
Lists all templates for a project.
project_code required | string Example: opc project code |
{- "data": [
- {
- "id": "38d24a1c-0deb-456e-9e52-6a37ff74e135",
- "type": "template",
- "attributes": {
- "name": "Oracle SOA template",
- "archived": false,
- "disabled": false,
- "created_at": "2024-06-17T06:31:44.768272Z",
- "updated_at": "2024-06-17T06:31:44.768272Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}",
- "code": "soa",
- "description": "Oracle SOA Suite 12c (12.2.1.4.0)"
}, - "relationships": {
- "template_versions": {
- "data": [ ],
- "links": {
- "related": "/api/projects/opc/templates/soa/versions"
}
}
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/templates/soa",
- "template_versions": "/api/projects/opc/templates/soa/versions"
}, - "meta": null
}
]
}
Shows a project template.
project_code required | string Example: opc project code |
template_code required | string Example: soa template code |
{- "data": {
- "id": "de09a56c-3912-42af-b737-29e9d3ab1363",
- "type": "template",
- "attributes": {
- "name": "Oracle SOA template",
- "archived": false,
- "disabled": false,
- "created_at": "2024-06-17T06:31:45.401138Z",
- "updated_at": "2024-06-17T06:31:45.401138Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}",
- "code": "soa",
- "description": "Oracle SOA Suite 12c (12.2.1.4.0)"
}, - "relationships": {
- "template_versions": {
- "data": [ ],
- "links": {
- "related": "/api/projects/opc/templates/soa/versions"
}
}
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/templates/soa",
- "template_versions": "/api/projects/opc/templates/soa/versions"
}, - "meta": null
}
}
Archives/unarchives a template.
project_code required | string Example: opc project code |
code_to_archive required | string Example: soa template code |
required | object |
{- "data": {
- "attributes": {
- "archived": true
}
}
}
{- "data": {
- "id": "f841ff1e-7041-4e52-92a4-b054ebc36e96",
- "type": "template",
- "attributes": {
- "name": "Oracle SOA template",
- "archived": true,
- "disabled": false,
- "created_at": "2024-06-17T06:31:45.611984Z",
- "updated_at": "2024-06-17T06:31:45.646162Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}",
- "code": "soa",
- "description": "Oracle SOA Suite 12c (12.2.1.4.0)"
}, - "relationships": {
- "template_versions": {
- "data": [ ],
- "links": {
- "related": "/api/projects/opc/templates/soa/versions"
}
}
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/templates/soa",
- "template_versions": "/api/projects/opc/templates/soa/versions"
}, - "meta": null
}
}
Update the credentials of a template.
project_code required | string Example: opc project code |
code_to_update required | string Example: soa template code |
required | object |
{- "data": {
- "attributes": {
- "user": "limepoint",
- "password": "password",
- "ssh_key_data": "-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----\n"
}
}
}
{- "data": {
- "id": "6105ec17-8367-4fa5-823f-80736316bda0",
- "type": "template",
- "attributes": {
- "name": "Oracle SOA template",
- "archived": false,
- "disabled": false,
- "created_at": "2024-06-17T06:31:45.975297Z",
- "updated_at": "2024-06-17T06:31:46.003224Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}",
- "code": "soa",
- "description": "Oracle SOA Suite 12c (12.2.1.4.0)"
}, - "relationships": {
- "template_versions": {
- "data": [ ],
- "links": {
- "related": "/api/projects/opc/templates/soa/versions"
}
}
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/templates/soa",
- "template_versions": "/api/projects/opc/templates/soa/versions"
}, - "meta": null
}
}
Endpoints to interact with git remotes.
Create a project Git remote.
project_code required | string Example: opc project code |
required | object |
{- "data": {
- "attributes": {
- "name": "github",
- "user": "limepoint",
- "password": "password",
- "ssh_key_data": "-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----\n"
}
}
}
{- "data": {
- "id": "df26601f-1ae8-4569-add6-26415468d577",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": false,
- "disabled": false,
- "created_at": "2024-06-17T06:31:26.072029Z",
- "updated_at": "2024-06-17T06:31:26.072029Z",
- "user": null,
- "password": null,
- "ssh_key_data": null
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/df26601f-1ae8-4569-add6-26415468d577"
}, - "meta": null
}
}
Lists all Git remotes for a project.
project_code required | string Example: opc project code |
{- "data": [
- {
- "id": "dc65e8cb-2dc3-4055-b34b-8e457b608397",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": false,
- "disabled": false,
- "created_at": "2024-06-17T06:31:26.486442Z",
- "updated_at": "2024-06-17T06:31:26.486442Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}"
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/dc65e8cb-2dc3-4055-b34b-8e457b608397"
}, - "meta": null
}
]
}
Shows a project Git remote.
Note: Git remote credentials are obfuscated for security reasons.
project_code required | string Example: opc project code |
remote_id required | string Example: 0e282d9f-50be-4b5e-b1e1-58c5bb4d3705 remote id |
{- "data": {
- "id": "93c41ca4-120a-4f82-b090-1058cc682abb",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": false,
- "disabled": false,
- "created_at": "2024-06-17T06:31:26.706934Z",
- "updated_at": "2024-06-17T06:31:26.706934Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}"
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/93c41ca4-120a-4f82-b090-1058cc682abb"
}, - "meta": null
}
}
Archives/unarchives a project Git remote.
project_code required | string Example: opc project code |
id_to_archive required | string Example: 0e282d9f-50be-4b5e-b1e1-58c5bb4d3705 remote id |
required | object |
{- "data": {
- "attributes": {
- "archived": true
}
}
}
{- "data": {
- "id": "ded7f012-8d11-4356-a105-bdb78041ff0a",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": true,
- "disabled": false,
- "created_at": "2024-06-17T06:31:26.903324Z",
- "updated_at": "2024-06-17T06:31:26.931992Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}"
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/ded7f012-8d11-4356-a105-bdb78041ff0a"
}, - "meta": null
}
}
Update the credentials of a project Git remote.
project_code required | string Example: opc project code |
id_to_update required | string Example: 0e282d9f-50be-4b5e-b1e1-58c5bb4d3705 remote id |
required | object |
{- "data": {
- "attributes": {
- "user": "limepoint",
- "password": "password",
- "ssh_key_data": "-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----\n"
}
}
}
{- "data": {
- "id": "7e312b09-b8a4-4b0d-a84e-7556795ab062",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": false,
- "disabled": false,
- "created_at": "2024-06-17T06:31:27.218056Z",
- "updated_at": "2024-06-17T06:31:27.242311Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}"
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/7e312b09-b8a4-4b0d-a84e-7556795ab062"
}, - "meta": null
}
}
Deletes a project Git remote if it has no changes, otherwise it removes the credentials.
project_code required | string Example: opc project code |
id_to_delete required | string Example: 0e282d9f-50be-4b5e-b1e1-58c5bb4d3705 remote id |
{- "data": {
- "id": "5643b502-7cff-4465-a93b-d96afaf6ac7e",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": true,
- "disabled": false,
- "created_at": "2024-06-17T06:31:27.613051Z",
- "updated_at": "2024-06-17T06:31:27.760419Z",
- "user": null,
- "password": null,
- "ssh_key_data": null
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/5643b502-7cff-4465-a93b-d96afaf6ac7e"
}, - "meta": {
- "credentials_removed": true,
- "messages": [
- "This Git remote cannot be deleted as it is used by a change. Its credentials have been removed."
]
}
}
}
Endpoints to interact with bookmarks.
Notes:
/<path/to/bookmark/owner>/bookmarks
path. The example endpoints in this section reflect bookmarks owned
by a project asset.Create an asset bookmark.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
required | object |
{- "data": {
- "attributes": {
- "description": "SOA administration console",
- "created_by": "dallas"
}
}
}
{- "data": {
- "id": "77266dee-f712-4155-98f5-16a7a89db649",
- "type": "bookmark",
- "attributes": {
- "description": "Alias doloribus iure aut.",
- "created_by": "antwan_smith",
- "created_at": "2024-06-17T06:31:21.434825Z",
- "updated_at": "2024-06-17T06:31:21.434825Z"
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/bookmarks/77266dee-f712-4155-98f5-16a7a89db649",
- "parent": "/api/projects/opc/assets/prj_soa"
}
}
}
Lists all bookmarks for an asset.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
{- "data": [
- {
- "id": "7c24099d-ada5-42b1-9e6c-9912750f97b5",
- "type": "bookmark",
- "attributes": {
- "description": "SOA administration console",
- "created_by": "mike",
- "created_at": "2024-06-17T06:31:22.375151Z",
- "updated_at": "2024-06-17T06:31:22.375151Z"
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/bookmarks/7c24099d-ada5-42b1-9e6c-9912750f97b5",
- "parent": "/api/projects/opc/assets/prj_soa"
}
}
]
}
Shows an asset bookmark.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
bookmark_id required | string Example: 3e3cc9d7-e025-4836-85cf-5c9e7c5deba1 bookmark id |
{- "data": {
- "id": "4ed03c52-875e-44d4-98b6-8646167b161a",
- "type": "bookmark",
- "attributes": {
- "description": "SOA administration console",
- "created_by": "alton_herzog",
- "created_at": "2024-06-17T06:31:22.541971Z",
- "updated_at": "2024-06-17T06:31:22.541971Z"
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/bookmarks/4ed03c52-875e-44d4-98b6-8646167b161a",
- "parent": "/api/projects/opc/assets/prj_soa"
}
}
}
Update an asset bookmark.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
bookmark_id required | string Example: 3e3cc9d7-e025-4836-85cf-5c9e7c5deba1 bookmark id |
required | object |
{- "data": {
- "attributes": {
- "description": "Updated server console path"
}
}
}
{- "data": {
- "id": "efcaf014-2039-4538-b69b-55be543893b6",
- "type": "bookmark",
- "attributes": {
- "description": "Updated server console path",
- "created_by": "louie.miller",
- "created_at": "2024-06-17T06:31:22.877223Z",
- "updated_at": "2024-06-17T06:31:22.905377Z"
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/bookmarks/efcaf014-2039-4538-b69b-55be543893b6",
- "parent": "/api/projects/opc/assets/prj_soa"
}
}
}
Delete an asset bookmark.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
bookmark_id required | string Example: 3e3cc9d7-e025-4836-85cf-5c9e7c5deba1 bookmark id |
{ }
Endpoints to query and generate MintModels for assets.
Notes:
parent_mintmodel_history
link in the API response to access the
asset's MintModel history.Lists the asset's MintModel history.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
{- "data": [
- {
- "id": "a0d44c86-5a69-40c4-8fc7-afc36ebffd82",
- "type": "mintmodel_history",
- "attributes": {
- "created_at": "2024-06-17T06:31:29.162681Z",
- "updated_at": "2024-06-17T06:31:29.162681Z"
}, - "relationships": {
- "parents": {
- "data": [
- {
- "id": "9c7ee8a8-47de-41ba-9007-8c22ed13308d",
- "type": "project"
}, - {
- "id": "d1bfebdc-cd4c-4483-9cc7-550abdbd05f4",
- "type": "asset"
}
]
}, - "mintmodel": {
- "data": {
- "id": "8b019f40-b738-4135-b797-87e55940d4bf",
- "type": "mintmodel"
}, - "links": {
- "related": "/api/projects/opc/assets/prj_soa/mintmodels/8b019f40-b738-4135-b797-87e55940d4bf"
}
}, - "opschain_changes": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/mintmodel_history/a0d44c86-5a69-40c4-8fc7-afc36ebffd82"
}
}
]
}
Shows an asset's MintModel history record.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
id required | string Example: 50a3726b-4d3f-412e-b753-c6e6d8c89ab8 MintModel history id |
{- "data": {
- "id": "97b3e28d-a2e4-470c-88d1-a88f5751feb1",
- "type": "mintmodel_history",
- "attributes": {
- "created_at": "2024-06-17T06:31:29.327588Z",
- "updated_at": "2024-06-17T06:31:29.327588Z"
}, - "relationships": {
- "parents": {
- "data": [
- {
- "id": "5d0e2f4e-7811-427b-be3a-4d2de6fca942",
- "type": "project"
}, - {
- "id": "c9e52c46-b368-47eb-9984-c36240cb02a9",
- "type": "asset"
}
]
}, - "mintmodel": {
- "data": {
- "id": "54321226-052d-49ac-b072-331ce3d31772",
- "type": "mintmodel"
}, - "links": {
- "related": "/api/projects/opc/assets/prj_soa/mintmodels/54321226-052d-49ac-b072-331ce3d31772"
}
}, - "opschain_changes": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/mintmodel_history/97b3e28d-a2e4-470c-88d1-a88f5751feb1"
}
}, - "included": [
- {
- "id": "54321226-052d-49ac-b072-331ce3d31772",
- "type": "mintmodel",
- "attributes": {
- "data": {
- "complex": {
- "json": {
- "mintmodel": "data"
}
}
}, - "sha256": "77526a9ef926aee8c98f90ec845f5bd12f58cd7afb29fb2db5ef8f95deec44f8",
- "created_at": "2024-06-17T06:31:29.325543Z",
- "updated_at": "2024-06-17T06:31:29.325543Z"
}, - "relationships": {
- "mintmodel_history": {
- "data": [
- {
- "id": "97b3e28d-a2e4-470c-88d1-a88f5751feb1",
- "type": "mintmodel_history"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/mintmodels/54321226-052d-49ac-b072-331ce3d31772",
- "parent_mintmodel_history": "/api/projects/opc/assets/prj_soa/mintmodel_history"
}
}
]
}
List all MintModels for an asset.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
{- "data": [
- {
- "id": "7c2355d5-cf14-43cf-9b3f-c0c74ff44650",
- "type": "mintmodel",
- "attributes": {
- "data": {
- "complex": {
- "json": {
- "mintmodel": "data"
}
}
}, - "sha256": "77526a9ef926aee8c98f90ec845f5bd12f58cd7afb29fb2db5ef8f95deec44f8",
- "created_at": "2024-06-17T06:31:29.404242Z",
- "updated_at": "2024-06-17T06:31:29.404242Z"
}, - "relationships": {
- "mintmodel_history": {
- "data": [
- {
- "id": "dc016013-5c57-4547-a928-a83743eeebaa",
- "type": "mintmodel_history"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/mintmodels/7c2355d5-cf14-43cf-9b3f-c0c74ff44650",
- "parent_mintmodel_history": "/api/projects/opc/assets/prj_soa/mintmodel_history"
}
}
]
}
Shows an asset MintModel.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
mintmodel_id required | string Example: 0ec367c6-fd95-43bb-850a-12f44fc750d4 MintModel id |
{- "data": {
- "id": "1059d462-1e73-4d6f-9b62-8b04dcbc1086",
- "type": "mintmodel",
- "attributes": {
- "data": {
- "complex": {
- "json": {
- "mintmodel": "data"
}
}
}, - "sha256": "77526a9ef926aee8c98f90ec845f5bd12f58cd7afb29fb2db5ef8f95deec44f8",
- "created_at": "2024-06-17T06:31:29.578579Z",
- "updated_at": "2024-06-17T06:31:29.578579Z"
}, - "relationships": {
- "mintmodel_history": {
- "data": [
- {
- "id": "62f08497-1074-4db2-b413-554beb857c98",
- "type": "mintmodel_history"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/mintmodels/1059d462-1e73-4d6f-9b62-8b04dcbc1086",
- "parent_mintmodel_history": "/api/projects/opc/assets/prj_soa/mintmodel_history"
}
}
}
Generate the MintModel for this asset, using the latest properties and template version.
Note: The endpoint does not store the MintModel, rather it provides a point in time reference for the MintModel content that will be used by a change if one is executed for the asset.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
{- "data": {
- "id": "generated",
- "type": "mintmodel",
- "attributes": {
- "data": {
- "generated": {
- "json": {
- "mintmodel": "data"
}
}
}, - "sha256": "8dd86a2085614caf2493058addd1651b6cb552959412d0f87741c5b6e30d666b",
- "created_at": "2024-06-17T06:31:30.072480Z",
- "updated_at": "2024-06-17T06:31:30.072480Z"
}, - "relationships": {
- "mintmodel_history": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/mintmodels/generate",
- "parent_mintmodel_history": "/api/projects/opc/assets/prj_soa/mintmodel_history"
}
}
}
Lists all workflows for a project.
project_code required | string Example: opc project code |
{- "data": [
- {
- "id": "d026c038-4521-4586-8133-cea7ea8c6486",
- "type": "workflow",
- "attributes": {
- "code": "uc1zj",
- "name": "assets workflow",
- "description": "workflow for assets",
- "state": "ready",
- "created_by": "osvaldo",
- "version_description": "Updated the assets workflow to include a new step",
- "created_at": "2024-06-17T06:32:12.389611Z",
- "steps": [
- {
- "type": "change",
- "target": "/projects/opc/assets/prj_soa",
- "action": "run"
}
], - "commit_sha": "9b84b8cc1400bc583e8239d22b071164e15e57ac"
}, - "links": {
- "self": "/api/projects/opc/workflows/uc1zj?sha=9b84b8cc1400bc583e8239d22b071164e15e57ac",
- "latest_version": "/api/projects/opc/workflows/uc1zj",
- "project": "/api/projects/opc",
- "runs": "/api/projects/opc/workflows/uc1zj/runs"
}
}
]
}
Create a workflow and push to the workflows Git remote
project_code required | string Example: opc project code |
required | object |
{- "data": {
- "attributes": {
- "name": "assets workflow",
- "code": "fn5ae",
- "description": "workflow for assets",
- "version_description": "Dolor et totam eligendi.",
- "steps": [
- {
- "type": "change",
- "target": "/projects/opc/assets/prj_soa",
- "action": "run"
}
]
}
}
}
{- "data": {
- "id": "4217bdd9-ebcd-41d1-b450-efdec167ad4d",
- "type": "workflow",
- "attributes": {
- "code": "co64o",
- "name": "assets workflow",
- "description": "workflow for assets",
- "state": "ready",
- "created_by": "opschain",
- "version_description": "commit message",
- "created_at": "2024-06-17T06:32:13.314715Z",
- "steps": [
- {
- "target": "/projects/opc/assets/prj_soa",
- "type": "change",
- "action": "run"
}
], - "commit_sha": "9d00ed25a895fdae93b3f2a48acb854dbe838afa"
}, - "links": {
- "self": "/api/projects/opc/workflows/co64o?sha=9d00ed25a895fdae93b3f2a48acb854dbe838afa",
- "latest_version": "/api/projects/opc/workflows/co64o",
- "project": "/api/projects/opc",
- "runs": "/api/projects/opc/workflows/co64o/runs"
}
}
}
Shows a workflow.
project_code required | string Example: opc project code |
workflow_code required | string Example: 535d1f1d-7d7c-42bd-b016-0b0d87f4c1b5 workflow code |
{- "data": {
- "id": "0fdcefdc-1090-43ef-b7e3-c42aa642ff42",
- "type": "workflow",
- "attributes": {
- "code": "n0dah",
- "name": "assets workflow",
- "description": "workflow for assets",
- "state": "ready",
- "created_by": "colette",
- "version_description": "Updated the assets workflow to include a new step",
- "created_at": "2024-06-17T06:32:15.114259Z",
- "steps": [
- {
- "type": "change",
- "target": "/projects/opc/assets/prj_soa",
- "action": "run"
}
], - "commit_sha": "e2bbd60956d54e8ae24ab260e2b8b50015b9d2c9"
}, - "links": {
- "self": "/api/projects/opc/workflows/n0dah?sha=e2bbd60956d54e8ae24ab260e2b8b50015b9d2c9",
- "latest_version": "/api/projects/opc/workflows/n0dah",
- "project": "/api/projects/opc",
- "runs": "/api/projects/opc/workflows/n0dah/runs"
}
}
}
Endpoints to interact with properties.
Shows the current properties JSON and its version.
properties_id required | string Example: 5335d4bf-c9fb-4532-8813-c102a1bb2df9 properties id |
{- "data": {
- "id": "21072263-fb06-4f75-af8a-c3fe186cc608",
- "type": "properties",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1,
- "created_at": "2024-06-17T06:31:35.536119Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/properties/21072263-fb06-4f75-af8a-c3fe186cc608",
- "current_version": "/api/properties/21072263-fb06-4f75-af8a-c3fe186cc608/versions/1",
- "versions": "/api/properties/21072263-fb06-4f75-af8a-c3fe186cc608/versions"
}
}
}
Updates a properties JSON if the included version matches the current properties version.
id_to_update required | string Example: 5335d4bf-c9fb-4532-8813-c102a1bb2df9 properties id |
required | object |
{- "data": {
- "attributes": {
- "data": {
- "any_key": "with updated value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1
}
}
}
{- "data": {
- "id": "e0e14003-12b7-4831-8ae2-432af8b061cf",
- "type": "properties",
- "attributes": {
- "data": {
- "any_key": "with updated value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 2,
- "created_at": "2024-06-17T06:31:35.751258Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/properties/e0e14003-12b7-4831-8ae2-432af8b061cf",
- "current_version": "/api/properties/e0e14003-12b7-4831-8ae2-432af8b061cf/versions/2",
- "versions": "/api/properties/e0e14003-12b7-4831-8ae2-432af8b061cf/versions"
}
}
}
Updates a properties JSON, without any version checking (always updates).
id_to_set required | string Example: 5335d4bf-c9fb-4532-8813-c102a1bb2df9 properties id |
required | object |
{- "data": {
- "attributes": {
- "data": {
- "any_key": "with updated value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}
}
}
}
{- "data": {
- "id": "26cdfedb-1769-430a-927d-290de45d3a08",
- "type": "properties",
- "attributes": {
- "data": {
- "any_key": "with updated value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 2,
- "created_at": "2024-06-17T06:31:36.256485Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/properties/26cdfedb-1769-430a-927d-290de45d3a08",
- "current_version": "/api/properties/26cdfedb-1769-430a-927d-290de45d3a08/versions/2",
- "versions": "/api/properties/26cdfedb-1769-430a-927d-290de45d3a08/versions"
}
}
}
Endpoints to interact with the version history for properties.
Lists all versions of an OpsChain properties.
properties_id required | string Example: 5335d4bf-c9fb-4532-8813-c102a1bb2df9 properties id |
{- "data": [
- {
- "id": "f4211310-baea-4eb5-a479-d2a616e43c3c",
- "type": "properties_version",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1,
- "created_at": "2024-06-17T06:31:36.648987Z",
- "owner_type": "project"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "0fffe429-bcdd-4e81-aeb7-447a7ce7f788",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/0fffe429-bcdd-4e81-aeb7-447a7ce7f788"
}
}
}, - "links": {
- "versions": "/api/properties/0fffe429-bcdd-4e81-aeb7-447a7ce7f788/versions",
- "owner": "/api/projects/opc",
- "self": "/api/properties/0fffe429-bcdd-4e81-aeb7-447a7ce7f788/versions/1"
}
}
]
}
Shows the properties JSON for this properties version.
properties_id required | string Example: 5335d4bf-c9fb-4532-8813-c102a1bb2df9 properties id |
version_number required | integer Example: 1 version number |
{- "data": {
- "id": "be34a7bd-103d-409a-a317-541711a49062",
- "type": "properties_version",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1,
- "created_at": "2024-06-17T06:31:36.901675Z",
- "owner_type": "project"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "8c14f356-b560-46ec-ba3f-13656d8697bf",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/8c14f356-b560-46ec-ba3f-13656d8697bf"
}
}
}, - "links": {
- "versions": "/api/properties/8c14f356-b560-46ec-ba3f-13656d8697bf/versions",
- "owner": "/api/projects/opc",
- "self": "/api/properties/8c14f356-b560-46ec-ba3f-13656d8697bf/versions/1"
}
}
}
Endpoints to interact with changes.
Lists all changes.
filter[<query/sort filter>]= | |
download | string Example: download=changes.csv Download changes in CSV format with the specified file name. The changes will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
include | string Example: include=steps,parents Include the change steps and parents in the response |
{- "data": [
- {
- "id": "21f852bc-9614-4943-b4cf-bf42c0ff6e5a",
- "type": "change",
- "attributes": {
- "created_by": "alethea",
- "action": "default",
- "status_code": "success",
- "initial_step_tree": null,
- "metadata": {
- "bus": "calculating"
}, - "automated": true,
- "approved_by": [ ],
- "rejected_by": [ ],
- "created_at": "2024-06-17T06:31:23.695274Z",
- "started_at": "2024-06-17T06:26:03.744594Z",
- "finished_at": "2024-06-17T06:27:07.231959Z",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "git_remote_name": "github",
- "git_rev": "main",
- "commit_sha": "65daa7c0c6186198b1643e0e35eb202d018ccbb8",
- "requires_approval_from": null
}, - "relationships": {
- "properties": {
- "data": {
- "id": "4c8298fe-2678-4793-94ca-2e7dbd23e792",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/4c8298fe-2678-4793-94ca-2e7dbd23e792"
}
}, - "parents": {
- "data": [
- {
- "id": "28430723-920e-401d-a2ba-1377a2ff6e67",
- "type": "project"
}, - {
- "id": "3397f6b3-93b3-4b01-a2a9-1b689a4025c2",
- "type": "environment"
}
]
}, - "root_step": {
- "data": {
- "id": "9a98d5f8-f202-49bc-9a93-183381f14a74",
- "type": "step"
}, - "links": {
- "related": "/api/steps/9a98d5f8-f202-49bc-9a93-183381f14a74"
}
}, - "steps": {
- "data": [
- {
- "id": "9a98d5f8-f202-49bc-9a93-183381f14a74",
- "type": "step"
}
]
}, - "workflow_run": {
- "data": null
}, - "workflow": {
- "data": null
}
}, - "links": {
- "git_remote": "/api/projects/opc/git_remotes/7149dc27-ed76-4827-9113-ead3d7fa6fe3",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev",
- "self": "/api/changes/21f852bc-9614-4943-b4cf-bf42c0ff6e5a",
- "log_lines": "/api/changes/21f852bc-9614-4943-b4cf-bf42c0ff6e5a/log_lines"
}
}
], - "included": [
- {
- "id": "9a98d5f8-f202-49bc-9a93-183381f14a74",
- "type": "step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": null,
- "action": "default",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "21f852bc-9614-4943-b4cf-bf42c0ff6e5a",
- "created_at": "2024-06-17T06:25:03.744594Z",
- "started_at": "2024-06-17T06:26:03.744594Z",
- "finished_at": "2024-06-17T06:27:07.231959Z",
- "status_code": "success"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "4c8298fe-2678-4793-94ca-2e7dbd23e792",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/4c8298fe-2678-4793-94ca-2e7dbd23e792"
}
}, - "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [
- {
- "id": "c1d741d8-87bd-44fe-8157-fae053e4cceb",
- "type": "properties_version"
}, - {
- "id": "f4636aba-2d8f-4756-a2ee-145f9200ef5a",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/21f852bc-9614-4943-b4cf-bf42c0ff6e5a",
- "change": "/api/changes/21f852bc-9614-4943-b4cf-bf42c0ff6e5a",
- "log_lines": "/api/steps/9a98d5f8-f202-49bc-9a93-183381f14a74/log_lines",
- "self": "/api/steps/9a98d5f8-f202-49bc-9a93-183381f14a74"
}
}, - {
- "id": "28430723-920e-401d-a2ba-1377a2ff6e67",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "3190cc56-0e03-43de-8b31-ee68335b63be",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/3190cc56-0e03-43de-8b31-ee68335b63be"
}
}, - "settings": {
- "data": {
- "id": "a02c173a-8b42-4b70-886b-249a448e8407",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/a02c173a-8b42-4b70-886b-249a448e8407"
}
}, - "children": {
- "data": [
- {
- "id": "3397f6b3-93b3-4b01-a2a9-1b689a4025c2",
- "type": "environment"
}
]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc",
- "bookmarks": "/api/projects/opc/bookmarks",
- "changes": "/api/projects/opc/changes",
- "automated_change_rules": "/api/projects/opc/automated_change_rules",
- "git_remotes": "/api/projects/opc/git_remotes",
- "workflows": "/api/projects/opc/workflows",
- "workflow_runs": "/api/projects/opc/workflow_runs",
- "templates": "/api/projects/opc/templates",
- "environments": "/api/projects/opc/environments",
- "assets": "/api/projects/opc/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": true,
- "requires_template": false,
- "child_node_types": [
- "environment",
- "asset"
]
}
}, - {
- "id": "3397f6b3-93b3-4b01-a2a9-1b689a4025c2",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "7352bf45-3a14-4c73-9db3-aafad1c1c058",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/7352bf45-3a14-4c73-9db3-aafad1c1c058"
}
}, - "settings": {
- "data": {
- "id": "efd71bf2-af8f-4dd7-a2ff-ab36ef4aa95a",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/efd71bf2-af8f-4dd7-a2ff-ab36ef4aa95a"
}
}, - "project": {
- "data": {
- "id": "28430723-920e-401d-a2ba-1377a2ff6e67",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "children": {
- "data": [ ]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/environments/dev",
- "bookmarks": "/api/projects/opc/environments/dev/bookmarks",
- "changes": "/api/projects/opc/environments/dev/changes",
- "automated_change_rules": "/api/projects/opc/environments/dev/automated_change_rules",
- "parent": "/api/projects/opc",
- "assets": "/api/projects/opc/environments/dev/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "asset"
]
}
}
], - "meta": {
- "has_any": true
}
}
Creates a change in a specific project, environment or asset.
Notes:
changes
path
(e.g. POST to /api/projects/{project_code}/changes
) the parent_path
request attributes must not be supplied
as the parent will be derived from the path./api/projects/{project_code}/assets/{asset_code}/changes
)
the git_remote_name
and git_rev
attributes must not be supplied as the Git remote and revision will be
derived from the asset's template.required | object |
{- "data": {
- "attributes": {
- "action": "default",
- "parent_path": "/projects/opc/environments/dev",
- "git_remote_name": "github",
- "git_rev": "main",
- "metadata": {
- "port": "generating"
}
}
}
}
{- "data": {
- "id": "68b84596-15b2-4bec-8329-14dd364a5379",
- "type": "change",
- "attributes": {
- "created_by": "frank",
- "action": "default",
- "status_code": "initializing",
- "initial_step_tree": null,
- "metadata": {
- "alarm": "hacking"
}, - "automated": false,
- "approved_by": [ ],
- "rejected_by": [ ],
- "created_at": "2024-06-17T06:31:24.180417Z",
- "started_at": null,
- "finished_at": null,
- "environment_name": "Development",
- "project_name": "OpsChain",
- "git_remote_name": "github",
- "git_rev": "main",
- "commit_sha": null,
- "requires_approval_from": null
}, - "relationships": {
- "parents": {
- "data": [
- {
- "id": "d8f6e2bf-278e-4258-a777-33e15ac6862a",
- "type": "project"
}, - {
- "id": "3bee9aed-a692-4bd3-84c6-fd45fa22b9e7",
- "type": "environment"
}
]
}, - "root_step": {
- "data": {
- "id": "a3683060-0aba-409a-b1a3-90f5aa454375",
- "type": "step"
}, - "links": {
- "related": "/api/steps/a3683060-0aba-409a-b1a3-90f5aa454375"
}
}, - "steps": {
- "data": [
- {
- "id": "a3683060-0aba-409a-b1a3-90f5aa454375",
- "type": "step"
}
]
}, - "workflow_run": {
- "data": null
}, - "workflow": {
- "data": null
}
}, - "links": {
- "git_remote": "/api/projects/opc/git_remotes/0295d99d-b3b2-4da4-9212-c1d2c161d9fb",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev",
- "self": "/api/changes/68b84596-15b2-4bec-8329-14dd364a5379",
- "log_lines": "/api/changes/68b84596-15b2-4bec-8329-14dd364a5379/log_lines"
}
}, - "included": [
- {
- "id": "a3683060-0aba-409a-b1a3-90f5aa454375",
- "type": "step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": null,
- "action": "default",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "68b84596-15b2-4bec-8329-14dd364a5379",
- "created_at": "2024-06-17T06:31:24.183488Z",
- "started_at": null,
- "finished_at": null,
- "status_code": "initializing"
}, - "relationships": {
- "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [ ]
}
}, - "links": {
- "parent": "/api/changes/68b84596-15b2-4bec-8329-14dd364a5379",
- "change": "/api/changes/68b84596-15b2-4bec-8329-14dd364a5379",
- "log_lines": "/api/steps/a3683060-0aba-409a-b1a3-90f5aa454375/log_lines",
- "self": "/api/steps/a3683060-0aba-409a-b1a3-90f5aa454375"
}
}
]
}
Shows a change, including it's parent nodes.
change_id required | string Example: de851ee2-c2f7-4f55-81ee-ccd6ca9b49b9 change id |
include | string Example: include=steps,parents Include the change steps and parents in the response |
{- "data": {
- "id": "eac61c96-e856-40f1-a431-49fb56a0a50b",
- "type": "change",
- "attributes": {
- "created_by": "yong",
- "action": "default",
- "status_code": "success",
- "initial_step_tree": null,
- "metadata": {
- "interface": "indexing"
}, - "automated": true,
- "approved_by": [ ],
- "rejected_by": [ ],
- "created_at": "2024-06-17T06:31:24.638473Z",
- "started_at": "2024-06-17T06:23:37.380028Z",
- "finished_at": "2024-06-17T06:25:35.079350Z",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "git_remote_name": "github",
- "git_rev": "main",
- "commit_sha": "839898971bc9a7cd830b7bec77b45659077a4dc2",
- "requires_approval_from": null
}, - "relationships": {
- "properties": {
- "data": {
- "id": "1ce15b93-246c-4d21-908f-e84fc4bb1e90",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/1ce15b93-246c-4d21-908f-e84fc4bb1e90"
}
}, - "parents": {
- "data": [
- {
- "id": "a06236f5-b699-4f34-a54d-7e818c4e59c2",
- "type": "project"
}, - {
- "id": "99d60151-5eae-4fd7-924e-29c3d9e81bb9",
- "type": "environment"
}
]
}, - "root_step": {
- "data": {
- "id": "caa67445-d99f-47b3-b76a-4aaf252c6607",
- "type": "step"
}, - "links": {
- "related": "/api/steps/caa67445-d99f-47b3-b76a-4aaf252c6607"
}
}, - "steps": {
- "data": [
- {
- "id": "caa67445-d99f-47b3-b76a-4aaf252c6607",
- "type": "step"
}
]
}, - "workflow_run": {
- "data": null
}, - "workflow": {
- "data": null
}
}, - "links": {
- "git_remote": "/api/projects/opc/git_remotes/158b4e9e-d994-495a-8e78-3e1209e9176c",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev",
- "self": "/api/changes/eac61c96-e856-40f1-a431-49fb56a0a50b",
- "log_lines": "/api/changes/eac61c96-e856-40f1-a431-49fb56a0a50b/log_lines"
}
}, - "included": [
- {
- "id": "caa67445-d99f-47b3-b76a-4aaf252c6607",
- "type": "step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": null,
- "action": "default",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "eac61c96-e856-40f1-a431-49fb56a0a50b",
- "created_at": "2024-06-17T06:22:37.380028Z",
- "started_at": "2024-06-17T06:23:37.380028Z",
- "finished_at": "2024-06-17T06:25:35.079350Z",
- "status_code": "success"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "1ce15b93-246c-4d21-908f-e84fc4bb1e90",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/1ce15b93-246c-4d21-908f-e84fc4bb1e90"
}
}, - "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [
- {
- "id": "ed786f77-87b5-460e-8ca8-bb25cd30576d",
- "type": "properties_version"
}, - {
- "id": "a59aaabb-1d61-44ce-99f5-cbc4d03adfbe",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/eac61c96-e856-40f1-a431-49fb56a0a50b",
- "change": "/api/changes/eac61c96-e856-40f1-a431-49fb56a0a50b",
- "log_lines": "/api/steps/caa67445-d99f-47b3-b76a-4aaf252c6607/log_lines",
- "self": "/api/steps/caa67445-d99f-47b3-b76a-4aaf252c6607"
}
}, - {
- "id": "a06236f5-b699-4f34-a54d-7e818c4e59c2",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "e8ff46e2-b08a-4f56-943e-f6a78302083b",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/e8ff46e2-b08a-4f56-943e-f6a78302083b"
}
}, - "settings": {
- "data": {
- "id": "f3da829f-e46b-4a84-83ec-0b0efde0b194",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/f3da829f-e46b-4a84-83ec-0b0efde0b194"
}
}, - "children": {
- "data": [
- {
- "id": "99d60151-5eae-4fd7-924e-29c3d9e81bb9",
- "type": "environment"
}
]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc",
- "bookmarks": "/api/projects/opc/bookmarks",
- "changes": "/api/projects/opc/changes",
- "automated_change_rules": "/api/projects/opc/automated_change_rules",
- "git_remotes": "/api/projects/opc/git_remotes",
- "workflows": "/api/projects/opc/workflows",
- "workflow_runs": "/api/projects/opc/workflow_runs",
- "templates": "/api/projects/opc/templates",
- "environments": "/api/projects/opc/environments",
- "assets": "/api/projects/opc/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": true,
- "requires_template": false,
- "child_node_types": [
- "environment",
- "asset"
]
}
}, - {
- "id": "99d60151-5eae-4fd7-924e-29c3d9e81bb9",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "e33fecd8-c348-4c43-9db6-09850a3319c2",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/e33fecd8-c348-4c43-9db6-09850a3319c2"
}
}, - "settings": {
- "data": {
- "id": "52233348-9b9a-436f-8502-a05a7c323e7b",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/52233348-9b9a-436f-8502-a05a7c323e7b"
}
}, - "project": {
- "data": {
- "id": "a06236f5-b699-4f34-a54d-7e818c4e59c2",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "children": {
- "data": [ ]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/environments/dev",
- "bookmarks": "/api/projects/opc/environments/dev/bookmarks",
- "changes": "/api/projects/opc/environments/dev/changes",
- "automated_change_rules": "/api/projects/opc/environments/dev/automated_change_rules",
- "parent": "/api/projects/opc",
- "assets": "/api/projects/opc/environments/dev/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "asset"
]
}
}
]
}
Lists all automated change rules.
filter[<query/sort filter>]= | |
include | string Example: include=parents Include the automated change parents in the response |
{- "data": [
- {
- "id": "90e20244-28ac-44ca-a254-ea041d591438",
- "type": "automated_change_rule",
- "attributes": {
- "action": "navigate",
- "created_by": "wilfredo_durgan",
- "cron_schedule": "4 3 19 5 *",
- "new_commits_only": true,
- "git_rev": "solid-state",
- "repeat": false,
- "metadata": {
- "bus": "copying"
}, - "created_at": "2024-06-17T06:31:19.406654Z",
- "next_run_at": "2025-05-18T17:04:00.000000Z",
- "environment_code": "dev",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "project_code": "opc",
- "git_remote_name": "github"
}, - "relationships": {
- "parents": {
- "data": [
- {
- "id": "dfa90cc1-6882-4c54-aee2-a4d60b824592",
- "type": "project"
}, - {
- "id": "714db07a-ae3a-4716-966e-1f4fe5903117",
- "type": "environment"
}
]
}
}, - "links": {
- "git_remote": "/api/projects/opc/git_remotes/d770d8ea-ab75-4219-8e43-d4207f500b5e",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev",
- "self": "/api/automated_change_rules/90e20244-28ac-44ca-a254-ea041d591438"
}
}
], - "included": [
- {
- "id": "dfa90cc1-6882-4c54-aee2-a4d60b824592",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "e66f51bb-6a0c-458e-8bcd-3917cc6f017a",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/e66f51bb-6a0c-458e-8bcd-3917cc6f017a"
}
}, - "settings": {
- "data": {
- "id": "34548c02-8056-47ca-bd4e-ab53e9485ea3",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/34548c02-8056-47ca-bd4e-ab53e9485ea3"
}
}, - "children": {
- "data": [
- {
- "id": "714db07a-ae3a-4716-966e-1f4fe5903117",
- "type": "environment"
}
]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc",
- "bookmarks": "/api/projects/opc/bookmarks",
- "changes": "/api/projects/opc/changes",
- "automated_change_rules": "/api/projects/opc/automated_change_rules",
- "git_remotes": "/api/projects/opc/git_remotes",
- "workflows": "/api/projects/opc/workflows",
- "workflow_runs": "/api/projects/opc/workflow_runs",
- "templates": "/api/projects/opc/templates",
- "environments": "/api/projects/opc/environments",
- "assets": "/api/projects/opc/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": true,
- "requires_template": false,
- "child_node_types": [
- "environment",
- "asset"
]
}
}, - {
- "id": "714db07a-ae3a-4716-966e-1f4fe5903117",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "a7775548-7809-4c3d-9386-bd7b2f08f295",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/a7775548-7809-4c3d-9386-bd7b2f08f295"
}
}, - "settings": {
- "data": {
- "id": "f07bcfc4-25bf-41cd-871e-2f296b0359d0",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/f07bcfc4-25bf-41cd-871e-2f296b0359d0"
}
}, - "project": {
- "data": {
- "id": "dfa90cc1-6882-4c54-aee2-a4d60b824592",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "children": {
- "data": [ ]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/environments/dev",
- "bookmarks": "/api/projects/opc/environments/dev/bookmarks",
- "changes": "/api/projects/opc/environments/dev/changes",
- "automated_change_rules": "/api/projects/opc/environments/dev/automated_change_rules",
- "parent": "/api/projects/opc",
- "assets": "/api/projects/opc/environments/dev/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "asset"
]
}
}
], - "meta": {
- "has_any": true
}
}
Creates an automated change rule in a specific project, environment or asset.
Notes:
automated_change_rules
path
(e.g. POST to /api/projects/{project_code}/automated_change_rules
) the parent_path
request attributes must not be supplied
as the parent will be derived from the path./api/projects/{project_code}/assets/{asset_code}/automated_change_rules
)
the git_remote_name
and git_rev
attributes must not be supplied as the Git remote and revision will be
derived from the asset's template.required | object |
{- "data": {
- "attributes": {
- "action": "back_up",
- "parent_path": "/projects/opc/environments/dev",
- "git_remote_name": "github",
- "git_rev": "digital",
- "cron_schedule": "8 8 16 6 *",
- "new_commits_only": false,
- "repeat": false
}
}
}
{- "data": {
- "id": "e8fb479e-b3ca-4106-9789-12c254b8ef08",
- "type": "automated_change_rule",
- "attributes": {
- "action": "different_action",
- "created_by": "layla",
- "cron_schedule": "24 10 5 3 *",
- "new_commits_only": false,
- "git_rev": "cross-platform",
- "repeat": false,
- "metadata": {
- "panel": "copying"
}, - "created_at": "2024-06-17T06:31:19.994234Z",
- "next_run_at": "2025-03-04T23:24:00.000000Z",
- "environment_code": "dev",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "project_code": "opc",
- "git_remote_name": "github"
}, - "relationships": {
- "parents": {
- "data": [
- {
- "id": "17b68fbb-4d7d-4a36-a50a-a56141a673b6",
- "type": "project"
}, - {
- "id": "4cf0a0d2-2672-45b4-916a-8c268f0533a6",
- "type": "environment"
}
]
}
}, - "links": {
- "git_remote": "/api/projects/opc/git_remotes/3bd4e475-cece-4a70-97d5-e4765d6302e1",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev",
- "self": "/api/automated_change_rules/e8fb479e-b3ca-4106-9789-12c254b8ef08"
}
}
}
Shows an automated change rule.
automated_change_id required | string Example: 8c59bf92-cda2-4adb-91fb-5d45de1164cc automated change id |
include | string Example: include=parents Include the automated change parents in the response |
{- "data": {
- "id": "d240d9ae-d848-413d-9ad2-f2387e5cb198",
- "type": "automated_change_rule",
- "attributes": {
- "action": "compress",
- "created_by": "brooke",
- "cron_schedule": "17 0 13 3 *",
- "new_commits_only": true,
- "git_rev": "virtual",
- "repeat": false,
- "metadata": {
- "alarm": "copying"
}, - "created_at": "2024-06-17T06:31:20.420284Z",
- "next_run_at": "2025-03-12T13:17:00.000000Z",
- "environment_code": "dev",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "project_code": "opc",
- "git_remote_name": "github"
}, - "relationships": {
- "parents": {
- "data": [
- {
- "id": "985af183-a96d-4b8c-94d2-769a049627e3",
- "type": "project"
}, - {
- "id": "fecfc615-318e-46b9-bc91-3ce95311b4ed",
- "type": "environment"
}
]
}
}, - "links": {
- "git_remote": "/api/projects/opc/git_remotes/a496320b-09ef-4da8-94c3-ae72329248ab",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev",
- "self": "/api/automated_change_rules/d240d9ae-d848-413d-9ad2-f2387e5cb198"
}
}, - "included": [
- {
- "id": "985af183-a96d-4b8c-94d2-769a049627e3",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "d4eea641-ce42-4888-b59c-65c0c454105a",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/d4eea641-ce42-4888-b59c-65c0c454105a"
}
}, - "settings": {
- "data": {
- "id": "b3a1eaf7-fd4e-4d98-87e5-24954671406f",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/b3a1eaf7-fd4e-4d98-87e5-24954671406f"
}
}, - "children": {
- "data": [
- {
- "id": "fecfc615-318e-46b9-bc91-3ce95311b4ed",
- "type": "environment"
}
]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc",
- "bookmarks": "/api/projects/opc/bookmarks",
- "changes": "/api/projects/opc/changes",
- "automated_change_rules": "/api/projects/opc/automated_change_rules",
- "git_remotes": "/api/projects/opc/git_remotes",
- "workflows": "/api/projects/opc/workflows",
- "workflow_runs": "/api/projects/opc/workflow_runs",
- "templates": "/api/projects/opc/templates",
- "environments": "/api/projects/opc/environments",
- "assets": "/api/projects/opc/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": true,
- "requires_template": false,
- "child_node_types": [
- "environment",
- "asset"
]
}
}, - {
- "id": "fecfc615-318e-46b9-bc91-3ce95311b4ed",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "de1c09b2-c1b4-41d8-9425-81a315be4fb1",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/de1c09b2-c1b4-41d8-9425-81a315be4fb1"
}
}, - "settings": {
- "data": {
- "id": "d34b5b76-bf7d-4c01-8415-ca06c9228621",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/d34b5b76-bf7d-4c01-8415-ca06c9228621"
}
}, - "project": {
- "data": {
- "id": "985af183-a96d-4b8c-94d2-769a049627e3",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "children": {
- "data": [ ]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/environments/dev",
- "bookmarks": "/api/projects/opc/environments/dev/bookmarks",
- "changes": "/api/projects/opc/environments/dev/changes",
- "automated_change_rules": "/api/projects/opc/environments/dev/automated_change_rules",
- "parent": "/api/projects/opc",
- "assets": "/api/projects/opc/environments/dev/assets"
}, - "meta": {
- "can_have_workflows": false,
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "asset"
]
}
}
]
}
Endpoints to interact with change steps.
{- "data": [
- {
- "id": "914ce3f1-f2bd-46a4-bb69-7dde4455afc9",
- "type": "step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": null,
- "action": "default",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "a17653fb-eb7d-49ac-90b2-eac3ab82a0f3",
- "created_at": "2024-06-17T06:22:55.435138Z",
- "started_at": "2024-06-17T06:23:55.435138Z",
- "finished_at": "2024-06-17T06:26:25.018408Z",
- "status_code": "success"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "d317e325-552a-4055-afe7-ba5a0ec589d0",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/d317e325-552a-4055-afe7-ba5a0ec589d0"
}
}, - "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [
- {
- "id": "3d5ba628-012a-430b-b2f4-44c167e5cadb",
- "type": "properties_version"
}, - {
- "id": "6e9c2d5c-ba45-49a4-8f34-bab30c321d7b",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/a17653fb-eb7d-49ac-90b2-eac3ab82a0f3",
- "change": "/api/changes/a17653fb-eb7d-49ac-90b2-eac3ab82a0f3",
- "log_lines": "/api/steps/914ce3f1-f2bd-46a4-bb69-7dde4455afc9/log_lines",
- "self": "/api/steps/914ce3f1-f2bd-46a4-bb69-7dde4455afc9"
}
}
]
}
Shows a change step.
step_id required | string Example: 1adf62c3-c11e-499d-abaf-59cf7678442c step id |
{- "data": {
- "id": "d4914548-2c49-4c18-b101-c9eafad0650e",
- "type": "step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": null,
- "action": "default",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "737e7aaf-9367-4223-8276-c07762d3c358",
- "created_at": "2024-06-17T06:25:05.625959Z",
- "started_at": "2024-06-17T06:26:05.625959Z",
- "finished_at": "2024-06-17T06:30:18.943758Z",
- "status_code": "success"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "29a1dee0-72a3-439e-806b-68190d3ff6cd",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/29a1dee0-72a3-439e-806b-68190d3ff6cd"
}
}, - "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [
- {
- "id": "ad3c2c21-6533-4097-b2a0-5e51107f9fba",
- "type": "properties_version"
}, - {
- "id": "b8ea1cab-03a3-4d73-8515-7d158f93d66e",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/737e7aaf-9367-4223-8276-c07762d3c358",
- "change": "/api/changes/737e7aaf-9367-4223-8276-c07762d3c358",
- "log_lines": "/api/steps/d4914548-2c49-4c18-b101-c9eafad0650e/log_lines",
- "self": "/api/steps/d4914548-2c49-4c18-b101-c9eafad0650e"
}
}, - "included": [
- {
- "id": "ad3c2c21-6533-4097-b2a0-5e51107f9fba",
- "type": "properties_version",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1,
- "created_at": "2024-06-17T06:31:38.928465Z",
- "owner_type": "project"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "e4904693-74b2-4548-89d3-9e1499fea1ed",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/e4904693-74b2-4548-89d3-9e1499fea1ed"
}
}
}, - "links": {
- "versions": "/api/properties/e4904693-74b2-4548-89d3-9e1499fea1ed/versions",
- "owner": "/api/projects/opc",
- "self": "/api/properties/e4904693-74b2-4548-89d3-9e1499fea1ed/versions/1"
}
}, - {
- "id": "b8ea1cab-03a3-4d73-8515-7d158f93d66e",
- "type": "properties_version",
- "attributes": {
- "data": { },
- "version": 1,
- "created_at": "2024-06-17T06:31:38.959926Z",
- "owner_type": "environment"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "210c8ff7-986c-446f-ba39-31f1bca5964e",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/210c8ff7-986c-446f-ba39-31f1bca5964e"
}
}
}, - "links": {
- "versions": "/api/properties/210c8ff7-986c-446f-ba39-31f1bca5964e/versions",
- "owner": "/api/projects/opc/environments/dev",
- "self": "/api/properties/210c8ff7-986c-446f-ba39-31f1bca5964e/versions/1"
}
}, - {
- "id": "29a1dee0-72a3-439e-806b-68190d3ff6cd",
- "type": "properties",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1,
- "created_at": "2024-06-17T06:31:39.005558Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/steps/d4914548-2c49-4c18-b101-c9eafad0650e"
}
}
}, - "links": {
- "self": "/api/properties/29a1dee0-72a3-439e-806b-68190d3ff6cd",
- "current_version": "/api/properties/29a1dee0-72a3-439e-806b-68190d3ff6cd/versions/1",
- "versions": "/api/properties/29a1dee0-72a3-439e-806b-68190d3ff6cd/versions"
}
}
]
}
Continues a "waiting" change step.
step_id required | string Example: 30d2ffae-feb7-4476-b169-3a9df5686d31 step id |
object |
{- "data": {
- "attributes": {
- "message": "Manually removed from load balancer."
}
}
}
{- "data": {
- "id": "6578665d-5cb9-4014-9010-2fad57b64679",
- "type": "step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [
- {
- "username": "seth",
- "message": null
}
], - "requires_approval_from": null,
- "action": "default",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "d0529923-b817-4a19-aaa1-e3b5469b01d2",
- "created_at": "2024-06-17T06:24:18.449991Z",
- "started_at": "2024-06-17T06:25:18.449991Z",
- "finished_at": "2024-06-17T06:31:40.429124Z",
- "status_code": "success"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "973c90d9-7976-4275-b252-efb384a9ed98",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/973c90d9-7976-4275-b252-efb384a9ed98"
}
}, - "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [
- {
- "id": "fe91bf7c-9e7e-426a-afd1-c4c122ad2dd3",
- "type": "properties_version"
}, - {
- "id": "294f6376-d903-470a-ab94-6f8567f9828b",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/d0529923-b817-4a19-aaa1-e3b5469b01d2",
- "change": "/api/changes/d0529923-b817-4a19-aaa1-e3b5469b01d2",
- "log_lines": "/api/steps/6578665d-5cb9-4014-9010-2fad57b64679/log_lines",
- "self": "/api/steps/6578665d-5cb9-4014-9010-2fad57b64679"
}
}
}
Approves a change step that needs approval.
step_id required | string Example: 30d2ffae-feb7-4476-b169-3a9df5686d31 step id |
object |
{- "data": {
- "attributes": {
- "message": "As per CR 7 👍"
}
}
}
{- "data": {
- "id": "3bd9059f-8e91-4f1a-b419-2791d0d21040",
- "type": "step",
- "attributes": {
- "approved_by": [
- {
- "username": "roberto.reichert",
- "message": null
}
], - "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": "an-ldap-group",
- "action": "default",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "83f7b0cd-1114-4d95-8585-28fb19d8c952",
- "created_at": "2024-06-17T06:21:27.800026Z",
- "started_at": "2024-06-17T06:22:27.800026Z",
- "finished_at": null,
- "status_code": "queued"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "06ef5678-871b-4f83-a882-3407cb89ef15",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/06ef5678-871b-4f83-a882-3407cb89ef15"
}
}, - "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [
- {
- "id": "0efafc81-2878-451a-bf92-1b37e4b46f92",
- "type": "properties_version"
}, - {
- "id": "cdf26763-9d25-4c2f-8f31-27df2316eb06",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/83f7b0cd-1114-4d95-8585-28fb19d8c952",
- "change": "/api/changes/83f7b0cd-1114-4d95-8585-28fb19d8c952",
- "log_lines": "/api/steps/3bd9059f-8e91-4f1a-b419-2791d0d21040/log_lines",
- "self": "/api/steps/3bd9059f-8e91-4f1a-b419-2791d0d21040"
}
}
}
Rejects a change step that needs approval.
step_id required | string Example: 30d2ffae-feb7-4476-b169-3a9df5686d31 step id |
object |
{- "data": {
- "attributes": {
- "message": "Failed user acceptance testing"
}
}
}
{- "data": {
- "id": "e595e9e8-45d0-44d8-a73c-34f0cc64e99a",
- "type": "step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [
- {
- "username": "twanna",
- "message": null
}
], - "continued_by": [ ],
- "requires_approval_from": "an-ldap-group",
- "action": "default",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "183b2ae2-ffb7-477e-a763-b84d926c6e4e",
- "created_at": "2024-06-17T06:21:54.814416Z",
- "started_at": "2024-06-17T06:22:54.814416Z",
- "finished_at": "2024-06-17T06:31:41.994905Z",
- "status_code": "rejected"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "4da9237b-87ac-4473-a6da-be3490f69f33",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/4da9237b-87ac-4473-a6da-be3490f69f33"
}
}, - "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [
- {
- "id": "403dd5b1-cfb9-4cd8-a93a-cc2629028309",
- "type": "properties_version"
}, - {
- "id": "a6802f4e-5e4a-4623-8f4e-10f887b39a82",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/183b2ae2-ffb7-477e-a763-b84d926c6e4e",
- "change": "/api/changes/183b2ae2-ffb7-477e-a763-b84d926c6e4e",
- "log_lines": "/api/steps/e595e9e8-45d0-44d8-a73c-34f0cc64e99a/log_lines",
- "self": "/api/steps/e595e9e8-45d0-44d8-a73c-34f0cc64e99a"
}
}
}
List the log lines for a change.
change_id required | string Example: de851ee2-c2f7-4f55-81ee-ccd6ca9b49b9 |
filter[<query/sort filter>]= | |
download | string Example: download=change.log Download the log lines wth the specified file name. The logs will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
{- "data": [
- {
- "id": "40e467d7-e857-4c51-b260-07e366b7d6ea",
- "type": "log_line",
- "attributes": {
- "change_id": "fc47bd74-a825-47db-b1c4-17f1e82bc208",
- "step_id": "9601d875-06be-4a0e-9afd-098ec5e198c2",
- "message": "Debitis quis aspernatur qui.",
- "logged_at": "2024-06-16T00:00:00.000000Z"
}
}
]
}
List the log lines for a change step.
step_id required | string Example: 1adf62c3-c11e-499d-abaf-59cf7678442c |
filter[<query/sort filter>]= | |
download | string Example: download=step.log Download the log lines wth the specified file name. The logs will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
{- "data": [
- {
- "id": "2159a254-65f5-472d-ae36-6b66620913b0",
- "type": "log_line",
- "attributes": {
- "change_id": "fe66ebbd-b33a-467d-9811-12769e32d475",
- "step_id": "d63023ca-76d1-463c-b381-b2cf5dac2d99",
- "message": "Dolor repellat similique libero.",
- "logged_at": "2024-06-16T00:00:00.000000Z"
}
}
]
}
List filtered log lines.
filter[<query/sort filter>]= | |
limit | integer [ 1 .. 10000 ] Default: 1000 Example: limit=50 Limit the number of log lines returned |
download | string Example: download=opschain.log Download the filtered log lines wth the specified file name. The logs will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
{- "data": [
- {
- "id": "09eecbf0-1572-4c39-be3d-10b922a32b37",
- "type": "log_line",
- "attributes": {
- "change_id": "2968556d-a696-4281-bf5c-a44995dee606",
- "step_id": "b06b0631-ab48-400f-9c66-e241ddcefa67",
- "message": "Nostrum fugiat qui est.",
- "logged_at": "2024-06-16T00:00:00.000000Z"
}
}
]
}
Lists all runs for a workflow.
project_code required | string Example: opc project code |
workflow_code required | string Example: fn5ae workflow code |
{- "data": [
- {
- "id": "0d6ed15e-2594-4afa-aa5e-e3bffae2ae4a",
- "type": "workflow_run",
- "attributes": {
- "step_tree": {
- "id": "cbf96182-c584-426b-8540-e26da112ad08",
- "type": "workflow_noop_step",
- "children": [ ]
}, - "automated": false,
- "metadata": {
- "Asoka": "1.44",
- "Zamit": "8.70",
- "Duobam": "2.0",
- "Zathin": "5.49",
- "Andalax": "2.74",
- "Fix San": "0.85",
- "Sonsing": "9.89",
- "Tampflex": "7.4",
- "Tres-Zap": "0.1.1",
- "Y-Solowarm": "3.94"
}, - "created_by": "ronny_schamberger",
- "status_code": "success",
- "created_at": "2024-06-17T06:31:46.604279Z",
- "started_at": "2024-06-17T06:22:05.704251Z",
- "finished_at": "2024-06-17T06:22:27.653555Z",
- "project_name": "OpsChain",
- "commit_sha": "6cd3b9748ab586554e0e04424090c763dca7cb29"
}, - "relationships": {
- "workflow": {
- "data": {
- "id": "71aabffc-fb2e-4384-bb66-53ed5d61f287",
- "type": "workflow"
}
}, - "root_step": {
- "data": {
- "id": "cbf96182-c584-426b-8540-e26da112ad08",
- "type": "workflow_step"
}
}, - "steps": {
- "data": [
- {
- "id": "cbf96182-c584-426b-8540-e26da112ad08",
- "type": "workflow_step"
}, - {
- "id": "70b55f1b-788d-4c89-b939-1d1680953233",
- "type": "workflow_step"
}, - {
- "id": "87bdc8a4-e871-4883-9cd4-2ffd3569096f",
- "type": "workflow_step"
}, - {
- "id": "8bb16b8d-c674-41b7-8b1d-91297c4ec087",
- "type": "workflow_step"
}
]
}
}, - "links": {
- "parent": "/api/projects/opc",
- "self": "/api/projects/opc/workflows/wor7r/runs/0d6ed15e-2594-4afa-aa5e-e3bffae2ae4a"
}
}
], - "included": [
- {
- "id": "71aabffc-fb2e-4384-bb66-53ed5d61f287",
- "type": "workflow",
- "attributes": {
- "code": "wor7r",
- "name": "assets workflow",
- "description": "workflow for assets",
- "state": "ready",
- "created_by": "claribel.robel",
- "version_description": "Updated the assets workflow to include a new step",
- "created_at": "2024-06-17T06:31:46.585780Z",
- "steps": [
- {
- "type": "change",
- "target": "/projects/opc/assets/prj_soa",
- "action": "run"
}
], - "commit_sha": "6cd3b9748ab586554e0e04424090c763dca7cb29"
}, - "links": {
- "self": "/api/projects/opc/workflows/wor7r?sha=6cd3b9748ab586554e0e04424090c763dca7cb29",
- "latest_version": "/api/projects/opc/workflows/wor7r",
- "project": "/api/projects/opc",
- "runs": "/api/projects/opc/workflows/wor7r/runs"
}
}
]
}
Runs a pre-defined workflow
project_code required | string Example: opc project code |
workflow_code required | string Example: fn5ae workflow code |
required | object |
{- "data": {
- "attributes": {
- "workflow_code": "fn5ae"
}
}
}
{- "data": {
- "id": "eb4a10bc-df3f-4ec2-8456-6a47208f777b",
- "type": "workflow_run",
- "attributes": {
- "step_tree": {
- "id": "7a46ceab-1b0c-4c91-8214-ba7589eb61ad",
- "type": "workflow_noop_step",
- "children": [
- {
- "id": "217339e1-ea5b-4995-abc7-bac95aef1eb4",
- "type": "workflow_change_step",
- "children": [ ],
- "action": "run",
- "target": "/projects/opc/assets/prj_soa"
}
]
}, - "automated": false,
- "metadata": { },
- "created_by": "emilie.dach",
- "status_code": "queued",
- "created_at": "2024-06-17T06:31:48.905145Z",
- "started_at": null,
- "finished_at": null,
- "project_name": "OpsChain",
- "commit_sha": "2ee6783491db82353709a877682ae4010c7cb511"
}, - "relationships": {
- "workflow": {
- "data": {
- "id": "b83d96c0-b2a7-470e-b3f6-6fe170b8314b",
- "type": "workflow"
}
}, - "root_step": {
- "data": {
- "id": "7a46ceab-1b0c-4c91-8214-ba7589eb61ad",
- "type": "workflow_step"
}
}, - "steps": {
- "data": [
- {
- "id": "7a46ceab-1b0c-4c91-8214-ba7589eb61ad",
- "type": "workflow_step"
}, - {
- "id": "217339e1-ea5b-4995-abc7-bac95aef1eb4",
- "type": "workflow_step"
}
]
}
}, - "links": {
- "parent": "/api/projects/opc",
- "self": "/api/projects/opc/workflows/qd5d8/runs/eb4a10bc-df3f-4ec2-8456-6a47208f777b"
}
}, - "included": [
- {
- "id": "b83d96c0-b2a7-470e-b3f6-6fe170b8314b",
- "type": "workflow",
- "attributes": {
- "code": "qd5d8",
- "name": "assets workflow",
- "description": "workflow for assets",
- "state": "broken",
- "created_by": "marchelle",
- "version_description": "Updated the assets workflow to include a new step",
- "created_at": "2024-06-17T06:31:48.491390Z",
- "steps": [
- {
- "type": "change",
- "target": "/projects/opc/assets/prj_soa",
- "action": "run",
- "change_parent": {
- "id": "92563b3e-36d5-4f0e-a50d-f0ed43f7ae6d",
- "path": "/projects/opc/assets/prj_soa",
- "parent_path": "/projects/opc",
- "project_id": "13ce19ef-236c-4882-9b36-9df7f86c47fe",
- "node_type": "asset",
- "parent_id": "13ce19ef-236c-4882-9b36-9df7f86c47fe",
- "code": "prj_soa",
- "name": "Project asset",
- "description": "Project asset description",
- "archived": false,
- "created_at": "2024-06-17T06:31:48.459Z",
- "updated_at": "2024-06-17T06:31:48.459Z",
- "project_type": null,
- "template_version_id": "aad6aada-393b-4790-8e4a-243b3ce7e022"
}
}
], - "schema_errors": [
- "The property '#/steps/0' of type object did not match any of the required schemas. The schema specific errors were:\n\n- oneOf #0:\n - The property '#/steps/0' contains additional properties [\"change_parent\"] outside of the schema when none are allowed\n- oneOf #1:\n - The property '#/steps/0/type' value \"change\" did not match one of the following values: wait\n - The property '#/steps/0' contains additional properties [\"target\", \"action\", \"change_parent\"] outside of the schema when none are allowed"
], - "commit_sha": "2ee6783491db82353709a877682ae4010c7cb511"
}, - "links": {
- "self": "/api/projects/opc/workflows/qd5d8?sha=2ee6783491db82353709a877682ae4010c7cb511",
- "latest_version": "/api/projects/opc/workflows/qd5d8",
- "project": "/api/projects/opc",
- "runs": "/api/projects/opc/workflows/qd5d8/runs"
}
}, - {
- "id": "7a46ceab-1b0c-4c91-8214-ba7589eb61ad",
- "type": "workflow_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 1,
- "created_by": "emilie.dach",
- "status_code": "queued",
- "created_at": "2024-06-17T06:31:48.908464Z",
- "started_at": null,
- "finished_at": null
}, - "relationships": {
- "children": {
- "data": [
- {
- "id": "217339e1-ea5b-4995-abc7-bac95aef1eb4",
- "type": "workflow_step"
}
]
}
}, - "links": {
- "parent": "/api/projects/opc/workflows/qd5d8/runs/eb4a10bc-df3f-4ec2-8456-6a47208f777b",
- "workflow_run": "/api/projects/opc/workflows/qd5d8/runs/eb4a10bc-df3f-4ec2-8456-6a47208f777b",
- "self": "/api/projects/opc/workflows/qd5d8/runs/eb4a10bc-df3f-4ec2-8456-6a47208f777b/steps/7a46ceab-1b0c-4c91-8214-ba7589eb61ad"
}
}, - {
- "id": "217339e1-ea5b-4995-abc7-bac95aef1eb4",
- "type": "workflow_step",
- "attributes": {
- "requires_approval_from": null,
- "action": "run",
- "lock_version": 0,
- "created_by": "emilie.dach",
- "status_code": "pending",
- "created_at": "2024-06-17T06:31:48.913250Z",
- "started_at": null,
- "finished_at": null
}, - "relationships": {
- "change": {
- "data": null
}, - "change_parent": {
- "data": {
- "id": "92563b3e-36d5-4f0e-a50d-f0ed43f7ae6d",
- "type": "asset"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "parent": "/api/projects/opc/workflows/qd5d8/runs/eb4a10bc-df3f-4ec2-8456-6a47208f777b/steps/7a46ceab-1b0c-4c91-8214-ba7589eb61ad",
- "workflow_run": "/api/projects/opc/workflows/qd5d8/runs/eb4a10bc-df3f-4ec2-8456-6a47208f777b",
- "self": "/api/projects/opc/workflows/qd5d8/runs/eb4a10bc-df3f-4ec2-8456-6a47208f777b/steps/217339e1-ea5b-4995-abc7-bac95aef1eb4"
}
}
]
}
Shows a workflow run.
project_code required | string Example: opc project code |
workflow_code required | string Example: fn5ae workflow code |
run_id required | string Example: d4e814ef-c950-4070-ac4a-40d0cf3366a3 workflow run id |
{- "data": {
- "id": "26af74c7-5cad-4ff2-bce1-e1692d2bc2a6",
- "type": "workflow_run",
- "attributes": {
- "step_tree": {
- "id": "ecdeae78-40e1-46aa-a03e-897c305891c6",
- "type": "workflow_noop_step",
- "children": [ ]
}, - "automated": false,
- "metadata": {
- "It": "7.4.0",
- "Zamit": "9.68",
- "Biodex": "5.9.6",
- "Hatity": "0.5.1",
- "Tresom": "8.6.4",
- "Alphazap": "9.0",
- "Bytecard": "0.53",
- "Tempsoft": "5.98",
- "Tres-Zap": "0.39",
- "Ventosanzap": "6.4.2"
}, - "created_by": "eugenie",
- "status_code": "success",
- "created_at": "2024-06-17T06:31:52.296185Z",
- "started_at": "2024-06-17T06:24:00.218090Z",
- "finished_at": "2024-06-17T06:26:13.946950Z",
- "project_name": "OpsChain",
- "commit_sha": "a08d34ec945e04ce83c1d65d2b2e3caaeabc9252"
}, - "relationships": {
- "workflow": {
- "data": {
- "id": "64db5b5a-d641-4504-b90e-73c4a75e4973",
- "type": "workflow"
}
}, - "root_step": {
- "data": {
- "id": "ecdeae78-40e1-46aa-a03e-897c305891c6",
- "type": "workflow_step"
}
}, - "steps": {
- "data": [
- {
- "id": "ecdeae78-40e1-46aa-a03e-897c305891c6",
- "type": "workflow_step"
}, - {
- "id": "b8d64eaf-c607-497d-94f7-afea92c8a46f",
- "type": "workflow_step"
}, - {
- "id": "0bb0c7aa-a32f-40f1-bf60-25d4316acf7d",
- "type": "workflow_step"
}, - {
- "id": "e67ef12b-04bb-47c0-ad30-2f312672365d",
- "type": "workflow_step"
}
]
}
}, - "links": {
- "parent": "/api/projects/opc",
- "self": "/api/projects/opc/workflows/xmrsp/runs/26af74c7-5cad-4ff2-bce1-e1692d2bc2a6"
}
}, - "included": [
- {
- "id": "64db5b5a-d641-4504-b90e-73c4a75e4973",
- "type": "workflow",
- "attributes": {
- "code": "xmrsp",
- "name": "assets workflow",
- "description": "workflow for assets",
- "state": "ready",
- "created_by": "fredrick.lindgren",
- "version_description": "Updated the assets workflow to include a new step",
- "created_at": "2024-06-17T06:31:52.287971Z",
- "steps": [
- {
- "type": "change",
- "target": "/projects/opc/assets/prj_soa",
- "action": "run"
}
], - "commit_sha": "a08d34ec945e04ce83c1d65d2b2e3caaeabc9252"
}, - "links": {
- "self": "/api/projects/opc/workflows/xmrsp?sha=a08d34ec945e04ce83c1d65d2b2e3caaeabc9252",
- "latest_version": "/api/projects/opc/workflows/xmrsp",
- "project": "/api/projects/opc",
- "runs": "/api/projects/opc/workflows/xmrsp/runs"
}
}, - {
- "id": "ecdeae78-40e1-46aa-a03e-897c305891c6",
- "type": "workflow_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "eugenie",
- "status_code": "success",
- "created_at": "2024-06-17T06:31:52.298199Z",
- "started_at": "2024-06-17T06:24:00.218090Z",
- "finished_at": "2024-06-17T06:26:13.946950Z"
}, - "relationships": {
- "children": {
- "data": [
- {
- "id": "b8d64eaf-c607-497d-94f7-afea92c8a46f",
- "type": "workflow_step"
}, - {
- "id": "0bb0c7aa-a32f-40f1-bf60-25d4316acf7d",
- "type": "workflow_step"
}, - {
- "id": "e67ef12b-04bb-47c0-ad30-2f312672365d",
- "type": "workflow_step"
}
]
}
}, - "links": {
- "parent": "/api/projects/opc/workflows/xmrsp/runs/26af74c7-5cad-4ff2-bce1-e1692d2bc2a6",
- "workflow_run": "/api/projects/opc/workflows/xmrsp/runs/26af74c7-5cad-4ff2-bce1-e1692d2bc2a6",
- "self": "/api/projects/opc/workflows/xmrsp/runs/26af74c7-5cad-4ff2-bce1-e1692d2bc2a6/steps/ecdeae78-40e1-46aa-a03e-897c305891c6"
}
}, - {
- "id": "b8d64eaf-c607-497d-94f7-afea92c8a46f",
- "type": "workflow_step",
- "attributes": {
- "requires_approval_from": null,
- "action": "compress",
- "lock_version": 0,
- "created_by": "eugenie",
- "status_code": "pending",
- "created_at": "2024-06-17T06:31:52.466680Z",
- "started_at": null,
- "finished_at": null
}, - "relationships": {
- "change": {
- "data": null
}, - "change_parent": {
- "data": {
- "id": "283cfa21-1236-49d4-abac-b5b8e38dd605",
- "type": "asset"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "parent": "/api/projects/opc/workflows/xmrsp/runs/26af74c7-5cad-4ff2-bce1-e1692d2bc2a6/steps/ecdeae78-40e1-46aa-a03e-897c305891c6",
- "workflow_run": "/api/projects/opc/workflows/xmrsp/runs/26af74c7-5cad-4ff2-bce1-e1692d2bc2a6",
- "self": "/api/projects/opc/workflows/xmrsp/runs/26af74c7-5cad-4ff2-bce1-e1692d2bc2a6/steps/b8d64eaf-c607-497d-94f7-afea92c8a46f"
}
}, - {
- "id": "0bb0c7aa-a32f-40f1-bf60-25d4316acf7d",
- "type": "workflow_step",
- "attributes": {
- "requires_approval_from": null,
- "action": "quantify",
- "lock_version": 0,
- "created_by": "eugenie",
- "status_code": "pending",
- "created_at": "2024-06-17T06:31:52.662557Z",
- "started_at": null,
- "finished_at": null
}, - "relationships": {
- "change": {
- "data": null
}, - "change_parent": {
- "data": {
- "id": "9a7ff9d3-4f0f-4d47-9117-838e218e682d",
- "type": "asset"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "parent": "/api/projects/opc/workflows/xmrsp/runs/26af74c7-5cad-4ff2-bce1-e1692d2bc2a6/steps/ecdeae78-40e1-46aa-a03e-897c305891c6",
- "workflow_run": "/api/projects/opc/workflows/xmrsp/runs/26af74c7-5cad-4ff2-bce1-e1692d2bc2a6",
- "self": "/api/projects/opc/workflows/xmrsp/runs/26af74c7-5cad-4ff2-bce1-e1692d2bc2a6/steps/0bb0c7aa-a32f-40f1-bf60-25d4316acf7d"
}
}, - {
- "id": "e67ef12b-04bb-47c0-ad30-2f312672365d",
- "type": "workflow_step",
- "attributes": {
- "requires_approval_from": null,
- "action": "calculate",
- "lock_version": 0,
- "created_by": "eugenie",
- "status_code": "pending",
- "created_at": "2024-06-17T06:31:52.844235Z",
- "started_at": null,
- "finished_at": null
}, - "relationships": {
- "change": {
- "data": null
}, - "change_parent": {
- "data": {
- "id": "3697ae08-2a54-41fa-b1db-22c9cbd7ae0a",
- "type": "asset"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "parent": "/api/projects/opc/workflows/xmrsp/runs/26af74c7-5cad-4ff2-bce1-e1692d2bc2a6/steps/ecdeae78-40e1-46aa-a03e-897c305891c6",
- "workflow_run": "/api/projects/opc/workflows/xmrsp/runs/26af74c7-5cad-4ff2-bce1-e1692d2bc2a6",
- "self": "/api/projects/opc/workflows/xmrsp/runs/26af74c7-5cad-4ff2-bce1-e1692d2bc2a6/steps/e67ef12b-04bb-47c0-ad30-2f312672365d"
}
}
]
}
Cancels a workflow run.
project_code required | string Example: opc project code |
workflow_code required | string Example: fn5ae workflow code |
run_id required | string Example: d4e814ef-c950-4070-ac4a-40d0cf3366a3 workflow run id |
{ }
Lists all steps in a workflow run.
project_code required | string Example: opc project code |
workflow_code required | string Example: fn5ae workflow code |
run_id required | string Example: d4e814ef-c950-4070-ac4a-40d0cf3366a3 workflow run id |
{- "data": [
- {
- "id": "2783ff5b-7a07-49f2-82fb-27240f019546",
- "type": "workflow_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "shelton",
- "status_code": "success",
- "created_at": "2024-06-17T06:31:58.269253Z",
- "started_at": "2024-06-17T06:25:14.954507Z",
- "finished_at": "2024-06-17T06:27:18.670223Z"
}, - "relationships": {
- "children": {
- "data": [
- {
- "id": "a44fbb08-5779-4193-ac33-1fe2b8d1b06f",
- "type": "workflow_step"
}, - {
- "id": "b343730f-ac98-4ecc-9144-2aa60933a5d1",
- "type": "workflow_step"
}, - {
- "id": "89723733-df06-4a90-8cf2-e5968fefb83c",
- "type": "workflow_step"
}
]
}
}, - "links": {
- "parent": "/api/projects/opc/workflows/0dzso/runs/a50bcca3-44a3-45b5-a080-c5170839e52a",
- "workflow_run": "/api/projects/opc/workflows/0dzso/runs/a50bcca3-44a3-45b5-a080-c5170839e52a",
- "self": "/api/projects/opc/workflows/0dzso/runs/a50bcca3-44a3-45b5-a080-c5170839e52a/steps/2783ff5b-7a07-49f2-82fb-27240f019546"
}
}, - {
- "id": "a44fbb08-5779-4193-ac33-1fe2b8d1b06f",
- "type": "workflow_step",
- "attributes": {
- "requires_approval_from": null,
- "action": "quantify",
- "lock_version": 0,
- "created_by": "shelton",
- "status_code": "pending",
- "created_at": "2024-06-17T06:31:58.404604Z",
- "started_at": null,
- "finished_at": null
}, - "relationships": {
- "change": {
- "data": null
}, - "change_parent": {
- "data": {
- "id": "69dbed6a-2a26-4f50-8554-f98f9e82f6a7",
- "type": "asset"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "parent": "/api/projects/opc/workflows/0dzso/runs/a50bcca3-44a3-45b5-a080-c5170839e52a/steps/2783ff5b-7a07-49f2-82fb-27240f019546",
- "workflow_run": "/api/projects/opc/workflows/0dzso/runs/a50bcca3-44a3-45b5-a080-c5170839e52a",
- "self": "/api/projects/opc/workflows/0dzso/runs/a50bcca3-44a3-45b5-a080-c5170839e52a/steps/a44fbb08-5779-4193-ac33-1fe2b8d1b06f"
}
}, - {
- "id": "b343730f-ac98-4ecc-9144-2aa60933a5d1",
- "type": "workflow_step",
- "attributes": {
- "requires_approval_from": null,
- "action": "navigate",
- "lock_version": 0,
- "created_by": "shelton",
- "status_code": "pending",
- "created_at": "2024-06-17T06:31:58.539682Z",
- "started_at": null,
- "finished_at": null
}, - "relationships": {
- "change": {
- "data": null
}, - "change_parent": {
- "data": {
- "id": "817f50db-1185-41c0-8903-7aceb04e3a4e",
- "type": "asset"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "parent": "/api/projects/opc/workflows/0dzso/runs/a50bcca3-44a3-45b5-a080-c5170839e52a/steps/2783ff5b-7a07-49f2-82fb-27240f019546",
- "workflow_run": "/api/projects/opc/workflows/0dzso/runs/a50bcca3-44a3-45b5-a080-c5170839e52a",
- "self": "/api/projects/opc/workflows/0dzso/runs/a50bcca3-44a3-45b5-a080-c5170839e52a/steps/b343730f-ac98-4ecc-9144-2aa60933a5d1"
}
}, - {
- "id": "89723733-df06-4a90-8cf2-e5968fefb83c",
- "type": "workflow_step",
- "attributes": {
- "requires_approval_from": null,
- "action": "transmit",
- "lock_version": 0,
- "created_by": "shelton",
- "status_code": "pending",
- "created_at": "2024-06-17T06:31:58.674089Z",
- "started_at": null,
- "finished_at": null
}, - "relationships": {
- "change": {
- "data": null
}, - "change_parent": {
- "data": {
- "id": "b4016f60-e0cc-4fc3-9677-6c2664f8e8f2",
- "type": "asset"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "parent": "/api/projects/opc/workflows/0dzso/runs/a50bcca3-44a3-45b5-a080-c5170839e52a/steps/2783ff5b-7a07-49f2-82fb-27240f019546",
- "workflow_run": "/api/projects/opc/workflows/0dzso/runs/a50bcca3-44a3-45b5-a080-c5170839e52a",
- "self": "/api/projects/opc/workflows/0dzso/runs/a50bcca3-44a3-45b5-a080-c5170839e52a/steps/89723733-df06-4a90-8cf2-e5968fefb83c"
}
}
]
}
Shows a step in a workflow run.
project_code required | string Example: opc project code |
workflow_code required | string Example: fn5ae workflow code |
run_id required | string Example: d4e814ef-c950-4070-ac4a-40d0cf3366a3 workflow run id |
step_id required | string Example: 58d1730b-c76f-4157-b56b-4f2f4faeb7f1 workflow step id |
{- "data": {
- "id": "292bdf42-0f9a-4984-9c25-1ba048e7b62b",
- "type": "workflow_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "kasi_heaney",
- "status_code": "success",
- "created_at": "2024-06-17T06:32:00.521113Z",
- "started_at": "2024-06-17T06:23:18.620417Z",
- "finished_at": "2024-06-17T06:25:22.052919Z"
}, - "relationships": {
- "children": {
- "data": [
- {
- "id": "e2de20f1-2c6a-4677-be5d-22787f1562cd",
- "type": "workflow_step"
}, - {
- "id": "7c210f58-9f47-475e-b9da-5c800aae0609",
- "type": "workflow_step"
}, - {
- "id": "f5ee7ec0-c9c9-4079-a4e2-fb92469b88a7",
- "type": "workflow_step"
}
]
}
}, - "links": {
- "parent": "/api/projects/opc/workflows/th9tg/runs/f6837b4a-c04a-4f30-a842-fe6a8e61c694",
- "workflow_run": "/api/projects/opc/workflows/th9tg/runs/f6837b4a-c04a-4f30-a842-fe6a8e61c694",
- "self": "/api/projects/opc/workflows/th9tg/runs/f6837b4a-c04a-4f30-a842-fe6a8e61c694/steps/292bdf42-0f9a-4984-9c25-1ba048e7b62b"
}
}
}
Continues a "waiting" workflow step. To approve/reject a workflow step that needs approval see the approve workflow step API endpoint.
project_code required | string Example: opc project code |
workflow_code required | string Example: fn5ae workflow code |
run_id required | string Example: d4e814ef-c950-4070-ac4a-40d0cf3366a3 workflow run id |
step_id required | string Example: cb4f24e9-9f26-47d2-8850-63448f9b8853 workflow step id |
object |
{- "data": {
- "attributes": {
- "message": "Done sanity checks. Ok to continue."
}
}
}
{- "data": {
- "id": "c5ff90e5-99cc-4ed1-8250-a2f558996020",
- "type": "workflow_step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [
- {
- "username": "monet_moore",
- "message": null
}
], - "requires_approval_from": null,
- "name": "Wait",
- "lock_version": 1,
- "created_by": "jessica",
- "status_code": "continued",
- "created_at": "2024-06-17T06:24:13.767545Z",
- "started_at": "2024-06-17T06:25:13.767545Z",
- "finished_at": "2024-06-17T06:32:04.685861Z"
}, - "relationships": {
- "children": {
- "data": [ ]
}
}, - "links": {
- "parent": "/api/projects/opc/workflows/zxxgc/runs/862567e0-069e-4305-8911-a065ecfd8bea/steps/c732b4d3-11c3-4320-8fa1-da256e2abb03",
- "workflow_run": "/api/projects/opc/workflows/zxxgc/runs/862567e0-069e-4305-8911-a065ecfd8bea",
- "self": "/api/projects/opc/workflows/zxxgc/runs/862567e0-069e-4305-8911-a065ecfd8bea/steps/c5ff90e5-99cc-4ed1-8250-a2f558996020"
}
}
}
Approve a workflow step that requires approval. To continue a workflow step that does need approval see the continue workflow step API endpoint
project_code required | string Example: opc project code |
workflow_code required | string Example: fn5ae workflow code |
run_id required | string Example: d4e814ef-c950-4070-ac4a-40d0cf3366a3 workflow run id |
step_id required | string Example: cb4f24e9-9f26-47d2-8850-63448f9b8853 workflow step id |
object |
{- "data": {
- "attributes": {
- "message": "Ok to proceed."
}
}
}
{- "data": {
- "id": "454a839f-634a-477c-a50f-0d942983eeed",
- "type": "workflow_step",
- "attributes": {
- "approved_by": [
- {
- "username": "palma",
- "message": null
}
], - "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": "an-ldap-group",
- "name": "Approval",
- "lock_version": 1,
- "created_by": "elois",
- "status_code": "approved",
- "created_at": "2024-06-17T06:23:39.227763Z",
- "started_at": "2024-06-17T06:24:39.227763Z",
- "finished_at": "2024-06-17T06:32:06.805606Z"
}, - "relationships": {
- "children": {
- "data": [ ]
}
}, - "links": {
- "parent": "/api/projects/opc/workflows/uvjd3/runs/31286893-9edd-4e17-bee7-eb624b26e881/steps/5a194001-65ed-4c28-ab67-637e33336956",
- "workflow_run": "/api/projects/opc/workflows/uvjd3/runs/31286893-9edd-4e17-bee7-eb624b26e881",
- "self": "/api/projects/opc/workflows/uvjd3/runs/31286893-9edd-4e17-bee7-eb624b26e881/steps/454a839f-634a-477c-a50f-0d942983eeed"
}
}
}
Reject a workflow step that requires approval.
project_code required | string Example: opc project code |
workflow_code required | string Example: fn5ae workflow code |
run_id required | string Example: d4e814ef-c950-4070-ac4a-40d0cf3366a3 workflow run id |
step_id required | string Example: cb4f24e9-9f26-47d2-8850-63448f9b8853 workflow step id |
object |
{- "data": {
- "attributes": {
- "message": "Ok to proceed."
}
}
}
{- "data": {
- "id": "b9927c41-b9d6-4e3e-8b99-fd1c71620ca4",
- "type": "workflow_step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [
- {
- "username": "kelsey.botsford",
- "message": null
}
], - "continued_by": [ ],
- "requires_approval_from": "an-ldap-group",
- "name": "Approval",
- "lock_version": 1,
- "created_by": "lucas.luettgen",
- "status_code": "rejected",
- "created_at": "2024-06-17T06:21:48.062854Z",
- "started_at": "2024-06-17T06:22:48.062854Z",
- "finished_at": "2024-06-17T06:32:09.984557Z"
}, - "relationships": {
- "children": {
- "data": [ ]
}
}, - "links": {
- "parent": "/api/projects/opc/workflows/hpz9x/runs/9607af18-b6e9-42ed-912d-775db898fab2/steps/e5d2a0e5-e61a-4347-b75b-aaeb5a9606cb",
- "workflow_run": "/api/projects/opc/workflows/hpz9x/runs/9607af18-b6e9-42ed-912d-775db898fab2",
- "self": "/api/projects/opc/workflows/hpz9x/runs/9607af18-b6e9-42ed-912d-775db898fab2/steps/b9927c41-b9d6-4e3e-8b99-fd1c71620ca4"
}
}
}
Endpoints to interact with events.
Lists all events.
filter[<query/sort filter>]= | |
limit | integer [ 1 .. 1000 ] Default: 10 Example: limit=50 Limit the number of events returned |
{- "data": [
- {
- "id": "80e527be-5009-4e1e-9c55-20387297edcc",
- "type": "event",
- "attributes": {
- "nested": {
- "key": "nested value"
}, - "any_key": "with a value",
- "another_key": "with a different value",
- "username": "salvatore",
- "system": false,
- "type": "my custom event",
- "created_at": "2024-06-17T06:31:25.289061Z"
}, - "relationships": {
- "source": {
- "links": {
- "source": "/api/projects/opc"
}, - "data": {
- "id": "e15c65b0-787f-456f-ad8d-dd54304dbd8b",
- "type": "project"
}
}
}, - "links": {
- "self": "/api/events/80e527be-5009-4e1e-9c55-20387297edcc"
}
}
]
}
Creates an event.
required | object |
{- "data": {
- "attributes": {
- "type": "custom event",
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}
}
}
{- "data": {
- "id": "d825c1e9-10ab-4f03-b83c-bfb696271538",
- "type": "event",
- "attributes": {
- "some": "event data",
- "username": "joycelyn.mcglynn",
- "system": false,
- "type": "my event",
- "created_at": "2024-06-17T06:31:25.437328Z"
}, - "relationships": {
- "source": {
- "links": {
- "source": null
}
}
}, - "links": {
- "self": "/api/events/d825c1e9-10ab-4f03-b83c-bfb696271538"
}
}
}
Shows an event.
event_id required | string Example: 043c07fa-b939-4654-9d1f-f195d2606864 event id |
{- "data": {
- "id": "756b0d1d-bfdd-4d29-8995-7571d6c53535",
- "type": "event",
- "attributes": {
- "nested": {
- "key": "nested value"
}, - "any_key": "with a value",
- "another_key": "with a different value",
- "username": "ai_simonis",
- "system": false,
- "type": "my custom event",
- "created_at": "2024-06-17T06:31:25.734880Z"
}, - "relationships": {
- "source": {
- "links": {
- "source": "/api/projects/opc"
}, - "data": {
- "id": "b2161cfa-e17f-4d28-b051-6f9c8d9d57a0",
- "type": "project"
}
}
}, - "links": {
- "self": "/api/events/756b0d1d-bfdd-4d29-8995-7571d6c53535"
}
}
}
Endpoints to interact with settings.
Shows the current settings.
settings_id required | string Example: 37ba6efc-1488-4c84-b23e-1c20992a3594 settings id |
{- "data": {
- "id": "e7f5eb38-e79c-46eb-9ae8-12dc54584ba6",
- "type": "settings",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5
}, - "version": 1,
- "created_at": "2024-06-17T06:31:37.175723Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/settings/e7f5eb38-e79c-46eb-9ae8-12dc54584ba6",
- "current_version": "/api/settings/e7f5eb38-e79c-46eb-9ae8-12dc54584ba6/versions/1",
- "versions": "/api/settings/e7f5eb38-e79c-46eb-9ae8-12dc54584ba6/versions"
}
}
}
Updates a settings JSON if the included version matches the current settings version.
id_to_update required | string Example: 37ba6efc-1488-4c84-b23e-1c20992a3594 settings id |
required | object |
{- "data": {
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5,
}, - "version": 1
}
}
}
{- "data": {
- "id": "41cecf79-5200-4fc0-800e-e52389124323",
- "type": "settings",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5,
}, - "version": 2,
- "created_at": "2024-06-17T06:31:37.422058Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/settings/41cecf79-5200-4fc0-800e-e52389124323",
- "current_version": "/api/settings/41cecf79-5200-4fc0-800e-e52389124323/versions/2",
- "versions": "/api/settings/41cecf79-5200-4fc0-800e-e52389124323/versions"
}
}
}
Updates a settings JSON, without any version checking (always updates).
id_to_set required | string Example: 37ba6efc-1488-4c84-b23e-1c20992a3594 settings id |
required | object |
{- "data": {
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5,
}
}
}
}
{- "data": {
- "id": "27360cf5-cd9f-4ddf-a1ea-191c39933db8",
- "type": "settings",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5,
}, - "version": 2,
- "created_at": "2024-06-17T06:31:37.883309Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/settings/27360cf5-cd9f-4ddf-a1ea-191c39933db8",
- "current_version": "/api/settings/27360cf5-cd9f-4ddf-a1ea-191c39933db8/versions/2",
- "versions": "/api/settings/27360cf5-cd9f-4ddf-a1ea-191c39933db8/versions"
}
}
}
Endpoints to interact with the version history for settings.
Lists all versions of an OpsChain settings.
settings_id required | string Example: 37ba6efc-1488-4c84-b23e-1c20992a3594 settings id |
{- "data": [
- {
- "id": "ab7bbdb3-8128-454b-8127-d3953eac193f",
- "type": "settings_version",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5
}, - "version": 1,
- "created_at": "2024-06-17T06:31:38.263980Z"
}, - "relationships": {
- "settings": {
- "data": {
- "id": "b8ba1605-8b04-4984-a2fb-671e6be5027c",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/b8ba1605-8b04-4984-a2fb-671e6be5027c"
}
}
}, - "links": {
- "versions": "/api/settings/b8ba1605-8b04-4984-a2fb-671e6be5027c/versions",
- "owner": "/api/projects/opc",
- "self": "/api/settings/b8ba1605-8b04-4984-a2fb-671e6be5027c/versions/1"
}
}
]
}
Shows the settings values for this settings version.
settings_id required | string Example: 37ba6efc-1488-4c84-b23e-1c20992a3594 settings id |
version_number required | integer Example: 1 version number |
{- "data": {
- "id": "01605d69-f2af-40c2-8374-e1783d09bcf9",
- "type": "settings_version",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5
}, - "version": 1,
- "created_at": "2024-06-17T06:31:38.505041Z"
}, - "relationships": {
- "settings": {
- "data": {
- "id": "dae41788-38d3-45e2-884f-a87d51d55d4b",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/dae41788-38d3-45e2-884f-a87d51d55d4b"
}
}
}, - "links": {
- "versions": "/api/settings/dae41788-38d3-45e2-884f-a87d51d55d4b/versions",
- "owner": "/api/projects/opc",
- "self": "/api/settings/dae41788-38d3-45e2-884f-a87d51d55d4b/versions/1"
}
}
}