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": "6d65748b-7bb6-4423-ac5e-25408c2408f9",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "d74be3db-055c-4ca8-9a75-ba3598affbe2",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/d74be3db-055c-4ca8-9a75-ba3598affbe2"
}
}, - "parents": {
- "data": [ ]
}, - "settings": {
- "data": {
- "id": "18d73c02-b1cc-448d-8d5b-93ca7522f18a",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/18d73c02-b1cc-448d-8d5b-93ca7522f18a"
}
}, - "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "git_remotes": {
- "read": true,
- "update": true
}, - "templates": {
- "read": true,
- "update": true
}, - "workflows": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "workflow_runs": {
- "read": true,
- "execute": true
}, - "environments": {
- "read": true,
- "update": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}
], - "meta": {
- "authorisations": {
- "update": true
}
}
}
Creates a project.
required | object |
{- "data": {
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "project_type": "Enterprise"
}
}
}
{- "data": {
- "id": "a68c6328-21f2-40ce-85dd-ad469ea85707",
- "type": "project",
- "attributes": {
- "code": "5pdqe",
- "name": "ut251",
- "description": "Est ut corrupti itaque.",
- "archived": false,
- "project_type": "Standard"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "8ca0247f-edf6-4ac8-9093-c6d029b6aee1",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/8ca0247f-edf6-4ac8-9093-c6d029b6aee1"
}
}, - "parents": {
- "data": [ ]
}, - "settings": {
- "data": {
- "id": "61c61d92-9473-4736-a2e0-af8c0dde81a8",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/61c61d92-9473-4736-a2e0-af8c0dde81a8"
}
}, - "children": {
- "data": [ ]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/5pdqe",
- "bookmarks": "/api/projects/5pdqe/bookmarks",
- "git_remotes": "/api/projects/5pdqe/git_remotes",
- "environments": "/api/projects/5pdqe/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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "git_remotes": {
- "read": true,
- "update": true
}, - "environments": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}
}
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": "7fdf716c-2b0a-4e4a-bb75-27d958cbce04",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "22d93dc5-61f1-4c5a-ad3d-dbcd9215b8a3",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/22d93dc5-61f1-4c5a-ad3d-dbcd9215b8a3"
}
}, - "parents": {
- "data": [ ]
}, - "settings": {
- "data": {
- "id": "6f127a96-8326-449b-8960-2fde71c630c8",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/6f127a96-8326-449b-8960-2fde71c630c8"
}
}, - "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "git_remotes": {
- "read": true,
- "update": true
}, - "templates": {
- "read": true,
- "update": true
}, - "workflows": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "workflow_runs": {
- "read": true,
- "execute": true
}, - "environments": {
- "read": true,
- "update": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}, - "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": "e190f9bb-cda8-4d24-a480-cc22925eca37",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "eligendi260",
- "description": "Facilis ipsum non et.",
- "archived": true,
- "project_type": "Standard"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "1041c613-7a25-4b95-ab9d-4f145dec3b90",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/1041c613-7a25-4b95-ab9d-4f145dec3b90"
}
}, - "parents": {
- "data": [ ]
}, - "settings": {
- "data": {
- "id": "72e71c4d-bd2e-467c-9ce1-11a30beb9908",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/72e71c4d-bd2e-467c-9ce1-11a30beb9908"
}
}, - "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "git_remotes": {
- "read": true,
- "update": true
}, - "environments": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}
}
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": "cc738fe4-7864-4067-b54d-a3d586a4aa74",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "85940948-0ed8-4fe0-a416-500b64919185",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/85940948-0ed8-4fe0-a416-500b64919185"
}
}, - "parents": {
- "data": [
- {
- "id": "23609039-a110-4ffe-941f-57c3125f2540",
- "type": "project"
}
]
}, - "settings": {
- "data": {
- "id": "2b01b00c-ed5b-4bba-bd8e-9ba102f91955",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/2b01b00c-ed5b-4bba-bd8e-9ba102f91955"
}
}, - "project": {
- "data": {
- "id": "23609039-a110-4ffe-941f-57c3125f2540",
- "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}
]
}
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": "2723a13d-1c63-4d97-b946-1da53ac545a2",
- "type": "environment",
- "attributes": {
- "code": "bb3mh",
- "name": "omnis225",
- "description": "Aliquid iusto ea ut.",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "a78c7ec8-ea0a-4624-a819-af5da85d1fd6",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/a78c7ec8-ea0a-4624-a819-af5da85d1fd6"
}
}, - "parents": {
- "data": [
- {
- "id": "3b0175d5-e632-4132-9a39-704d0780f794",
- "type": "project"
}
]
}, - "settings": {
- "data": {
- "id": "0a45d13e-41bd-44f4-86c3-846a7fb2a89f",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/0a45d13e-41bd-44f4-86c3-846a7fb2a89f"
}
}, - "project": {
- "data": {
- "id": "3b0175d5-e632-4132-9a39-704d0780f794",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "children": {
- "data": [ ]
}, - "bookmarks": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/environments/bb3mh",
- "bookmarks": "/api/projects/opc/environments/bb3mh/bookmarks",
- "changes": "/api/projects/opc/environments/bb3mh/changes",
- "automated_change_rules": "/api/projects/opc/environments/bb3mh/automated_change_rules",
- "parent": "/api/projects/opc",
- "assets": "/api/projects/opc/environments/bb3mh/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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}
}
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": "4ddc8994-7bf4-486d-bd2f-45a817ae1b9b",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "1128667b-6a8f-4932-90fb-94b974541b4a",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/1128667b-6a8f-4932-90fb-94b974541b4a"
}
}, - "parents": {
- "data": [
- {
- "id": "45e8460f-8afb-44be-ab0b-90c09c711b2f",
- "type": "project"
}
]
}, - "settings": {
- "data": {
- "id": "96c1942d-a369-490f-aa97-e05daa3f4298",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/96c1942d-a369-490f-aa97-e05daa3f4298"
}
}, - "project": {
- "data": {
- "id": "45e8460f-8afb-44be-ab0b-90c09c711b2f",
- "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}, - "included": [
- {
- "id": "45e8460f-8afb-44be-ab0b-90c09c711b2f",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "c4d53842-01b4-41ec-b39d-fc89c59339ca",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/c4d53842-01b4-41ec-b39d-fc89c59339ca"
}
}, - "parents": {
- "data": [ ]
}, - "settings": {
- "data": {
- "id": "d36b1a39-2afb-416a-a5f1-9e1655f4a722",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/d36b1a39-2afb-416a-a5f1-9e1655f4a722"
}
}, - "children": {
- "data": [
- {
- "id": "4ddc8994-7bf4-486d-bd2f-45a817ae1b9b",
- "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "git_remotes": {
- "read": true,
- "update": true
}, - "templates": {
- "read": true,
- "update": true
}, - "workflows": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "workflow_runs": {
- "read": true,
- "execute": true
}, - "environments": {
- "read": true,
- "update": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}
]
}
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": "8b2f356c-ce1a-4f96-acaa-c8bcdca5780a",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "dolore235",
- "description": "Ipsum quidem odit eos.",
- "archived": true
}, - "relationships": {
- "properties": {
- "data": {
- "id": "8f40a6b8-0bd5-4f78-a189-05708b0ee35c",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/8f40a6b8-0bd5-4f78-a189-05708b0ee35c"
}
}, - "parents": {
- "data": [
- {
- "id": "a4a665bd-0357-4ccc-9799-04153427e815",
- "type": "project"
}
]
}, - "settings": {
- "data": {
- "id": "2a5a2f70-22cb-4b4c-8c66-1281748c298d",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/2a5a2f70-22cb-4b4c-8c66-1281748c298d"
}
}, - "project": {
- "data": {
- "id": "a4a665bd-0357-4ccc-9799-04153427e815",
- "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}
}
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": "bc408c7e-b097-4d1d-90c9-c447590976aa",
- "type": "asset",
- "attributes": {
- "code": "prj_soa",
- "name": "Project asset",
- "description": "Project asset description",
- "archived": false,
- "actions": [
- {
- "name": "bypass",
- "description": "Ut eum dolore totam."
}, - {
- "name": "generate",
- "description": "Excepturi reiciendis laudantium aut."
}, - {
- "name": "provision",
- "description": "Provision resource on existing hardware"
}
], - "mintmodel_valid": true
}, - "relationships": {
- "properties": {
- "data": {
- "id": "9cf88b56-4b26-4f62-95f7-4916bfe7d567",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/9cf88b56-4b26-4f62-95f7-4916bfe7d567"
}
}, - "parents": {
- "data": [
- {
- "id": "d8b29993-fd3d-47a8-a770-a65d7a8a73dc",
- "type": "project"
}
]
}, - "project": {
- "data": {
- "id": "d8b29993-fd3d-47a8-a770-a65d7a8a73dc",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "4394fae8-ed53-48bb-875f-fd4b9021949e",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "bookmarks": {
- "data": [
- {
- "id": "e85a0c85-f9ca-4404-92d0-ecd80e30ecf5",
- "type": "bookmark"
}
]
}, - "template": {
- "data": {
- "id": "30bb9804-0967-443d-b516-3540421a89a4",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}, - "mintmodel_history": {
- "data": [
- {
- "id": "2a544b47-3a7d-417f-a5ae-b90c5ead04f7",
- "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": [ ],
- "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "self": {
- "update": true
}
}
}
}
]
}
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": "95be29f7-48a3-40dd-afae-a28669ff2ac0",
- "type": "asset",
- "attributes": {
- "code": "wwwq6",
- "name": "ab197",
- "description": "Doloribus debitis qui reprehenderit.",
- "archived": false,
- "actions": [
- {
- "name": "hack",
- "description": "Aut cupiditate assumenda autem."
}, - {
- "name": "provision",
- "description": "Provision resource on existing hardware"
}, - {
- "name": "quantify",
- "description": "Quia laboriosam natus non."
}
], - "mintmodel_valid": true
}, - "relationships": {
- "properties": {
- "data": {
- "id": "60629db3-bb31-40c6-9598-150a1607092e",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/60629db3-bb31-40c6-9598-150a1607092e"
}
}, - "parents": {
- "data": [
- {
- "id": "1378a359-e1a1-4dc2-9471-b55c8546e8c9",
- "type": "project"
}
]
}, - "project": {
- "data": {
- "id": "1378a359-e1a1-4dc2-9471-b55c8546e8c9",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "89f1d67b-f72a-4704-a2b3-4ce87005a5b1",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "bookmarks": {
- "data": [ ]
}, - "template": {
- "data": {
- "id": "ece2884e-7ebe-44d4-ba64-0c2d3f3b2138",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}, - "mintmodel_history": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/assets/wwwq6",
- "bookmarks": "/api/projects/opc/assets/wwwq6/bookmarks",
- "changes": "/api/projects/opc/assets/wwwq6/changes",
- "automated_change_rules": "/api/projects/opc/assets/wwwq6/automated_change_rules",
- "converged_properties": "/api/projects/opc/assets/wwwq6/converged_properties",
- "mintmodels": "/api/projects/opc/assets/wwwq6/mintmodels",
- "mintmodel_history": "/api/projects/opc/assets/wwwq6/mintmodel_history",
- "parent": "/api/projects/opc",
- "version_history": "/api/projects/opc/assets/wwwq6/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": [ ],
- "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "self": {
- "update": true
}
}
}
}
}
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": "6b48e53d-cdce-45fa-a1d8-33e037a5dd96",
- "type": "asset",
- "attributes": {
- "code": "prj_soa",
- "name": "Project asset",
- "description": "Project asset description",
- "archived": false,
- "actions": [
- {
- "name": "navigate",
- "description": "Voluptatem accusantium error adipisci."
}, - {
- "name": "provision",
- "description": "Provision resource on existing hardware"
}, - {
- "name": "transmit",
- "description": "Alias officiis omnis eos."
}
], - "mintmodel_valid": true
}, - "relationships": {
- "properties": {
- "data": {
- "id": "db6ed576-031c-4e0d-8bde-aaaad515b99b",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/db6ed576-031c-4e0d-8bde-aaaad515b99b"
}
}, - "parents": {
- "data": [
- {
- "id": "c9e0805f-29a9-472b-a925-858075e13ba3",
- "type": "project"
}
]
}, - "project": {
- "data": {
- "id": "c9e0805f-29a9-472b-a925-858075e13ba3",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "b7dfc212-18d5-4a66-a07d-5430576db9ea",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "bookmarks": {
- "data": [
- {
- "id": "d608744c-c6d9-4b7f-ba92-3a44fd0924c0",
- "type": "bookmark"
}
]
}, - "template": {
- "data": {
- "id": "1adb74d4-a57b-4970-918b-59a9504610d0",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}, - "mintmodel_history": {
- "data": [
- {
- "id": "0fd5b739-d4e3-4ae6-bacb-1f54032d9b6c",
- "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": [ ],
- "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "self": {
- "update": true
}
}
}
}, - "included": [
- {
- "id": "c9e0805f-29a9-472b-a925-858075e13ba3",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "ad8e346b-b044-487b-b3dd-984d525aa89e",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/ad8e346b-b044-487b-b3dd-984d525aa89e"
}
}, - "parents": {
- "data": [ ]
}, - "settings": {
- "data": {
- "id": "24cf2816-0bb3-445d-8456-80afb9fa4796",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/24cf2816-0bb3-445d-8456-80afb9fa4796"
}
}, - "children": {
- "data": [
- {
- "id": "6b48e53d-cdce-45fa-a1d8-33e037a5dd96",
- "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "git_remotes": {
- "read": true,
- "update": true
}, - "templates": {
- "read": true,
- "update": true
}, - "workflows": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "workflow_runs": {
- "read": true,
- "execute": true
}, - "environments": {
- "read": true,
- "update": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}, - {
- "id": "0fd5b739-d4e3-4ae6-bacb-1f54032d9b6c",
- "type": "mintmodel_history",
- "attributes": {
- "created_at": "2025-01-14T06:04:21.086433Z",
- "updated_at": "2025-01-14T06:04:21.086433Z"
}, - "relationships": {
- "parents": {
- "data": [
- {
- "id": "c9e0805f-29a9-472b-a925-858075e13ba3",
- "type": "project"
}, - {
- "id": "6b48e53d-cdce-45fa-a1d8-33e037a5dd96",
- "type": "asset"
}
]
}, - "mintmodel": {
- "data": {
- "id": "2ae445f5-e061-4fa7-ac16-4901e83a9b45",
- "type": "mintmodel"
}, - "links": {
- "related": "/api/projects/opc/assets/prj_soa/mintmodels/2ae445f5-e061-4fa7-ac16-4901e83a9b45"
}
}, - "opschain_changes": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/mintmodel_history/0fd5b739-d4e3-4ae6-bacb-1f54032d9b6c"
}
}, - {
- "id": "d608744c-c6d9-4b7f-ba92-3a44fd0924c0",
- "type": "bookmark",
- "attributes": {
- "description": "SOA administration console",
- "created_by": "eugenia",
- "created_at": "2025-01-14T06:04:21.078206Z",
- "updated_at": "2025-01-14T06:04:21.078206Z"
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/bookmarks/d608744c-c6d9-4b7f-ba92-3a44fd0924c0",
- "parent": "/api/projects/opc/assets/prj_soa"
}
}, - {
- "id": "1adb74d4-a57b-4970-918b-59a9504610d0",
- "type": "template",
- "attributes": {
- "name": "Oracle SOA template",
- "archived": false,
- "disabled": false,
- "created_at": "2025-01-14T06:04:21.026433Z",
- "updated_at": "2025-01-14T06:04:21.026433Z",
- "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": "b7dfc212-18d5-4a66-a07d-5430576db9ea",
- "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": "b7dfc212-18d5-4a66-a07d-5430576db9ea",
- "type": "template_version",
- "attributes": {
- "version": "2023_Q4_2",
- "description": "Added additional configuration options",
- "state": "ready",
- "created_by": "dalila",
- "archived": false,
- "has_mintmodel": true,
- "created_at": "2025-01-14T06:04:21.038132Z",
- "updated_at": "2025-01-14T06:04:21.038132Z",
- "git_rev": "redundant",
- "commit_sha": "bd801f3cc2313b856e5944eeaab62b0a26b5a83a",
- "actions": [
- {
- "name": "navigate",
- "description": "Voluptatem accusantium error adipisci."
}, - {
- "name": "transmit",
- "description": "Alias officiis omnis eos."
}
]
}, - "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": "08a65df2-4b88-41c0-82fb-e06f049ecbdc",
- "type": "asset",
- "attributes": {
- "code": "prj_soa",
- "name": "harum207",
- "description": "Nostrum dolores vel quo.",
- "archived": true,
- "actions": [
- {
- "name": "bypass",
- "description": "Error illo et ut."
}, - {
- "name": "calculate",
- "description": "Dicta cum quaerat autem."
}, - {
- "name": "provision",
- "description": "Provision resource on existing hardware"
}
], - "mintmodel_valid": true
}, - "relationships": {
- "properties": {
- "data": {
- "id": "d03ae88b-77d3-484e-9b79-6f6436fa0c24",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/d03ae88b-77d3-484e-9b79-6f6436fa0c24"
}
}, - "parents": {
- "data": [
- {
- "id": "95d31176-8dcd-4953-bf31-26fec70e81b9",
- "type": "project"
}
]
}, - "project": {
- "data": {
- "id": "95d31176-8dcd-4953-bf31-26fec70e81b9",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "aeb50fcd-a9a2-4203-81c7-806d4c4b1a29",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "bookmarks": {
- "data": [
- {
- "id": "d246a1f6-9e1e-4ede-ae74-c174ab1da306",
- "type": "bookmark"
}
]
}, - "template": {
- "data": {
- "id": "3d3d768f-b1c1-43ff-b42f-b20661d8f859",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}, - "mintmodel_history": {
- "data": [
- {
- "id": "78b77205-89c7-4d0e-a6bf-9a646fe4d5b1",
- "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": [ ],
- "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "self": {
- "update": true
}
}
}
}
}
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": "affd212f-fd02-4f72-abb2-3b5a80fb70af",
- "type": "properties"
}, - {
- "id": "c81f3c79-0bc4-46ba-92a4-4298355c67cf",
- "type": "properties"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/converged_properties"
}
}, - "included": [
- {
- "id": "affd212f-fd02-4f72-abb2-3b5a80fb70af",
- "type": "properties",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1,
- "created_at": "2025-01-14T06:04:22.379101Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/properties/affd212f-fd02-4f72-abb2-3b5a80fb70af",
- "current_version": "/api/properties/affd212f-fd02-4f72-abb2-3b5a80fb70af/versions/1",
- "versions": "/api/properties/affd212f-fd02-4f72-abb2-3b5a80fb70af/versions"
}
}, - {
- "id": "c81f3c79-0bc4-46ba-92a4-4298355c67cf",
- "type": "properties",
- "attributes": {
- "data": { },
- "version": 1,
- "created_at": "2025-01-14T06:04:22.429788Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc/assets/prj_soa"
}
}
}, - "links": {
- "self": "/api/properties/c81f3c79-0bc4-46ba-92a4-4298355c67cf",
- "current_version": "/api/properties/c81f3c79-0bc4-46ba-92a4-4298355c67cf/versions/1",
- "versions": "/api/properties/c81f3c79-0bc4-46ba-92a4-4298355c67cf/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": "bd972791-50ae-4160-8589-6dec41f16975",
- "type": "template_version_history",
- "attributes": {
- "active_from": "2025-01-14T06:04:32.813276Z",
- "active_to": null
}, - "relationships": {
- "owner": {
- "data": {
- "id": "8aa7e575-1888-4a24-ab9c-75f9ef2cc476",
- "type": "asset"
}
}, - "template_version": {
- "data": {
- "id": "0989f8b2-c6ec-42ca-901a-c55f621a379c",
- "type": "template_version"
}
}
}, - "links": {
- "template_version": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "self": "/api/projects/opc/assets/prj_soa/version_history/bd972791-50ae-4160-8589-6dec41f16975",
- "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: b96c6cc5-e316-44b1-be1d-67ac585734e1 version history id |
{- "data": {
- "id": "b094b39f-67c1-493c-8feb-5ec8f0a486f4",
- "type": "template_version_history",
- "attributes": {
- "active_from": "2025-01-14T06:04:33.015702Z",
- "active_to": null
}, - "relationships": {
- "owner": {
- "data": {
- "id": "f2d63f69-cd96-4187-a994-00d765aa83e4",
- "type": "asset"
}
}, - "template_version": {
- "data": {
- "id": "c390b3a8-9160-4cd1-bf1f-4412c1b14c4c",
- "type": "template_version"
}
}
}, - "links": {
- "template_version": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "self": "/api/projects/opc/assets/prj_soa/version_history/b094b39f-67c1-493c-8feb-5ec8f0a486f4",
- "asset": "/api/projects/opc/assets/prj_soa"
}
}, - "included": [
- {
- "id": "f2d63f69-cd96-4187-a994-00d765aa83e4",
- "type": "asset",
- "attributes": {
- "code": "prj_soa",
- "name": "Project asset",
- "description": "Project asset description",
- "archived": false,
- "actions": [
- {
- "name": "generate",
- "description": "Quidem doloribus molestias minus."
}, - {
- "name": "index",
- "description": "Nulla fugit alias consequuntur."
}, - {
- "name": "provision",
- "description": "Provision resource on existing hardware"
}
], - "mintmodel_valid": true
}, - "relationships": {
- "properties": {
- "data": {
- "id": "8d1b69c8-e181-4e0e-a675-757ee08fa392",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/8d1b69c8-e181-4e0e-a675-757ee08fa392"
}
}, - "parents": {
- "data": [
- {
- "id": "efd9d85e-19b6-4f7b-b25b-30116803a4bc",
- "type": "project"
}
]
}, - "project": {
- "data": {
- "id": "efd9d85e-19b6-4f7b-b25b-30116803a4bc",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "c390b3a8-9160-4cd1-bf1f-4412c1b14c4c",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "bookmarks": {
- "data": [
- {
- "id": "cc16749c-2fc5-4ac0-81be-2e2fd5eb2456",
- "type": "bookmark"
}
]
}, - "template": {
- "data": {
- "id": "b818af5d-c2f3-45b3-af72-4adc754f253e",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}, - "mintmodel_history": {
- "data": [
- {
- "id": "88b4b5fc-42f1-41aa-baef-7170c7468b3e",
- "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": [ ],
- "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "self": {
- "update": true
}
}
}
}, - {
- "id": "c390b3a8-9160-4cd1-bf1f-4412c1b14c4c",
- "type": "template_version",
- "attributes": {
- "version": "2023_Q4_2",
- "description": "Added additional configuration options",
- "state": "ready",
- "created_by": "garrett.ankunding",
- "archived": false,
- "has_mintmodel": true,
- "created_at": "2025-01-14T06:04:32.972428Z",
- "updated_at": "2025-01-14T06:04:32.972428Z",
- "git_rev": "wireless",
- "commit_sha": "768318a1201c495c1d8ddd40782cb1c495de1583",
- "actions": [
- {
- "name": "parse",
- "description": "Qui est dolores et."
}, - {
- "name": "navigate",
- "description": "Dolore nesciunt qui totam."
}
]
}, - "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": "b488185b-a5a1-4d27-884e-20613704aa6b",
- "type": "template_version",
- "attributes": {
- "version": "2023_Q4_2",
- "description": "Added additional configuration options",
- "state": "ready",
- "created_by": "oren.stiedemann",
- "archived": false,
- "has_mintmodel": true,
- "created_at": "2025-01-14T06:04:33.184573Z",
- "updated_at": "2025-01-14T06:04:33.184573Z",
- "git_rev": "auxiliary",
- "commit_sha": "07b728ee438ad60fbeceb5fb07828f644c749471",
- "actions": [
- {
- "name": "generate",
- "description": "Perferendis nesciunt in ea."
}, - {
- "name": "generate",
- "description": "Quaerat quia fugiat autem."
}
]
}, - "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": "digital",
- "archived": false
}
}
}
{- "data": {
- "id": "3cf8101d-cd35-4cb9-8e4d-3ef53b6a726f",
- "type": "template_version",
- "attributes": {
- "version": "2023_Q4_2",
- "description": "Sint reprehenderit rerum ipsam eum nihil nostrum minima consequatur voluptatem",
- "state": "initializing",
- "created_by": "alvin_schinner",
- "archived": false,
- "has_mintmodel": false,
- "created_at": "2025-01-14T06:04:33.555107Z",
- "updated_at": "2025-01-14T06:04:33.555107Z",
- "git_rev": "multi-byte",
- "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": "8ca83a4b-f26d-4dc5-b81d-4adf4da57b00",
- "type": "template_version",
- "attributes": {
- "version": "2023_Q4_2",
- "description": "Added additional configuration options",
- "state": "ready",
- "created_by": "keisha.auer",
- "archived": false,
- "has_mintmodel": true,
- "created_at": "2025-01-14T06:04:34.092828Z",
- "updated_at": "2025-01-14T06:04:34.092828Z",
- "git_rev": "open-source",
- "commit_sha": "bd6176b1f70747e676b3e7e302028e805f8ac716",
- "actions": [
- {
- "name": "quantify",
- "description": "Quasi blanditiis dolores unde."
}, - {
- "name": "calculate",
- "description": "Tempore enim vel temporibus."
}
]
}, - "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": "2265aa9e-96c6-406f-8596-71addd0856bb",
- "type": "template",
- "attributes": {
- "name": "charity",
- "archived": false,
- "disabled": false,
- "created_at": "2025-01-14T06:04:34.384534Z",
- "updated_at": "2025-01-14T06:04:34.384534Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}",
- "code": "au7ne",
- "description": "Mollitia voluptas sunt repudiandae."
}, - "relationships": {
- "template_versions": {
- "data": [ ],
- "links": {
- "related": "/api/projects/opc/templates/au7ne/versions"
}
}
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/templates/au7ne",
- "template_versions": "/api/projects/opc/templates/au7ne/versions"
}, - "meta": null
}
}
Lists all templates for a project.
project_code required | string Example: opc project code |
{- "data": [
- {
- "id": "3fc0ffb3-0695-44f2-ab9c-b284f43e604c",
- "type": "template",
- "attributes": {
- "name": "Oracle SOA template",
- "archived": false,
- "disabled": false,
- "created_at": "2025-01-14T06:04:34.851804Z",
- "updated_at": "2025-01-14T06:04:34.851804Z",
- "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": "fad11cb4-2dac-46f0-9a1a-d147b12deffd",
- "type": "template",
- "attributes": {
- "name": "Oracle SOA template",
- "archived": false,
- "disabled": false,
- "created_at": "2025-01-14T06:04:35.057971Z",
- "updated_at": "2025-01-14T06:04:35.057971Z",
- "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": "883c7067-d03a-4cd8-a401-42cba3957e34",
- "type": "template",
- "attributes": {
- "name": "Oracle SOA template",
- "archived": true,
- "disabled": false,
- "created_at": "2025-01-14T06:04:35.287869Z",
- "updated_at": "2025-01-14T06:04:35.323447Z",
- "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": "1ebb7752-5e82-42c0-aac8-ba66dbab9819",
- "type": "template",
- "attributes": {
- "name": "Oracle SOA template",
- "archived": false,
- "disabled": false,
- "created_at": "2025-01-14T06:04:35.669084Z",
- "updated_at": "2025-01-14T06:04:35.710811Z",
- "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": "9a55d7ec-902a-4dc3-97b2-94cc159eec64",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": false,
- "disabled": false,
- "created_at": "2025-01-14T06:04:14.603847Z",
- "updated_at": "2025-01-14T06:04:14.603847Z",
- "user": null,
- "password": null,
- "ssh_key_data": null
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/9a55d7ec-902a-4dc3-97b2-94cc159eec64"
}, - "meta": null
}
}
Lists all Git remotes for a project.
project_code required | string Example: opc project code |
{- "data": [
- {
- "id": "e3080de6-5902-44a4-a1fa-e4e65a0986b3",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": false,
- "disabled": false,
- "created_at": "2025-01-14T06:04:15.076060Z",
- "updated_at": "2025-01-14T06:04:15.076060Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}"
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/e3080de6-5902-44a4-a1fa-e4e65a0986b3"
}, - "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: 5451edc0-34f8-476b-a78b-b3e44118fe9a remote id |
{- "data": {
- "id": "4b2c4cc0-adf5-43ba-8f62-fb81e5b2ee75",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": false,
- "disabled": false,
- "created_at": "2025-01-14T06:04:15.331095Z",
- "updated_at": "2025-01-14T06:04:15.331095Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}"
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/4b2c4cc0-adf5-43ba-8f62-fb81e5b2ee75"
}, - "meta": null
}
}
Archives/unarchives a project Git remote.
project_code required | string Example: opc project code |
id_to_archive required | string Example: 5451edc0-34f8-476b-a78b-b3e44118fe9a remote id |
required | object |
{- "data": {
- "attributes": {
- "archived": true
}
}
}
{- "data": {
- "id": "761ef20c-3d07-485b-9616-5fe4b492a20e",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": true,
- "disabled": false,
- "created_at": "2025-01-14T06:04:15.794268Z",
- "updated_at": "2025-01-14T06:04:16.056062Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}"
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/761ef20c-3d07-485b-9616-5fe4b492a20e"
}, - "meta": null
}
}
Update the credentials of a project Git remote.
project_code required | string Example: opc project code |
id_to_update required | string Example: 5451edc0-34f8-476b-a78b-b3e44118fe9a 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": "9c536786-b3f1-4d50-8c1e-f4cb942e2860",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": false,
- "disabled": false,
- "created_at": "2025-01-14T06:04:16.384298Z",
- "updated_at": "2025-01-14T06:04:16.413860Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}"
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/9c536786-b3f1-4d50-8c1e-f4cb942e2860"
}, - "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: 5451edc0-34f8-476b-a78b-b3e44118fe9a remote id |
{- "data": {
- "id": "82829675-5360-4dea-b014-ddc43a73ab0e",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": true,
- "disabled": false,
- "created_at": "2025-01-14T06:04:16.861265Z",
- "updated_at": "2025-01-14T06:04:17.007776Z",
- "user": null,
- "password": null,
- "ssh_key_data": null
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/82829675-5360-4dea-b014-ddc43a73ab0e"
}, - "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": "trenton"
}
}
}
{- "data": {
- "id": "6896342e-e536-4d70-912c-3cdc4c10278e",
- "type": "bookmark",
- "attributes": {
- "description": "Adipisci facilis laudantium et.",
- "created_by": "ja",
- "created_at": "2025-01-14T06:04:09.922102Z",
- "updated_at": "2025-01-14T06:04:09.922102Z"
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/bookmarks/6896342e-e536-4d70-912c-3cdc4c10278e",
- "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": "1207ee8a-97f0-424b-8846-ccffd369929b",
- "type": "bookmark",
- "attributes": {
- "description": "SOA administration console",
- "created_by": "argelia",
- "created_at": "2025-01-14T06:04:10.438585Z",
- "updated_at": "2025-01-14T06:04:10.438585Z"
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/bookmarks/1207ee8a-97f0-424b-8846-ccffd369929b",
- "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: 7bde92c4-3522-40be-a5e2-f55cf64a7135 bookmark id |
{- "data": {
- "id": "17414e1f-4bcd-4716-8bf3-6c2c6d64c757",
- "type": "bookmark",
- "attributes": {
- "description": "SOA administration console",
- "created_by": "raphael",
- "created_at": "2025-01-14T06:04:10.611582Z",
- "updated_at": "2025-01-14T06:04:10.611582Z"
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/bookmarks/17414e1f-4bcd-4716-8bf3-6c2c6d64c757",
- "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: 7bde92c4-3522-40be-a5e2-f55cf64a7135 bookmark id |
required | object |
{- "data": {
- "attributes": {
- "description": "Updated server console path"
}
}
}
{- "data": {
- "id": "ab08a8e8-8861-41c9-b57f-8a6a9ae15d5d",
- "type": "bookmark",
- "attributes": {
- "description": "Updated server console path",
- "created_by": "deon.crona",
- "created_at": "2025-01-14T06:04:10.984031Z",
- "updated_at": "2025-01-14T06:04:11.015793Z"
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/bookmarks/ab08a8e8-8861-41c9-b57f-8a6a9ae15d5d",
- "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: 7bde92c4-3522-40be-a5e2-f55cf64a7135 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": "f2530649-e5fb-46a6-a6fd-57899095c848",
- "type": "mintmodel_history",
- "attributes": {
- "created_at": "2025-01-14T06:04:18.612478Z",
- "updated_at": "2025-01-14T06:04:18.612478Z"
}, - "relationships": {
- "parents": {
- "data": [
- {
- "id": "bd638fdb-35f1-4629-9d4c-459901b7820d",
- "type": "project"
}, - {
- "id": "2dcbfc07-cc9a-421e-87a5-c9b7e436ffc6",
- "type": "asset"
}
]
}, - "mintmodel": {
- "data": {
- "id": "76e6509a-22e6-461a-9a0d-f4f172f5a6c6",
- "type": "mintmodel"
}, - "links": {
- "related": "/api/projects/opc/assets/prj_soa/mintmodels/76e6509a-22e6-461a-9a0d-f4f172f5a6c6"
}
}, - "opschain_changes": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/mintmodel_history/f2530649-e5fb-46a6-a6fd-57899095c848"
}
}
]
}
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: b7b08877-e84b-4785-bbc1-5ff4780933b6 MintModel history id |
{- "data": {
- "id": "dea2fe8d-feaa-444a-89df-795115fd8691",
- "type": "mintmodel_history",
- "attributes": {
- "created_at": "2025-01-14T06:04:18.831067Z",
- "updated_at": "2025-01-14T06:04:18.831067Z"
}, - "relationships": {
- "parents": {
- "data": [
- {
- "id": "8e1b6cf1-7ff1-418a-9a5c-112f6782137a",
- "type": "project"
}, - {
- "id": "bff58b39-8eab-4933-9550-2e458a2a84b7",
- "type": "asset"
}
]
}, - "mintmodel": {
- "data": {
- "id": "c0ed228e-049b-4deb-8dc7-5ee49b8a2e33",
- "type": "mintmodel"
}, - "links": {
- "related": "/api/projects/opc/assets/prj_soa/mintmodels/c0ed228e-049b-4deb-8dc7-5ee49b8a2e33"
}
}, - "opschain_changes": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/mintmodel_history/dea2fe8d-feaa-444a-89df-795115fd8691"
}
}, - "included": [
- {
- "id": "c0ed228e-049b-4deb-8dc7-5ee49b8a2e33",
- "type": "mintmodel",
- "attributes": {
- "data": {
- "complex": {
- "json": {
- "mintmodel": "data"
}
}
}, - "sha256": "77526a9ef926aee8c98f90ec845f5bd12f58cd7afb29fb2db5ef8f95deec44f8",
- "created_at": "2025-01-14T06:04:18.824147Z",
- "updated_at": "2025-01-14T06:04:18.824147Z"
}, - "relationships": {
- "mintmodel_history": {
- "data": [
- {
- "id": "dea2fe8d-feaa-444a-89df-795115fd8691",
- "type": "mintmodel_history"
}, - {
- "id": "d15db567-2721-4fdd-a1f3-50ddf705ffb7",
- "type": "mintmodel_history"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/mintmodels/c0ed228e-049b-4deb-8dc7-5ee49b8a2e33",
- "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": "691fb605-d7a8-404d-9a22-7c3d25f6e07d",
- "type": "mintmodel",
- "attributes": {
- "data": {
- "complex": {
- "json": {
- "mintmodel": "data"
}
}
}, - "sha256": "77526a9ef926aee8c98f90ec845f5bd12f58cd7afb29fb2db5ef8f95deec44f8",
- "created_at": "2025-01-14T06:04:18.955630Z",
- "updated_at": "2025-01-14T06:04:18.955630Z"
}, - "relationships": {
- "mintmodel_history": {
- "data": [
- {
- "id": "04574c1b-7b60-4ee3-b85c-7be415ba6cfe",
- "type": "mintmodel_history"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/mintmodels/691fb605-d7a8-404d-9a22-7c3d25f6e07d",
- "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: 78352260-9fa6-4439-9b20-9da023f5e9fc MintModel id |
{- "data": {
- "id": "935b043a-af5c-4c4a-9e38-c69f534eecca",
- "type": "mintmodel",
- "attributes": {
- "data": {
- "complex": {
- "json": {
- "mintmodel": "data"
}
}
}, - "sha256": "77526a9ef926aee8c98f90ec845f5bd12f58cd7afb29fb2db5ef8f95deec44f8",
- "created_at": "2025-01-14T06:04:19.179495Z",
- "updated_at": "2025-01-14T06:04:19.179495Z"
}, - "relationships": {
- "mintmodel_history": {
- "data": [
- {
- "id": "5acc2b09-461f-44d4-96dc-9b99e57eac36",
- "type": "mintmodel_history"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/mintmodels/935b043a-af5c-4c4a-9e38-c69f534eecca",
- "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": "d8c0a045-4e03-4201-90ab-d8e7b21d9455",
- "type": "mintmodel",
- "attributes": {
- "data": {
- "complex": {
- "json": {
- "mintmodel": "data"
}
}
}, - "sha256": "77526a9ef926aee8c98f90ec845f5bd12f58cd7afb29fb2db5ef8f95deec44f8",
- "created_at": "2025-01-14T06:04:20.101483Z",
- "updated_at": "2025-01-14T06:04:20.101483Z"
}, - "relationships": {
- "mintmodel_history": {
- "data": [
- {
- "id": "325d531f-8bb8-4819-877e-968d1bb0c245",
- "type": "mintmodel_history"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa/mintmodels/d8c0a045-4e03-4201-90ab-d8e7b21d9455",
- "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": "0f9ab739-1bdf-4daf-98f8-d9f195791013",
- "type": "workflow",
- "attributes": {
- "code": "assets",
- "name": "assets workflow",
- "description": "workflow for assets",
- "state": "ready",
- "created_by": "keneth.terry",
- "version_description": "Updated the assets workflow to include a new step",
- "created_at": "2025-01-14T06:04:57.052270Z",
- "steps": [
- {
- "type": "change",
- "name": "run asset action",
- "target": "/projects/opc/assets/prj_soa",
- "action": "run"
}
], - "commit_sha": "eeeff9dbb49e5e8c16c1362e962b063bcb3052ef"
}, - "links": {
- "self": "/api/projects/opc/workflows/assets?sha=eeeff9dbb49e5e8c16c1362e962b063bcb3052ef",
- "latest_version": "/api/projects/opc/workflows/assets",
- "project": "/api/projects/opc",
- "runs": "/api/projects/opc/workflows/assets/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": "assets",
- "description": "workflow for assets",
- "version_description": "Cupiditate eaque vel est.",
- "steps": [
- {
- "type": "change",
- "name": "run asset action",
- "target": "/projects/opc/assets/prj_soa",
- "action": "run"
}
]
}
}
}
{- "data": {
- "id": "9d0cd67f-c0a4-448d-b48b-eab347db73e2",
- "type": "workflow",
- "attributes": {
- "code": "assets",
- "name": "assets workflow",
- "description": "workflow for assets",
- "state": "ready",
- "created_by": "opschain",
- "version_description": "commit message",
- "created_at": "2025-01-14T06:04:57.705788Z",
- "steps": [
- {
- "type": "change",
- "name": "run asset action",
- "target": "/projects/opc/assets/prj_soa",
- "action": "run"
}
], - "commit_sha": "9d00ed25a895fdae93b3f2a48acb854dbe838afa"
}, - "links": {
- "self": "/api/projects/opc/workflows/assets?sha=9d00ed25a895fdae93b3f2a48acb854dbe838afa",
- "latest_version": "/api/projects/opc/workflows/assets",
- "project": "/api/projects/opc",
- "runs": "/api/projects/opc/workflows/assets/runs"
}
}
}
Shows a workflow.
project_code required | string Example: opc project code |
workflow_code required | string Example: db8188fb-1bf0-4df2-ae2c-27f76c1bb04f workflow code |
{- "data": {
- "id": "7175a9f7-aa62-4ca8-80dd-3f76fd133c0b",
- "type": "workflow",
- "attributes": {
- "code": "assets",
- "name": "assets workflow",
- "description": "workflow for assets",
- "state": "ready",
- "created_by": "yi",
- "version_description": "Updated the assets workflow to include a new step",
- "created_at": "2025-01-14T06:04:59.511740Z",
- "steps": [
- {
- "type": "change",
- "name": "run asset action",
- "target": "/projects/opc/assets/prj_soa",
- "action": "run"
}
], - "commit_sha": "52bb2e6d1ae3124a23d4be4de423cc2c26fa12e3"
}, - "links": {
- "self": "/api/projects/opc/workflows/assets?sha=52bb2e6d1ae3124a23d4be4de423cc2c26fa12e3",
- "latest_version": "/api/projects/opc/workflows/assets",
- "project": "/api/projects/opc",
- "runs": "/api/projects/opc/workflows/assets/runs"
}
}
}
Endpoints to interact with properties.
Shows the current properties JSON and its version.
properties_id required | string Example: 215cbadb-3163-400b-9ae0-c8bd7d999719 properties id |
{- "data": {
- "id": "3f99e75d-228c-45d6-97b8-8098e975ab82",
- "type": "properties",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1,
- "created_at": "2025-01-14T06:04:25.643222Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/properties/3f99e75d-228c-45d6-97b8-8098e975ab82",
- "current_version": "/api/properties/3f99e75d-228c-45d6-97b8-8098e975ab82/versions/1",
- "versions": "/api/properties/3f99e75d-228c-45d6-97b8-8098e975ab82/versions"
}
}
}
Updates a properties JSON if the included version matches the current properties version.
id_to_update required | string Example: 215cbadb-3163-400b-9ae0-c8bd7d999719 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": "bbc9742c-4c87-4a26-85cc-06ad5f66f9ff",
- "type": "properties",
- "attributes": {
- "data": {
- "any_key": "with updated value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 2,
- "created_at": "2025-01-14T06:04:25.892269Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/properties/bbc9742c-4c87-4a26-85cc-06ad5f66f9ff",
- "current_version": "/api/properties/bbc9742c-4c87-4a26-85cc-06ad5f66f9ff/versions/2",
- "versions": "/api/properties/bbc9742c-4c87-4a26-85cc-06ad5f66f9ff/versions"
}
}
}
Updates a properties JSON, without any version checking (always updates).
id_to_set required | string Example: 215cbadb-3163-400b-9ae0-c8bd7d999719 properties id |
required | object |
{- "data": {
- "attributes": {
- "data": {
- "any_key": "with updated value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}
}
}
}
{- "data": {
- "id": "cb31790b-5ae8-45cf-8984-54e1e4afd6b0",
- "type": "properties",
- "attributes": {
- "data": {
- "any_key": "with updated value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 2,
- "created_at": "2025-01-14T06:04:26.394252Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/properties/cb31790b-5ae8-45cf-8984-54e1e4afd6b0",
- "current_version": "/api/properties/cb31790b-5ae8-45cf-8984-54e1e4afd6b0/versions/2",
- "versions": "/api/properties/cb31790b-5ae8-45cf-8984-54e1e4afd6b0/versions"
}
}
}
Endpoints to interact with the version history for properties.
Lists all versions of an OpsChain properties.
properties_id required | string Example: 215cbadb-3163-400b-9ae0-c8bd7d999719 properties id |
{- "data": [
- {
- "id": "34380fd2-077e-4d0d-8e27-7b476c06951f",
- "type": "properties_version",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1,
- "created_at": "2025-01-14T06:04:26.754823Z",
- "owner_type": "project"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "1788acf5-6c52-4026-b5aa-33b40233dd2a",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/1788acf5-6c52-4026-b5aa-33b40233dd2a"
}
}
}, - "links": {
- "versions": "/api/properties/1788acf5-6c52-4026-b5aa-33b40233dd2a/versions",
- "owner": "/api/projects/opc",
- "self": "/api/properties/1788acf5-6c52-4026-b5aa-33b40233dd2a/versions/1"
}
}
]
}
Shows the properties JSON for this properties version.
properties_id required | string Example: 215cbadb-3163-400b-9ae0-c8bd7d999719 properties id |
version_number required | integer Example: 1 version number |
{- "data": {
- "id": "11331b1e-776b-4c1b-bb84-996cc51c78b2",
- "type": "properties_version",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1,
- "created_at": "2025-01-14T06:04:27.022087Z",
- "owner_type": "project"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "19b6ca56-2b5e-4fb4-b3b2-1de2b14e4a7b",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/19b6ca56-2b5e-4fb4-b3b2-1de2b14e4a7b"
}
}
}, - "links": {
- "versions": "/api/properties/19b6ca56-2b5e-4fb4-b3b2-1de2b14e4a7b/versions",
- "owner": "/api/projects/opc",
- "self": "/api/properties/19b6ca56-2b5e-4fb4-b3b2-1de2b14e4a7b/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": "68664e74-e62c-4f30-ab1e-7aa882d2ef50",
- "type": "change",
- "attributes": {
- "created_by": "loren_kuhic",
- "name": "override",
- "action": "override",
- "initial_step_tree": null,
- "metadata": {
- "bus": "navigating"
}, - "automated": true,
- "approved_by": [ ],
- "rejected_by": [ ],
- "status_code": "success",
- "created_at": "2025-01-14T06:04:11.840695Z",
- "started_at": "2025-01-14T05:55:22.999209Z",
- "finished_at": "2025-01-14T05:56:43.968009Z",
- "updated_at": "2025-01-14T06:04:11.843093Z",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "git_remote_name": "github",
- "git_rev": "main",
- "commit_sha": "372a61c3b8f39aed120474058cb77720fb487f08",
- "requires_approval_from": null
}, - "relationships": {
- "properties": {
- "data": {
- "id": "1eeebfd2-2dd1-45df-9498-63630a517825",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/1eeebfd2-2dd1-45df-9498-63630a517825"
}
}, - "parents": {
- "data": [
- {
- "id": "129191bb-64b2-4958-859b-ace7056a45c3",
- "type": "project"
}, - {
- "id": "d6e603e1-b2f8-4cf7-87ab-6963d78d6ab4",
- "type": "environment"
}
]
}, - "root_step": {
- "data": {
- "id": "47467010-4fad-4b52-b3b1-e43f5d358bf0",
- "type": "step"
}, - "links": {
- "related": "/api/steps/47467010-4fad-4b52-b3b1-e43f5d358bf0"
}
}, - "steps": {
- "data": [
- {
- "id": "47467010-4fad-4b52-b3b1-e43f5d358bf0",
- "type": "step"
}
]
}, - "workflow_run": {
- "data": null
}, - "workflow": {
- "data": null
}
}, - "links": {
- "git_remote": "/api/projects/opc/git_remotes/0d6ebd9a-b55f-49c7-b38a-961c59a17c19",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev",
- "self": "/api/projects/opc/environments/dev/changes/68664e74-e62c-4f30-ab1e-7aa882d2ef50",
- "log_lines": "/api/changes/68664e74-e62c-4f30-ab1e-7aa882d2ef50/log_lines"
}
}
], - "included": [
- {
- "id": "47467010-4fad-4b52-b3b1-e43f5d358bf0",
- "type": "step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": null,
- "action": "override",
- "name": "override",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "68664e74-e62c-4f30-ab1e-7aa882d2ef50",
- "created_at": "2025-01-14T05:54:22.999209Z",
- "started_at": "2025-01-14T05:55:22.999209Z",
- "finished_at": "2025-01-14T05:56:43.968009Z",
- "updated_at": "2025-01-14T06:04:11.843093Z",
- "status_code": "success"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "1eeebfd2-2dd1-45df-9498-63630a517825",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/1eeebfd2-2dd1-45df-9498-63630a517825"
}
}, - "children": {
- "data": [ ]
}, - "change": {
- "data": {
- "id": "68664e74-e62c-4f30-ab1e-7aa882d2ef50",
- "type": "change"
}
}, - "properties_versions": {
- "data": [
- {
- "id": "3bc774e7-fde9-4e38-9f6e-b646375950dc",
- "type": "properties_version"
}, - {
- "id": "93a2ac47-cda6-49cb-b27b-cb6fa22989e9",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/68664e74-e62c-4f30-ab1e-7aa882d2ef50",
- "change": "/api/projects/opc/environments/dev/changes/68664e74-e62c-4f30-ab1e-7aa882d2ef50",
- "log_lines": "/api/steps/47467010-4fad-4b52-b3b1-e43f5d358bf0/log_lines",
- "self": "/api/steps/47467010-4fad-4b52-b3b1-e43f5d358bf0"
}
}, - {
- "id": "129191bb-64b2-4958-859b-ace7056a45c3",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "4bf8380c-c37c-4620-9329-3767977ef9cf",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/4bf8380c-c37c-4620-9329-3767977ef9cf"
}
}, - "parents": {
- "data": [ ]
}, - "settings": {
- "data": {
- "id": "103e9a70-643b-42df-b766-f8da757e2726",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/103e9a70-643b-42df-b766-f8da757e2726"
}
}, - "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "git_remotes": {
- "read": true,
- "update": true
}, - "templates": {
- "read": true,
- "update": true
}, - "workflows": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "workflow_runs": {
- "read": true,
- "execute": true
}, - "environments": {
- "read": true,
- "update": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}, - {
- "id": "d6e603e1-b2f8-4cf7-87ab-6963d78d6ab4",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "6645ede6-1f79-4bd3-ad1a-c6251df9b2cb",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/6645ede6-1f79-4bd3-ad1a-c6251df9b2cb"
}
}, - "parents": {
- "data": [
- {
- "id": "129191bb-64b2-4958-859b-ace7056a45c3",
- "type": "project"
}
]
}, - "settings": {
- "data": {
- "id": "d33184be-fb6c-46fb-9e8d-00185b93b9ae",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/d33184be-fb6c-46fb-9e8d-00185b93b9ae"
}
}, - "project": {
- "data": {
- "id": "129191bb-64b2-4958-859b-ace7056a45c3",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}
], - "meta": {
- "partial_response": false,
- "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": "parse",
- "parent_path": "/projects/opc/environments/dev",
- "git_remote_name": "github",
- "git_rev": "main",
- "metadata": {
- "matrix": "compressing"
}
}
}
}
{- "data": {
- "id": "82ebfd77-a55c-47d6-b9b6-bb842d52a241",
- "type": "change",
- "attributes": {
- "created_by": "alfonzo",
- "name": null,
- "action": "back_up",
- "initial_step_tree": null,
- "metadata": {
- "card": "generating"
}, - "automated": false,
- "approved_by": [ ],
- "rejected_by": [ ],
- "status_code": "initializing",
- "created_at": "2025-01-14T06:04:12.404056Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:12.406208Z",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "git_remote_name": "github",
- "git_rev": "main",
- "commit_sha": null,
- "requires_approval_from": null
}, - "relationships": {
- "parents": {
- "data": [
- {
- "id": "5e992c3d-f1fe-40bd-ad38-135bdd7561f7",
- "type": "project"
}, - {
- "id": "d93807f4-1a9a-4c7a-bd98-ad4c98694d59",
- "type": "environment"
}
]
}, - "root_step": {
- "data": {
- "id": "63a6e70a-6638-46b7-8b9b-a73f14172790",
- "type": "step"
}, - "links": {
- "related": "/api/steps/63a6e70a-6638-46b7-8b9b-a73f14172790"
}
}, - "steps": {
- "data": [
- {
- "id": "63a6e70a-6638-46b7-8b9b-a73f14172790",
- "type": "step"
}
]
}, - "workflow_run": {
- "data": null
}, - "workflow": {
- "data": null
}
}, - "links": {
- "git_remote": "/api/projects/opc/git_remotes/cd260e40-2bb2-4a06-9ff4-29d207a51739",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev",
- "self": "/api/projects/opc/environments/dev/changes/82ebfd77-a55c-47d6-b9b6-bb842d52a241",
- "log_lines": "/api/changes/82ebfd77-a55c-47d6-b9b6-bb842d52a241/log_lines"
}
}, - "included": [
- {
- "id": "63a6e70a-6638-46b7-8b9b-a73f14172790",
- "type": "step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": null,
- "action": "back_up",
- "name": null,
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "82ebfd77-a55c-47d6-b9b6-bb842d52a241",
- "created_at": "2025-01-14T06:04:12.406208Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:12.406208Z",
- "status_code": "initializing"
}, - "relationships": {
- "children": {
- "data": [ ]
}, - "change": {
- "data": {
- "id": "82ebfd77-a55c-47d6-b9b6-bb842d52a241",
- "type": "change"
}
}, - "properties_versions": {
- "data": [ ]
}
}, - "links": {
- "parent": "/api/changes/82ebfd77-a55c-47d6-b9b6-bb842d52a241",
- "change": "/api/projects/opc/environments/dev/changes/82ebfd77-a55c-47d6-b9b6-bb842d52a241",
- "log_lines": "/api/steps/63a6e70a-6638-46b7-8b9b-a73f14172790/log_lines",
- "self": "/api/steps/63a6e70a-6638-46b7-8b9b-a73f14172790"
}
}
]
}
Shows a change, including it's parent nodes.
change_id required | string Example: ac803c7c-187d-43fd-8d5b-b72dda1e4a56 change id |
include | string Example: include=steps,parents Include the change steps and parents in the response |
{- "data": {
- "id": "33109dab-cdfe-47e0-ad1d-56b19897f65f",
- "type": "change",
- "attributes": {
- "created_by": "herb",
- "name": "generate",
- "action": "generate",
- "initial_step_tree": null,
- "metadata": {
- "panel": "overriding"
}, - "automated": false,
- "approved_by": [ ],
- "rejected_by": [ ],
- "status_code": "success",
- "created_at": "2025-01-14T06:04:12.778602Z",
- "started_at": "2025-01-14T05:55:31.567765Z",
- "finished_at": "2025-01-14T05:59:55.008869Z",
- "updated_at": "2025-01-14T06:04:12.781848Z",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "git_remote_name": "github",
- "git_rev": "main",
- "commit_sha": "5bd2477a0314cd3266dc90a988f77a539e0be5f4",
- "requires_approval_from": null
}, - "relationships": {
- "properties": {
- "data": {
- "id": "a8700b7f-ab5f-48e4-a28d-9c1afcc0e998",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/a8700b7f-ab5f-48e4-a28d-9c1afcc0e998"
}
}, - "parents": {
- "data": [
- {
- "id": "276eb811-0cc7-4b00-84af-fdd20d0bc258",
- "type": "project"
}, - {
- "id": "7df98765-15a4-4637-a6cf-8eb5c0e78337",
- "type": "environment"
}
]
}, - "root_step": {
- "data": {
- "id": "53839dc0-ec6e-412e-8e26-82d42f2d07d6",
- "type": "step"
}, - "links": {
- "related": "/api/steps/53839dc0-ec6e-412e-8e26-82d42f2d07d6"
}
}, - "steps": {
- "data": [
- {
- "id": "53839dc0-ec6e-412e-8e26-82d42f2d07d6",
- "type": "step"
}
]
}, - "workflow_run": {
- "data": null
}, - "workflow": {
- "data": null
}
}, - "links": {
- "git_remote": "/api/projects/opc/git_remotes/1b30404d-9dd2-40aa-8b5c-4dbeb31cf1ed",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev",
- "self": "/api/projects/opc/environments/dev/changes/33109dab-cdfe-47e0-ad1d-56b19897f65f",
- "log_lines": "/api/changes/33109dab-cdfe-47e0-ad1d-56b19897f65f/log_lines"
}
}, - "included": [
- {
- "id": "53839dc0-ec6e-412e-8e26-82d42f2d07d6",
- "type": "step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": null,
- "action": "generate",
- "name": "generate",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "33109dab-cdfe-47e0-ad1d-56b19897f65f",
- "created_at": "2025-01-14T05:54:31.567765Z",
- "started_at": "2025-01-14T05:55:31.567765Z",
- "finished_at": "2025-01-14T05:59:55.008869Z",
- "updated_at": "2025-01-14T06:04:12.781848Z",
- "status_code": "success"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "a8700b7f-ab5f-48e4-a28d-9c1afcc0e998",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/a8700b7f-ab5f-48e4-a28d-9c1afcc0e998"
}
}, - "children": {
- "data": [ ]
}, - "change": {
- "data": {
- "id": "33109dab-cdfe-47e0-ad1d-56b19897f65f",
- "type": "change"
}
}, - "properties_versions": {
- "data": [
- {
- "id": "e44f3331-bfa9-4320-a390-85779312b78f",
- "type": "properties_version"
}, - {
- "id": "0f8507fb-b3e4-477b-964a-fcde41aca711",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/33109dab-cdfe-47e0-ad1d-56b19897f65f",
- "change": "/api/projects/opc/environments/dev/changes/33109dab-cdfe-47e0-ad1d-56b19897f65f",
- "log_lines": "/api/steps/53839dc0-ec6e-412e-8e26-82d42f2d07d6/log_lines",
- "self": "/api/steps/53839dc0-ec6e-412e-8e26-82d42f2d07d6"
}
}, - {
- "id": "276eb811-0cc7-4b00-84af-fdd20d0bc258",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "b95c7da4-2601-4115-bb77-4a14a6a8993e",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/b95c7da4-2601-4115-bb77-4a14a6a8993e"
}
}, - "parents": {
- "data": [ ]
}, - "settings": {
- "data": {
- "id": "8966f05f-5b64-4d7e-ad95-e300c6febd20",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/8966f05f-5b64-4d7e-ad95-e300c6febd20"
}
}, - "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "git_remotes": {
- "read": true,
- "update": true
}, - "templates": {
- "read": true,
- "update": true
}, - "workflows": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "workflow_runs": {
- "read": true,
- "execute": true
}, - "environments": {
- "read": true,
- "update": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}, - {
- "id": "7df98765-15a4-4637-a6cf-8eb5c0e78337",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "4bf7849b-6268-432b-9008-75accbe6ea1a",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/4bf7849b-6268-432b-9008-75accbe6ea1a"
}
}, - "parents": {
- "data": [
- {
- "id": "276eb811-0cc7-4b00-84af-fdd20d0bc258",
- "type": "project"
}
]
}, - "settings": {
- "data": {
- "id": "25db5ede-bf03-4873-ac4b-e3fc575e3bef",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/25db5ede-bf03-4873-ac4b-e3fc575e3bef"
}
}, - "project": {
- "data": {
- "id": "276eb811-0cc7-4b00-84af-fdd20d0bc258",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}
]
}
Lists all automated change rules.
filter[<query/sort filter>]= | |
include | string Example: include=parents Include the automated change parents in the response |
{- "data": [
- {
- "id": "4d989f3e-0b9d-433c-92fd-3f4a8ae48a28",
- "type": "automated_change_rule",
- "attributes": {
- "action": "back_up",
- "created_by": "noel",
- "cron_schedule": "2 14 16 10 *",
- "new_commits_only": true,
- "git_rev": "primary",
- "repeat": true,
- "metadata": {
- "port": "bypassing"
}, - "created_at": "2025-01-14T06:04:08.290172Z",
- "next_run_at": "2025-10-16T03:02:00.000000Z",
- "rule_type": "automated_change_rule",
- "environment_code": "dev",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "project_code": "opc",
- "git_remote_name": "github"
}, - "relationships": {
- "parents": {
- "data": [
- {
- "id": "88763cbe-5994-44c2-b211-356c2e52d205",
- "type": "project"
}, - {
- "id": "65617e1e-78ae-478f-ab95-e672834d7736",
- "type": "environment"
}
]
}
}, - "links": {
- "git_remote": "/api/projects/opc/git_remotes/ac550fa6-703b-4ecc-8bd8-4c6d0793c632",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev",
- "self": "/api/automated_change_rules/4d989f3e-0b9d-433c-92fd-3f4a8ae48a28"
}
}
], - "included": [
- {
- "id": "88763cbe-5994-44c2-b211-356c2e52d205",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "5a46a88e-113f-488e-9238-d8ccb6446f63",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/5a46a88e-113f-488e-9238-d8ccb6446f63"
}
}, - "parents": {
- "data": [ ]
}, - "settings": {
- "data": {
- "id": "9609dd4e-19bc-4e76-bc98-550c6bfc0dd6",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/9609dd4e-19bc-4e76-bc98-550c6bfc0dd6"
}
}, - "children": {
- "data": [
- {
- "id": "65617e1e-78ae-478f-ab95-e672834d7736",
- "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "git_remotes": {
- "read": true,
- "update": true
}, - "templates": {
- "read": true,
- "update": true
}, - "workflows": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "workflow_runs": {
- "read": true,
- "execute": true
}, - "environments": {
- "read": true,
- "update": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}, - {
- "id": "65617e1e-78ae-478f-ab95-e672834d7736",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "85e0eb96-0c49-4029-8b6a-de95aa406a7a",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/85e0eb96-0c49-4029-8b6a-de95aa406a7a"
}
}, - "parents": {
- "data": [
- {
- "id": "88763cbe-5994-44c2-b211-356c2e52d205",
- "type": "project"
}
]
}, - "settings": {
- "data": {
- "id": "d67375dd-4dcd-4cd4-af90-00e9451ab90a",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/d67375dd-4dcd-4cd4-af90-00e9451ab90a"
}
}, - "project": {
- "data": {
- "id": "88763cbe-5994-44c2-b211-356c2e52d205",
- "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}
], - "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": "navigate",
- "parent_path": "/projects/opc/environments/dev",
- "git_remote_name": "github",
- "git_rev": "back-end",
- "cron_schedule": "16 5 5 5 *",
- "new_commits_only": false,
- "repeat": true
}
}
}
{- "data": {
- "id": "5658aa60-5080-4959-8772-bac507f4ef65",
- "type": "automated_change_rule",
- "attributes": {
- "action": "different_action",
- "created_by": "thomasina",
- "cron_schedule": "44 0 4 8 *",
- "new_commits_only": true,
- "git_rev": "haptic",
- "repeat": false,
- "metadata": {
- "microchip": "transmitting"
}, - "created_at": "2025-01-14T06:04:08.695842Z",
- "next_run_at": "2025-08-03T14:44:00.000000Z",
- "rule_type": "automated_change_rule",
- "environment_code": "dev",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "project_code": "opc",
- "git_remote_name": "github"
}, - "relationships": {
- "parents": {
- "data": [
- {
- "id": "4ae36a39-8eaf-4b81-b7cc-62f8809f08b1",
- "type": "project"
}, - {
- "id": "9e8e9fca-6289-46a9-846c-340040f7527c",
- "type": "environment"
}
]
}
}, - "links": {
- "git_remote": "/api/projects/opc/git_remotes/8dda09a6-cb64-47b6-8679-031ed54f79d1",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev",
- "self": "/api/automated_change_rules/5658aa60-5080-4959-8772-bac507f4ef65"
}
}
}
Shows an automated change rule.
automated_change_id required | string Example: d7760ce4-2ead-4364-8be6-c84472276451 automated change id |
include | string Example: include=parents Include the automated change parents in the response |
{- "data": {
- "id": "94f93ad1-1834-44c2-896b-eff85480d277",
- "type": "automated_change_rule",
- "attributes": {
- "action": "parse",
- "created_by": "jerrod_pagac",
- "cron_schedule": "59 0 7 9 *",
- "new_commits_only": false,
- "git_rev": "optical",
- "repeat": true,
- "metadata": {
- "matrix": "programming"
}, - "created_at": "2025-01-14T06:04:09.049575Z",
- "next_run_at": "2025-09-06T14:59:00.000000Z",
- "rule_type": "automated_change_rule",
- "environment_code": "dev",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "project_code": "opc",
- "git_remote_name": "github"
}, - "relationships": {
- "parents": {
- "data": [
- {
- "id": "7c45d399-412f-41d6-85a6-92498d3136f0",
- "type": "project"
}, - {
- "id": "f6b82701-e343-4679-b583-eba82446f3d9",
- "type": "environment"
}
]
}
}, - "links": {
- "git_remote": "/api/projects/opc/git_remotes/0767c3b2-ab20-4496-89d2-7e1a2e5d86b5",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev",
- "self": "/api/automated_change_rules/94f93ad1-1834-44c2-896b-eff85480d277"
}
}, - "included": [
- {
- "id": "7c45d399-412f-41d6-85a6-92498d3136f0",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "Enterprise"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "f3321d38-2228-4eab-b9a0-8937864a626e",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/f3321d38-2228-4eab-b9a0-8937864a626e"
}
}, - "parents": {
- "data": [ ]
}, - "settings": {
- "data": {
- "id": "8ffe7078-b966-4e0d-9483-d1d8c5a028cf",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/8ffe7078-b966-4e0d-9483-d1d8c5a028cf"
}
}, - "children": {
- "data": [
- {
- "id": "f6b82701-e343-4679-b583-eba82446f3d9",
- "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "git_remotes": {
- "read": true,
- "update": true
}, - "templates": {
- "read": true,
- "update": true
}, - "workflows": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "workflow_runs": {
- "read": true,
- "execute": true
}, - "environments": {
- "read": true,
- "update": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}, - {
- "id": "f6b82701-e343-4679-b583-eba82446f3d9",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "30cf7ddf-60e9-4d82-81fb-0653cef0659e",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/30cf7ddf-60e9-4d82-81fb-0653cef0659e"
}
}, - "parents": {
- "data": [
- {
- "id": "7c45d399-412f-41d6-85a6-92498d3136f0",
- "type": "project"
}
]
}, - "settings": {
- "data": {
- "id": "eb19b4e7-4dfe-4b51-bcc6-fc6ef417d836",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/eb19b4e7-4dfe-4b51-bcc6-fc6ef417d836"
}
}, - "project": {
- "data": {
- "id": "7c45d399-412f-41d6-85a6-92498d3136f0",
- "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"
], - "authorisations": {
- "properties": {
- "read": true,
- "update": true
}, - "settings": {
- "read": true,
- "update": true
}, - "automated_change_rules": {
- "read": true,
- "update": true
}, - "changes": {
- "read": true,
- "execute": true
}, - "assets": {
- "read": true,
- "update": true
}, - "self": {
- "update": true
}
}
}
}
]
}
Endpoints to interact with change steps.
{- "data": [
- {
- "id": "18e788b7-7fa7-4275-b453-920f159255fd",
- "type": "step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": null,
- "action": "override",
- "name": "override",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "1d4559a8-191b-4530-a35d-2112999e5eed",
- "created_at": "2025-01-14T05:54:16.039953Z",
- "started_at": "2025-01-14T05:55:16.039953Z",
- "finished_at": "2025-01-14T06:02:16.505755Z",
- "updated_at": "2025-01-14T06:04:28.812610Z",
- "status_code": "success"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "208a736f-1bd4-4ac2-a11c-fbc38294eb80",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/208a736f-1bd4-4ac2-a11c-fbc38294eb80"
}
}, - "children": {
- "data": [ ]
}, - "change": {
- "data": {
- "id": "1d4559a8-191b-4530-a35d-2112999e5eed",
- "type": "change"
}
}, - "properties_versions": {
- "data": [
- {
- "id": "82ef32ed-3c68-444d-aef3-00ca86a24450",
- "type": "properties_version"
}, - {
- "id": "2e6deb1b-8d95-45b2-bce4-fa4d5624adf5",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/1d4559a8-191b-4530-a35d-2112999e5eed",
- "change": "/api/projects/opc/environments/dev/changes/1d4559a8-191b-4530-a35d-2112999e5eed",
- "log_lines": "/api/steps/18e788b7-7fa7-4275-b453-920f159255fd/log_lines",
- "self": "/api/steps/18e788b7-7fa7-4275-b453-920f159255fd"
}
}
]
}
Shows a change step.
step_id required | string Example: 649bd62c-7aff-46dc-bd04-807d0369c583 step id |
{- "data": {
- "id": "8e86c7f0-ac89-43b0-8157-19147efae584",
- "type": "step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": null,
- "action": "generate",
- "name": "generate",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "32fa63df-0828-4a71-abb6-cf76c393bb6c",
- "created_at": "2025-01-14T05:53:50.373693Z",
- "started_at": "2025-01-14T05:54:50.373693Z",
- "finished_at": "2025-01-14T06:01:00.796672Z",
- "updated_at": "2025-01-14T06:04:29.058842Z",
- "status_code": "success"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "82be84b6-0376-4b62-95d8-62afe7c50356",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/82be84b6-0376-4b62-95d8-62afe7c50356"
}
}, - "children": {
- "data": [ ]
}, - "change": {
- "data": {
- "id": "32fa63df-0828-4a71-abb6-cf76c393bb6c",
- "type": "change"
}
}, - "properties_versions": {
- "data": [
- {
- "id": "5b3304c1-3f84-4c97-9424-8ed686500a52",
- "type": "properties_version"
}, - {
- "id": "0324e95a-0c91-450a-bff6-7c0d72df8d24",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/32fa63df-0828-4a71-abb6-cf76c393bb6c",
- "change": "/api/projects/opc/environments/dev/changes/32fa63df-0828-4a71-abb6-cf76c393bb6c",
- "log_lines": "/api/steps/8e86c7f0-ac89-43b0-8157-19147efae584/log_lines",
- "self": "/api/steps/8e86c7f0-ac89-43b0-8157-19147efae584"
}
}, - "included": [
- {
- "id": "5b3304c1-3f84-4c97-9424-8ed686500a52",
- "type": "properties_version",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1,
- "created_at": "2025-01-14T06:04:28.965278Z",
- "owner_type": "project"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "9392aa9c-d34a-4438-b80c-3cd1a04bc1b1",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/9392aa9c-d34a-4438-b80c-3cd1a04bc1b1"
}
}
}, - "links": {
- "versions": "/api/properties/9392aa9c-d34a-4438-b80c-3cd1a04bc1b1/versions",
- "owner": "/api/projects/opc",
- "self": "/api/properties/9392aa9c-d34a-4438-b80c-3cd1a04bc1b1/versions/1"
}
}, - {
- "id": "0324e95a-0c91-450a-bff6-7c0d72df8d24",
- "type": "properties_version",
- "attributes": {
- "data": { },
- "version": 1,
- "created_at": "2025-01-14T06:04:28.997192Z",
- "owner_type": "environment"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "28d3d22b-60f6-417e-b8df-feaa9dbfc714",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/28d3d22b-60f6-417e-b8df-feaa9dbfc714"
}
}
}, - "links": {
- "versions": "/api/properties/28d3d22b-60f6-417e-b8df-feaa9dbfc714/versions",
- "owner": "/api/projects/opc/environments/dev",
- "self": "/api/properties/28d3d22b-60f6-417e-b8df-feaa9dbfc714/versions/1"
}
}, - {
- "id": "82be84b6-0376-4b62-95d8-62afe7c50356",
- "type": "properties",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1,
- "created_at": "2025-01-14T06:04:29.050002Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/steps/8e86c7f0-ac89-43b0-8157-19147efae584"
}
}
}, - "links": {
- "self": "/api/properties/82be84b6-0376-4b62-95d8-62afe7c50356",
- "current_version": "/api/properties/82be84b6-0376-4b62-95d8-62afe7c50356/versions/1",
- "versions": "/api/properties/82be84b6-0376-4b62-95d8-62afe7c50356/versions"
}
}
]
}
Continues a "waiting" change step.
step_id required | string Example: 8167a514-1567-4862-96f7-3947c8d91c69 step id |
object |
{- "data": {
- "attributes": {
- "message": "Manually removed from load balancer."
}
}
}
{- "data": {
- "id": "0a842a22-f2fe-46b1-bf60-ce4f97b46140",
- "type": "step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [
- {
- "username": "dee",
- "message": null
}
], - "requires_approval_from": null,
- "action": "parse",
- "name": "parse",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "a496fc09-7f35-4d44-8206-1016df8eeb52",
- "created_at": "2025-01-14T05:53:43.112872Z",
- "started_at": "2025-01-14T05:54:43.112872Z",
- "finished_at": "2025-01-14T06:04:30.651002Z",
- "updated_at": "2025-01-14T06:04:30.666150Z",
- "status_code": "success"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "3bb8c0d2-5fed-464c-b68b-7080b7ba0f42",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/3bb8c0d2-5fed-464c-b68b-7080b7ba0f42"
}
}, - "children": {
- "data": [ ]
}, - "change": {
- "data": {
- "id": "a496fc09-7f35-4d44-8206-1016df8eeb52",
- "type": "change"
}
}, - "properties_versions": {
- "data": [
- {
- "id": "487a1b8e-e67b-4397-809b-4500631c922b",
- "type": "properties_version"
}, - {
- "id": "eeab436b-26d2-49dc-af89-280d9ce2a077",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/a496fc09-7f35-4d44-8206-1016df8eeb52",
- "change": "/api/projects/opc/environments/dev/changes/a496fc09-7f35-4d44-8206-1016df8eeb52",
- "log_lines": "/api/steps/0a842a22-f2fe-46b1-bf60-ce4f97b46140/log_lines",
- "self": "/api/steps/0a842a22-f2fe-46b1-bf60-ce4f97b46140"
}
}
}
Approves a change step that needs approval.
step_id required | string Example: 8167a514-1567-4862-96f7-3947c8d91c69 step id |
object |
{- "data": {
- "attributes": {
- "message": "As per CR 7 👍"
}
}
}
{- "data": {
- "id": "0b7e7de1-0c87-42bc-8ee2-c917f9333be3",
- "type": "step",
- "attributes": {
- "approved_by": [
- {
- "username": "jefferey.kshlerin",
- "message": null
}
], - "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": "an-ldap-group",
- "action": "generate",
- "name": "generate",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "3740e0cb-3660-474c-9585-ef0dc5679a95",
- "created_at": "2025-01-14T05:53:40.622552Z",
- "started_at": "2025-01-14T05:54:40.622552Z",
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:31.266165Z",
- "status_code": "queued"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "d6938447-6beb-413e-963e-82b61d73ed0e",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/d6938447-6beb-413e-963e-82b61d73ed0e"
}
}, - "children": {
- "data": [ ]
}, - "change": {
- "data": {
- "id": "3740e0cb-3660-474c-9585-ef0dc5679a95",
- "type": "change"
}
}, - "properties_versions": {
- "data": [
- {
- "id": "6001efe5-66f0-4842-8c87-7505f8363501",
- "type": "properties_version"
}, - {
- "id": "95d2c34b-3e05-4e29-bcd7-d762d54d1f41",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/3740e0cb-3660-474c-9585-ef0dc5679a95",
- "change": "/api/projects/opc/environments/dev/changes/3740e0cb-3660-474c-9585-ef0dc5679a95",
- "log_lines": "/api/steps/0b7e7de1-0c87-42bc-8ee2-c917f9333be3/log_lines",
- "self": "/api/steps/0b7e7de1-0c87-42bc-8ee2-c917f9333be3"
}
}
}
Rejects a change step that needs approval.
step_id required | string Example: 8167a514-1567-4862-96f7-3947c8d91c69 step id |
object |
{- "data": {
- "attributes": {
- "message": "Failed user acceptance testing"
}
}
}
{- "data": {
- "id": "5f58dd7f-f977-40c9-b62c-323105d6c649",
- "type": "step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [
- {
- "username": "harrison",
- "message": null
}
], - "continued_by": [ ],
- "requires_approval_from": "an-ldap-group",
- "action": "override",
- "name": "override",
- "step_type": "standard",
- "child_execution_strategy": "sequential",
- "change_id": "bc6355ab-1511-4616-abb2-17555f1df2f4",
- "created_at": "2025-01-14T05:55:07.420590Z",
- "started_at": "2025-01-14T05:56:07.420590Z",
- "finished_at": "2025-01-14T06:04:32.067931Z",
- "updated_at": "2025-01-14T06:04:32.073669Z",
- "status_code": "rejected"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "99911b3c-6fd8-4ae9-8cfe-e50c373d8bd2",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/99911b3c-6fd8-4ae9-8cfe-e50c373d8bd2"
}
}, - "children": {
- "data": [ ]
}, - "change": {
- "data": {
- "id": "bc6355ab-1511-4616-abb2-17555f1df2f4",
- "type": "change"
}
}, - "properties_versions": {
- "data": [
- {
- "id": "5fee33b4-1741-453d-91cf-59d3fb866cc2",
- "type": "properties_version"
}, - {
- "id": "2b4fb4f2-65c6-40e5-a836-3185c369e14d",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/bc6355ab-1511-4616-abb2-17555f1df2f4",
- "change": "/api/projects/opc/environments/dev/changes/bc6355ab-1511-4616-abb2-17555f1df2f4",
- "log_lines": "/api/steps/5f58dd7f-f977-40c9-b62c-323105d6c649/log_lines",
- "self": "/api/steps/5f58dd7f-f977-40c9-b62c-323105d6c649"
}
}
}
List the log lines for a change.
change_id required | string Example: ac803c7c-187d-43fd-8d5b-b72dda1e4a56 |
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": "581acfc3-2612-4c02-bcbf-d62efd795c4e",
- "type": "log_line",
- "attributes": {
- "change_id": "619114ac-ba56-49ae-8588-469ff80b1c33",
- "step_id": "eb695c26-7598-45ac-ab0d-a3d84241af16",
- "message": "Iste tempora quia temporibus.",
- "logged_at": "2025-01-13T00:00:00.000000Z"
}
}
], - "meta": {
- "partial_response": false
}
}
List the log lines for a change step.
step_id required | string Example: 649bd62c-7aff-46dc-bd04-807d0369c583 |
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": "6dfd9f70-705c-43ed-8219-c12f67aabc84",
- "type": "log_line",
- "attributes": {
- "change_id": "c6e18ada-14c7-412a-994a-2de762232548",
- "step_id": "320e213b-5c27-4819-86b4-b6226e3fab8b",
- "message": "Enim qui nam illum.",
- "logged_at": "2025-01-13T00:00:00.000000Z"
}
}
], - "meta": {
- "partial_response": false
}
}
List filtered log lines.
filter[<query/sort filter>]= | |
limit | integer [ 1 .. 1000 ] Default: 10000 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": "de94a96d-6982-4560-a16a-033f68121314",
- "type": "log_line",
- "attributes": {
- "change_id": "65ac818e-413a-4fb6-9fa3-701ee5c0400d",
- "step_id": "3912a0cb-d07f-428f-a1c2-e958f5c91bcf",
- "message": "Odio reiciendis mollitia rerum.",
- "logged_at": "2025-01-13T00:00:00.000000Z"
}
}
], - "meta": {
- "partial_response": false
}
}
Endpoints to interact with workflow runs
Notes:
/workflow_runs
- will return all workflow runs accessible to the user./project/{project_code}/workflow_runs
- will return all workflow runs for all this project's workflows./project/{project_code}/workflows/{workflow_code}/workflow_runs
- will return all workflow runs this workflow./<path/to/asset>/workflow_runs
- will return all workflow runs that include a change for this asset.Lists all runs for a workflow.
project_code required | string Example: opc project code |
workflow_code required | string Example: assets workflow code |
{- "data": [
- {
- "id": "853ddf4e-8994-495c-8a7b-b76040a0b625",
- "type": "workflow_run",
- "attributes": {
- "step_tree": {
- "id": "521b055a-5c26-4898-a99f-60522f1605b0",
- "name": "est",
- "type": "workflow_noop_step",
- "children": [
- {
- "id": "2bff8a69-5d7c-4a13-ac96-90ee22bd6fd5",
- "name": "a",
- "type": "workflow_noop_step",
- "children": [
- {
- "id": "f137b0fa-a11f-4ee0-9b35-464096d0970e",
- "name": "override",
- "type": "workflow_change_step",
- "action": "override",
- "target": "/projects/wimf5/environments/d5yld/assets/wtnw1",
- "children": [ ]
}
]
}, - {
- "id": "e690c36a-93fd-4c0c-b02e-adbd17936131",
- "name": "transmit",
- "type": "workflow_change_step",
- "action": "transmit",
- "target": "/projects/3fttm/environments/wzoye/assets/plkdg",
- "children": [ ]
}, - {
- "id": "9c69d18c-c357-4657-9257-f36cd920390a",
- "name": "Wait",
- "type": "workflow_wait_step",
- "children": [ ]
}, - {
- "id": "225a9b6f-fe95-4c5e-b925-598b6666884b",
- "name": "child workflow",
- "type": "workflow_workflow_step",
- "children": [ ]
}
]
}, - "automated": false,
- "metadata": {
- "It": "7.55",
- "Job": "0.30",
- "Bamity": "7.2",
- "Kanlam": "2.5",
- "Matsoft": "0.33",
- "Flowdesk": "2.89",
- "Home Ing": "3.5",
- "Overhold": "3.5.8",
- "Daltfresh": "0.85",
- "Lotstring": "0.4.0"
}, - "created_by": "coy_dietrich",
- "status_code": "success",
- "created_at": "2025-01-14T06:04:36.220464Z",
- "started_at": "2025-01-14T05:54:50.011978Z",
- "finished_at": "2025-01-14T05:55:50.449748Z",
- "updated_at": "2025-01-14T06:04:36.223163Z",
- "project_name": "OpsChain",
- "commit_sha": "90f4f852a3cdbca3490f105993d198f23bc8f8ab"
}, - "relationships": {
- "workflow": {
- "data": {
- "id": "b9e9c6d6-80be-4755-b61a-b6a1e240a787",
- "type": "workflow"
}
}, - "parent_workflow_step": {
- "data": null
}, - "root_step": {
- "data": {
- "id": "521b055a-5c26-4898-a99f-60522f1605b0",
- "type": "workflow_noop_step"
}
}, - "steps": {
- "data": [
- {
- "id": "521b055a-5c26-4898-a99f-60522f1605b0",
- "type": "workflow_noop_step"
}, - {
- "id": "2bff8a69-5d7c-4a13-ac96-90ee22bd6fd5",
- "type": "workflow_noop_step"
}, - {
- "id": "f137b0fa-a11f-4ee0-9b35-464096d0970e",
- "type": "workflow_change_step"
}, - {
- "id": "e690c36a-93fd-4c0c-b02e-adbd17936131",
- "type": "workflow_change_step"
}, - {
- "id": "9c69d18c-c357-4657-9257-f36cd920390a",
- "type": "workflow_wait_step"
}, - {
- "id": "225a9b6f-fe95-4c5e-b925-598b6666884b",
- "type": "workflow_workflow_step"
}
]
}
}, - "links": {
- "parent": "/api/projects/opc",
- "self": "/api/projects/opc/workflows/assets/runs/853ddf4e-8994-495c-8a7b-b76040a0b625"
}
}
], - "included": [
- {
- "id": "b9e9c6d6-80be-4755-b61a-b6a1e240a787",
- "type": "workflow",
- "attributes": {
- "code": "assets",
- "name": "assets workflow",
- "description": "workflow for assets",
- "state": "ready",
- "created_by": "takisha",
- "version_description": "Updated the assets workflow to include a new step",
- "created_at": "2025-01-14T06:04:36.205881Z",
- "steps": [
- {
- "type": "change",
- "name": "run asset action",
- "target": "/projects/opc/assets/prj_soa",
- "action": "run"
}
], - "commit_sha": "90f4f852a3cdbca3490f105993d198f23bc8f8ab"
}, - "links": {
- "self": "/api/projects/opc/workflows/assets?sha=90f4f852a3cdbca3490f105993d198f23bc8f8ab",
- "latest_version": "/api/projects/opc/workflows/assets",
- "project": "/api/projects/opc",
- "runs": "/api/projects/opc/workflows/assets/runs"
}
}
], - "meta": {
- "partial_response": false
}
}
Runs a pre-defined workflow
project_code required | string Example: opc project code |
workflow_code required | string Example: assets workflow code |
required | object |
{- "data": {
- "attributes": {
- "workflow_code": "assets"
}
}
}
{- "data": {
- "id": "07a7efec-7aa5-4911-937b-93594046fb46",
- "type": "workflow_run",
- "attributes": {
- "step_tree": {
- "id": "fc8b6ee3-5af5-4dd4-b05f-94668c348585",
- "name": "assets workflow",
- "type": "workflow_noop_step",
- "children": [
- {
- "id": "23478764-92f4-47c8-9716-c9894019a658",
- "name": "run asset action",
- "type": "workflow_change_step",
- "children": [ ],
- "action": "run",
- "target": "/projects/opc/assets/prj_soa"
}
]
}, - "automated": false,
- "metadata": { },
- "created_by": "myles.marvin",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:38.025436Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:38.028206Z",
- "project_name": "OpsChain",
- "commit_sha": "3506cd9cf90c4951d5f98880cabd440f99bfcfe2"
}, - "relationships": {
- "workflow": {
- "data": {
- "id": "ad5c45f9-a883-4c6c-bd65-361151d1d088",
- "type": "workflow"
}
}, - "parent_workflow_step": {
- "data": null
}, - "root_step": {
- "data": {
- "id": "fc8b6ee3-5af5-4dd4-b05f-94668c348585",
- "type": "workflow_noop_step"
}
}, - "steps": {
- "data": [
- {
- "id": "fc8b6ee3-5af5-4dd4-b05f-94668c348585",
- "type": "workflow_noop_step"
}, - {
- "id": "23478764-92f4-47c8-9716-c9894019a658",
- "type": "workflow_change_step"
}
]
}
}, - "links": {
- "parent": "/api/projects/opc",
- "self": "/api/projects/opc/workflows/assets/runs/07a7efec-7aa5-4911-937b-93594046fb46"
}
}, - "included": [
- {
- "id": "ad5c45f9-a883-4c6c-bd65-361151d1d088",
- "type": "workflow",
- "attributes": {
- "code": "assets",
- "name": "assets workflow",
- "description": "workflow for assets",
- "state": "broken",
- "created_by": "micheline",
- "version_description": "Updated the assets workflow to include a new step",
- "created_at": "2025-01-14T06:04:37.543922Z",
- "steps": [
- {
- "type": "change",
- "name": "run asset action",
- "target": "/projects/opc/assets/prj_soa",
- "action": "run",
- "change_parent": {
- "id": "e613b1a3-4e83-4dfa-af6c-ddce2ae0afd8",
- "path": "/projects/opc/assets/prj_soa",
- "parent_path": "/projects/opc",
- "project_id": "b2570473-5e3a-42a1-8c35-82270158ca8e",
- "node_type": "asset",
- "parent_id": "b2570473-5e3a-42a1-8c35-82270158ca8e",
- "code": "prj_soa",
- "name": "Project asset",
- "description": "Project asset description",
- "archived": false,
- "created_at": "2025-01-14T06:04:37.495Z",
- "updated_at": "2025-01-14T06:04:37.495Z",
- "project_type": null,
- "template_version_id": "2eec030d-49a3-4ed4-865f-00474f3ce968"
}
}
], - "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\n- oneOf #2:\n - The property '#/steps/0' did not contain a required property of 'children'\n - The property '#/steps/0' did not contain a required property of 'run_as'\n - The property '#/steps/0' contains additional properties [\"type\", \"target\", \"action\", \"change_parent\"] outside of the schema when none are allowed\n- oneOf #3:\n - The property '#/steps/0/type' value \"change\" did not match one of the following values: workflow\n - The property '#/steps/0' did not contain a required property of 'code'\n - The property '#/steps/0' contains additional properties [\"target\", \"action\", \"change_parent\"] outside of the schema when none are allowed"
], - "commit_sha": "3506cd9cf90c4951d5f98880cabd440f99bfcfe2"
}, - "links": {
- "self": "/api/projects/opc/workflows/assets?sha=3506cd9cf90c4951d5f98880cabd440f99bfcfe2",
- "latest_version": "/api/projects/opc/workflows/assets",
- "project": "/api/projects/opc",
- "runs": "/api/projects/opc/workflows/assets/runs"
}
}, - {
- "id": "fc8b6ee3-5af5-4dd4-b05f-94668c348585",
- "type": "workflow_noop_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "myles.marvin",
- "name": "assets workflow",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:38.028206Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:38.028206Z",
- "child_execution_strategy": "sequential"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "07a7efec-7aa5-4911-937b-93594046fb46",
- "type": "workflow_run"
}
}, - "children": {
- "data": [
- {
- "id": "23478764-92f4-47c8-9716-c9894019a658",
- "type": "workflow_change_step"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/07a7efec-7aa5-4911-937b-93594046fb46/steps/fc8b6ee3-5af5-4dd4-b05f-94668c348585",
- "parent": "/api/projects/opc/workflows/assets/runs/07a7efec-7aa5-4911-937b-93594046fb46",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/07a7efec-7aa5-4911-937b-93594046fb46"
}
}, - {
- "id": "23478764-92f4-47c8-9716-c9894019a658",
- "type": "workflow_change_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "myles.marvin",
- "name": "run asset action",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:38.032440Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:38.032440Z",
- "action": "run"
}, - "relationships": {
- "change": {
- "data": null
}, - "change_parent": {
- "data": {
- "id": "e613b1a3-4e83-4dfa-af6c-ddce2ae0afd8",
- "type": "asset"
}
}, - "workflow_run": {
- "data": {
- "id": "07a7efec-7aa5-4911-937b-93594046fb46",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/07a7efec-7aa5-4911-937b-93594046fb46/steps/23478764-92f4-47c8-9716-c9894019a658",
- "parent": "/api/projects/opc/workflows/assets/runs/07a7efec-7aa5-4911-937b-93594046fb46/steps/fc8b6ee3-5af5-4dd4-b05f-94668c348585",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/07a7efec-7aa5-4911-937b-93594046fb46"
}
}
]
}
Shows a workflow run.
project_code required | string Example: opc project code |
workflow_code required | string Example: assets workflow code |
run_id required | string Example: 963bd5c2-62b3-4e01-af8b-7f13f5c08355 workflow run id |
{- "data": {
- "id": "60baa11d-1c12-4271-98f4-9a84f11dc269",
- "type": "workflow_run",
- "attributes": {
- "step_tree": {
- "id": "03b9362d-988b-4436-be52-b4b475da75f0",
- "name": "eaque",
- "type": "workflow_noop_step",
- "children": [
- {
- "id": "4d47cbee-2d89-4195-b7ed-b55aea5b1a48",
- "name": "omnis",
- "type": "workflow_noop_step",
- "children": [
- {
- "id": "d3b566af-3958-4d1d-93bd-7201cac6b112",
- "name": "quantify",
- "type": "workflow_change_step",
- "action": "quantify",
- "target": "/projects/pwhxy/environments/pek6e/assets/io6yo",
- "children": [ ]
}
]
}, - {
- "id": "a3f8673c-6474-4865-8421-f5084d0a7e21",
- "name": "index",
- "type": "workflow_change_step",
- "action": "index",
- "target": "/projects/1kkgx/environments/cgscs/assets/1zook",
- "children": [ ]
}, - {
- "id": "772947cc-d3f4-40e8-87be-c077ae760cac",
- "name": "Wait",
- "type": "workflow_wait_step",
- "children": [ ]
}, - {
- "id": "db59b8fd-6a2c-4a51-b135-105ceddbf56d",
- "name": "child workflow",
- "type": "workflow_workflow_step",
- "children": [ ]
}
]
}, - "automated": false,
- "metadata": {
- "Job": "4.6.7",
- "Latlux": "5.6",
- "Namfix": "5.90",
- "Bitchip": "6.97",
- "Regrant": "1.07",
- "Overhold": "0.6.8",
- "Tempsoft": "1.35",
- "Daltfresh": "0.3.1",
- "Ronstring": "0.1.5",
- "Y-Solowarm": "1.9"
}, - "created_by": "marlin_hoppe",
- "status_code": "success",
- "created_at": "2025-01-14T06:04:41.060882Z",
- "started_at": "2025-01-14T05:56:02.130146Z",
- "finished_at": "2025-01-14T06:01:12.490409Z",
- "updated_at": "2025-01-14T06:04:41.062794Z",
- "project_name": "OpsChain",
- "commit_sha": "44d39e28c3a7fbc6a8dd09ea22de3c9afdf9bd3b"
}, - "relationships": {
- "workflow": {
- "data": {
- "id": "3c6ddcf6-cb3a-48ba-873d-c455a1f1fd99",
- "type": "workflow"
}
}, - "parent_workflow_step": {
- "data": null
}, - "root_step": {
- "data": {
- "id": "03b9362d-988b-4436-be52-b4b475da75f0",
- "type": "workflow_noop_step"
}
}, - "steps": {
- "data": [
- {
- "id": "d3b566af-3958-4d1d-93bd-7201cac6b112",
- "type": "workflow_change_step"
}, - {
- "id": "a3f8673c-6474-4865-8421-f5084d0a7e21",
- "type": "workflow_change_step"
}, - {
- "id": "772947cc-d3f4-40e8-87be-c077ae760cac",
- "type": "workflow_wait_step"
}, - {
- "id": "db59b8fd-6a2c-4a51-b135-105ceddbf56d",
- "type": "workflow_workflow_step"
}, - {
- "id": "03b9362d-988b-4436-be52-b4b475da75f0",
- "type": "workflow_noop_step"
}, - {
- "id": "4d47cbee-2d89-4195-b7ed-b55aea5b1a48",
- "type": "workflow_noop_step"
}
]
}
}, - "links": {
- "parent": "/api/projects/opc",
- "self": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269"
}
}, - "included": [
- {
- "id": "3c6ddcf6-cb3a-48ba-873d-c455a1f1fd99",
- "type": "workflow",
- "attributes": {
- "code": "assets",
- "name": "assets workflow",
- "description": "workflow for assets",
- "state": "ready",
- "created_by": "gonzalo_fadel",
- "version_description": "Updated the assets workflow to include a new step",
- "created_at": "2025-01-14T06:04:41.048958Z",
- "steps": [
- {
- "type": "change",
- "name": "run asset action",
- "target": "/projects/opc/assets/prj_soa",
- "action": "run"
}
], - "commit_sha": "44d39e28c3a7fbc6a8dd09ea22de3c9afdf9bd3b"
}, - "links": {
- "self": "/api/projects/opc/workflows/assets?sha=44d39e28c3a7fbc6a8dd09ea22de3c9afdf9bd3b",
- "latest_version": "/api/projects/opc/workflows/assets",
- "project": "/api/projects/opc",
- "runs": "/api/projects/opc/workflows/assets/runs"
}
}, - {
- "id": "d3b566af-3958-4d1d-93bd-7201cac6b112",
- "type": "workflow_change_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "marlin_hoppe",
- "name": "quantify",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:41.200707Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:41.200707Z",
- "action": "quantify"
}, - "relationships": {
- "change": {
- "data": null
}, - "change_parent": {
- "data": {
- "id": "8cc5b9ee-16c3-4099-b866-62596ed34881",
- "type": "asset"
}
}, - "workflow_run": {
- "data": {
- "id": "60baa11d-1c12-4271-98f4-9a84f11dc269",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269/steps/d3b566af-3958-4d1d-93bd-7201cac6b112",
- "parent": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269/steps/4d47cbee-2d89-4195-b7ed-b55aea5b1a48",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269"
}
}, - {
- "id": "a3f8673c-6474-4865-8421-f5084d0a7e21",
- "type": "workflow_change_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "marlin_hoppe",
- "name": "index",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:41.319664Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:41.319664Z",
- "action": "index"
}, - "relationships": {
- "change": {
- "data": null
}, - "change_parent": {
- "data": {
- "id": "d7c26f12-f829-4fed-91dd-38eca176f9ac",
- "type": "asset"
}
}, - "workflow_run": {
- "data": {
- "id": "60baa11d-1c12-4271-98f4-9a84f11dc269",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269/steps/a3f8673c-6474-4865-8421-f5084d0a7e21",
- "parent": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269/steps/03b9362d-988b-4436-be52-b4b475da75f0",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269"
}
}, - {
- "id": "772947cc-d3f4-40e8-87be-c077ae760cac",
- "type": "workflow_wait_step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "marlin_hoppe",
- "name": "Wait",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:41.324275Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:41.324275Z"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "60baa11d-1c12-4271-98f4-9a84f11dc269",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269/steps/772947cc-d3f4-40e8-87be-c077ae760cac",
- "parent": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269/steps/03b9362d-988b-4436-be52-b4b475da75f0",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269"
}
}, - {
- "id": "db59b8fd-6a2c-4a51-b135-105ceddbf56d",
- "type": "workflow_workflow_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "marlin_hoppe",
- "name": "child workflow",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:41.334831Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:41.334831Z",
- "code": "child"
}, - "relationships": {
- "child_workflow": {
- "data": {
- "id": "98d4569c-e131-42ac-b0b9-056cf057c92c",
- "type": "workflow"
}
}, - "child_workflow_run": {
- "data": null
}, - "workflow_run": {
- "data": {
- "id": "60baa11d-1c12-4271-98f4-9a84f11dc269",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269/steps/db59b8fd-6a2c-4a51-b135-105ceddbf56d",
- "parent": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269/steps/03b9362d-988b-4436-be52-b4b475da75f0",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269"
}
}, - {
- "id": "03b9362d-988b-4436-be52-b4b475da75f0",
- "type": "workflow_noop_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "marlin_hoppe",
- "name": "eaque",
- "status_code": "success",
- "created_at": "2025-01-14T06:04:41.062794Z",
- "started_at": "2025-01-14T05:56:02.130146Z",
- "finished_at": "2025-01-14T06:01:12.490409Z",
- "updated_at": "2025-01-14T06:04:41.062794Z",
- "child_execution_strategy": "sequential"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "60baa11d-1c12-4271-98f4-9a84f11dc269",
- "type": "workflow_run"
}
}, - "children": {
- "data": [
- {
- "id": "4d47cbee-2d89-4195-b7ed-b55aea5b1a48",
- "type": "workflow_noop_step"
}, - {
- "id": "a3f8673c-6474-4865-8421-f5084d0a7e21",
- "type": "workflow_change_step"
}, - {
- "id": "772947cc-d3f4-40e8-87be-c077ae760cac",
- "type": "workflow_wait_step"
}, - {
- "id": "db59b8fd-6a2c-4a51-b135-105ceddbf56d",
- "type": "workflow_workflow_step"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269/steps/03b9362d-988b-4436-be52-b4b475da75f0",
- "parent": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269"
}
}, - {
- "id": "4d47cbee-2d89-4195-b7ed-b55aea5b1a48",
- "type": "workflow_noop_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 2,
- "created_by": "marlin_hoppe",
- "name": "omnis",
- "status_code": "running",
- "created_at": "2025-01-14T06:04:41.065908Z",
- "started_at": "2025-01-14T06:04:41.196067Z",
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:41.197761Z",
- "child_execution_strategy": "sequential"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "60baa11d-1c12-4271-98f4-9a84f11dc269",
- "type": "workflow_run"
}
}, - "children": {
- "data": [
- {
- "id": "d3b566af-3958-4d1d-93bd-7201cac6b112",
- "type": "workflow_change_step"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269/steps/4d47cbee-2d89-4195-b7ed-b55aea5b1a48",
- "parent": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269/steps/03b9362d-988b-4436-be52-b4b475da75f0",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/60baa11d-1c12-4271-98f4-9a84f11dc269"
}
}
]
}
Cancels a workflow run.
project_code required | string Example: opc project code |
workflow_code required | string Example: assets workflow code |
run_id required | string Example: 963bd5c2-62b3-4e01-af8b-7f13f5c08355 workflow run id |
{ }
{- "data": [
- {
- "id": "97851f5e-e15a-4f7b-944e-6adc1826b4f7",
- "type": "workflow_noop_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "kelvin_waelchi",
- "name": "sed",
- "status_code": "success",
- "created_at": "2025-01-14T06:04:44.911065Z",
- "started_at": "2025-01-14T05:57:32.535075Z",
- "finished_at": "2025-01-14T06:01:15.356812Z",
- "updated_at": "2025-01-14T06:04:44.911065Z",
- "child_execution_strategy": "sequential"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "2e8b5439-8780-4662-ab2b-c6b2c76aea38",
- "type": "workflow_run"
}
}, - "children": {
- "data": [
- {
- "id": "b48dce55-2e4e-48d0-bedd-0bf98a99454b",
- "type": "workflow_noop_step"
}, - {
- "id": "25fd2038-c741-4628-be81-eb3a9c156f25",
- "type": "workflow_change_step"
}, - {
- "id": "6ff5314b-c5df-4d76-acc7-2f3cdda40dcb",
- "type": "workflow_wait_step"
}, - {
- "id": "678a4146-f48e-4cb8-9194-39cda70d0136",
- "type": "workflow_workflow_step"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38/steps/97851f5e-e15a-4f7b-944e-6adc1826b4f7",
- "parent": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38"
}
}, - {
- "id": "b48dce55-2e4e-48d0-bedd-0bf98a99454b",
- "type": "workflow_noop_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 2,
- "created_by": "kelvin_waelchi",
- "name": "optio",
- "status_code": "running",
- "created_at": "2025-01-14T06:04:44.914747Z",
- "started_at": "2025-01-14T06:04:45.041552Z",
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:45.042757Z",
- "child_execution_strategy": "sequential"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "2e8b5439-8780-4662-ab2b-c6b2c76aea38",
- "type": "workflow_run"
}
}, - "children": {
- "data": [
- {
- "id": "d6cd3788-2ea9-4a52-9aac-a25e09d35ead",
- "type": "workflow_change_step"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38/steps/b48dce55-2e4e-48d0-bedd-0bf98a99454b",
- "parent": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38/steps/97851f5e-e15a-4f7b-944e-6adc1826b4f7",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38"
}
}, - {
- "id": "d6cd3788-2ea9-4a52-9aac-a25e09d35ead",
- "type": "workflow_change_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "kelvin_waelchi",
- "name": "index",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:45.045856Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:45.045856Z",
- "action": "index"
}, - "relationships": {
- "change": {
- "data": null
}, - "change_parent": {
- "data": {
- "id": "bf4eb40d-dbd0-4d6e-85bd-523a9fc702b9",
- "type": "asset"
}
}, - "workflow_run": {
- "data": {
- "id": "2e8b5439-8780-4662-ab2b-c6b2c76aea38",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38/steps/d6cd3788-2ea9-4a52-9aac-a25e09d35ead",
- "parent": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38/steps/b48dce55-2e4e-48d0-bedd-0bf98a99454b",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38"
}
}, - {
- "id": "25fd2038-c741-4628-be81-eb3a9c156f25",
- "type": "workflow_change_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "kelvin_waelchi",
- "name": "override",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:45.165150Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:45.165150Z",
- "action": "override"
}, - "relationships": {
- "change": {
- "data": null
}, - "change_parent": {
- "data": {
- "id": "40102bff-2fbd-4e73-86ec-59ee9e5ee7cc",
- "type": "asset"
}
}, - "workflow_run": {
- "data": {
- "id": "2e8b5439-8780-4662-ab2b-c6b2c76aea38",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38/steps/25fd2038-c741-4628-be81-eb3a9c156f25",
- "parent": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38/steps/97851f5e-e15a-4f7b-944e-6adc1826b4f7",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38"
}
}, - {
- "id": "6ff5314b-c5df-4d76-acc7-2f3cdda40dcb",
- "type": "workflow_wait_step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "kelvin_waelchi",
- "name": "Wait",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:45.170169Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:45.170169Z"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "2e8b5439-8780-4662-ab2b-c6b2c76aea38",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38/steps/6ff5314b-c5df-4d76-acc7-2f3cdda40dcb",
- "parent": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38/steps/97851f5e-e15a-4f7b-944e-6adc1826b4f7",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38"
}
}, - {
- "id": "678a4146-f48e-4cb8-9194-39cda70d0136",
- "type": "workflow_workflow_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "kelvin_waelchi",
- "name": "child workflow",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:45.181110Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:45.181110Z",
- "code": "child"
}, - "relationships": {
- "child_workflow": {
- "data": {
- "id": "226f5865-d9b2-4e75-8cc4-4ff59cf9e4bd",
- "type": "workflow"
}
}, - "child_workflow_run": {
- "data": null
}, - "workflow_run": {
- "data": {
- "id": "2e8b5439-8780-4662-ab2b-c6b2c76aea38",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38/steps/678a4146-f48e-4cb8-9194-39cda70d0136",
- "parent": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38/steps/97851f5e-e15a-4f7b-944e-6adc1826b4f7",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/2e8b5439-8780-4662-ab2b-c6b2c76aea38"
}
}
]
}
Lists all steps in a workflow run.
project_code required | string Example: opc project code |
workflow_code required | string Example: assets workflow code |
run_id required | string Example: 963bd5c2-62b3-4e01-af8b-7f13f5c08355 workflow run id |
{- "data": [
- {
- "id": "181beaf5-190e-4a1b-8f28-4dfe710fc9d8",
- "type": "workflow_noop_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "lacy",
- "name": "sint",
- "status_code": "success",
- "created_at": "2025-01-14T06:04:45.544853Z",
- "started_at": "2025-01-14T05:57:54.304273Z",
- "finished_at": "2025-01-14T05:58:05.462112Z",
- "updated_at": "2025-01-14T06:04:45.544853Z",
- "child_execution_strategy": "sequential"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "da246da0-555b-4f27-b4eb-884ce0574bb0",
- "type": "workflow_run"
}
}, - "children": {
- "data": [
- {
- "id": "34d32a0c-2e6d-4c64-9f48-21f8bfaa928e",
- "type": "workflow_noop_step"
}, - {
- "id": "1295c4f0-4b50-4883-9942-7305977bf5ea",
- "type": "workflow_change_step"
}, - {
- "id": "0eb6a3c0-a72d-4c13-bfb9-3da004c4a1e1",
- "type": "workflow_wait_step"
}, - {
- "id": "0ce29d36-0e22-47dd-bbe8-31558b8e26a6",
- "type": "workflow_workflow_step"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0/steps/181beaf5-190e-4a1b-8f28-4dfe710fc9d8",
- "parent": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0"
}
}, - {
- "id": "34d32a0c-2e6d-4c64-9f48-21f8bfaa928e",
- "type": "workflow_noop_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 2,
- "created_by": "lacy",
- "name": "ipsam",
- "status_code": "running",
- "created_at": "2025-01-14T06:04:45.547952Z",
- "started_at": "2025-01-14T06:04:45.678837Z",
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:45.680012Z",
- "child_execution_strategy": "sequential"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "da246da0-555b-4f27-b4eb-884ce0574bb0",
- "type": "workflow_run"
}
}, - "children": {
- "data": [
- {
- "id": "25ffb169-111b-42bf-b737-e3ad8438d380",
- "type": "workflow_change_step"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0/steps/34d32a0c-2e6d-4c64-9f48-21f8bfaa928e",
- "parent": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0/steps/181beaf5-190e-4a1b-8f28-4dfe710fc9d8",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0"
}
}, - {
- "id": "25ffb169-111b-42bf-b737-e3ad8438d380",
- "type": "workflow_change_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "lacy",
- "name": "synthesize",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:45.683165Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:45.683165Z",
- "action": "synthesize"
}, - "relationships": {
- "change": {
- "data": null
}, - "change_parent": {
- "data": {
- "id": "a444d879-6f4c-451f-aba0-faf7557a6043",
- "type": "asset"
}
}, - "workflow_run": {
- "data": {
- "id": "da246da0-555b-4f27-b4eb-884ce0574bb0",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0/steps/25ffb169-111b-42bf-b737-e3ad8438d380",
- "parent": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0/steps/34d32a0c-2e6d-4c64-9f48-21f8bfaa928e",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0"
}
}, - {
- "id": "1295c4f0-4b50-4883-9942-7305977bf5ea",
- "type": "workflow_change_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "lacy",
- "name": "quantify",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:45.807032Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:45.807032Z",
- "action": "quantify"
}, - "relationships": {
- "change": {
- "data": null
}, - "change_parent": {
- "data": {
- "id": "8701c09e-8165-41b3-bdb0-d0665b4779d4",
- "type": "asset"
}
}, - "workflow_run": {
- "data": {
- "id": "da246da0-555b-4f27-b4eb-884ce0574bb0",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0/steps/1295c4f0-4b50-4883-9942-7305977bf5ea",
- "parent": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0/steps/181beaf5-190e-4a1b-8f28-4dfe710fc9d8",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0"
}
}, - {
- "id": "0eb6a3c0-a72d-4c13-bfb9-3da004c4a1e1",
- "type": "workflow_wait_step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "lacy",
- "name": "Wait",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:45.811863Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:45.811863Z"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "da246da0-555b-4f27-b4eb-884ce0574bb0",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0/steps/0eb6a3c0-a72d-4c13-bfb9-3da004c4a1e1",
- "parent": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0/steps/181beaf5-190e-4a1b-8f28-4dfe710fc9d8",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0"
}
}, - {
- "id": "0ce29d36-0e22-47dd-bbe8-31558b8e26a6",
- "type": "workflow_workflow_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "lacy",
- "name": "child workflow",
- "status_code": "pending",
- "created_at": "2025-01-14T06:04:45.822874Z",
- "started_at": null,
- "finished_at": null,
- "updated_at": "2025-01-14T06:04:45.822874Z",
- "code": "child"
}, - "relationships": {
- "child_workflow": {
- "data": {
- "id": "90ff20d3-e5bd-4a8a-a6a1-4dc486cac57f",
- "type": "workflow"
}
}, - "child_workflow_run": {
- "data": null
}, - "workflow_run": {
- "data": {
- "id": "da246da0-555b-4f27-b4eb-884ce0574bb0",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0/steps/0ce29d36-0e22-47dd-bbe8-31558b8e26a6",
- "parent": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0/steps/181beaf5-190e-4a1b-8f28-4dfe710fc9d8",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/da246da0-555b-4f27-b4eb-884ce0574bb0"
}
}
]
}
Shows a workflow step.
step_id required | string Example: 51c27fc2-6720-4b91-a867-4c57156eb85f workflow step id |
{- "data": {
- "id": "60c74ce4-c243-46e4-90c0-a1e0ae8f687f",
- "type": "workflow_noop_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "jesus_kihn",
- "name": "corporis",
- "status_code": "success",
- "created_at": "2025-01-14T06:04:47.272644Z",
- "started_at": "2025-01-14T05:55:31.178291Z",
- "finished_at": "2025-01-14T06:01:50.747095Z",
- "updated_at": "2025-01-14T06:04:47.272644Z",
- "child_execution_strategy": "sequential"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "f5f7eba4-c143-4a24-bc9e-9bb68e888611",
- "type": "workflow_run"
}
}, - "children": {
- "data": [
- {
- "id": "ca541477-1bd2-4f72-9f7e-d5b2f348388e",
- "type": "workflow_noop_step"
}, - {
- "id": "aa62f157-8dfc-4a2c-8fe7-1be303effbe2",
- "type": "workflow_change_step"
}, - {
- "id": "3d9d6d6e-ea37-4954-ab8b-9ca9e63a5e82",
- "type": "workflow_wait_step"
}, - {
- "id": "c960e50c-f4fc-49cb-ae90-bb0f2d088f9d",
- "type": "workflow_workflow_step"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/f5f7eba4-c143-4a24-bc9e-9bb68e888611/steps/60c74ce4-c243-46e4-90c0-a1e0ae8f687f",
- "parent": "/api/projects/opc/workflows/assets/runs/f5f7eba4-c143-4a24-bc9e-9bb68e888611",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/f5f7eba4-c143-4a24-bc9e-9bb68e888611"
}
}
}
Shows a step of a workflow run.
project_code required | string Example: opc project code |
workflow_code required | string Example: assets workflow code |
run_id required | string Example: 963bd5c2-62b3-4e01-af8b-7f13f5c08355 workflow run id |
step_id required | string Example: 51c27fc2-6720-4b91-a867-4c57156eb85f workflow step id |
{- "data": {
- "id": "fae07ca1-de13-4287-812b-21d516a2e5bf",
- "type": "workflow_noop_step",
- "attributes": {
- "requires_approval_from": null,
- "lock_version": 0,
- "created_by": "shad_lind",
- "name": "explicabo",
- "status_code": "success",
- "created_at": "2025-01-14T06:04:48.378992Z",
- "started_at": "2025-01-14T05:58:22.574745Z",
- "finished_at": "2025-01-14T05:58:24.766330Z",
- "updated_at": "2025-01-14T06:04:48.378992Z",
- "child_execution_strategy": "sequential"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "af9fd392-372e-4748-9efc-60bc86bef81d",
- "type": "workflow_run"
}
}, - "children": {
- "data": [
- {
- "id": "81b3366c-66d0-4c94-9487-b6628f95eafd",
- "type": "workflow_noop_step"
}, - {
- "id": "a8f9f47e-8d23-4323-b914-66b0aff63bde",
- "type": "workflow_change_step"
}, - {
- "id": "6eebc3d2-973b-470e-9580-6795e298755a",
- "type": "workflow_wait_step"
}, - {
- "id": "2922ae47-ce15-4297-820e-060984af9873",
- "type": "workflow_workflow_step"
}
]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/af9fd392-372e-4748-9efc-60bc86bef81d/steps/fae07ca1-de13-4287-812b-21d516a2e5bf",
- "parent": "/api/projects/opc/workflows/assets/runs/af9fd392-372e-4748-9efc-60bc86bef81d",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/af9fd392-372e-4748-9efc-60bc86bef81d"
}
}
}
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: assets workflow code |
run_id required | string Example: 963bd5c2-62b3-4e01-af8b-7f13f5c08355 workflow run id |
step_id required | string Example: 411213fd-5a6d-4a14-933c-19ac9f8cbaeb workflow step id |
object |
{- "data": {
- "attributes": {
- "message": "Done sanity checks. Ok to continue."
}
}
}
{- "data": {
- "id": "2f74b412-c7a5-439c-9a0a-14e1c946921b",
- "type": "workflow_wait_step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [ ],
- "continued_by": [
- {
- "username": "carrol.hilpert",
- "message": null
}
], - "requires_approval_from": null,
- "lock_version": 1,
- "created_by": "abraham_yost",
- "name": "Wait",
- "status_code": "continued",
- "created_at": "2025-01-14T05:58:25.553546Z",
- "started_at": "2025-01-14T05:59:25.553546Z",
- "finished_at": "2025-01-14T06:04:51.192603Z",
- "updated_at": "2025-01-14T06:04:51.201157Z"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "35aa768d-f38e-4e90-9d40-a57a380fdcc1",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/35aa768d-f38e-4e90-9d40-a57a380fdcc1/steps/2f74b412-c7a5-439c-9a0a-14e1c946921b",
- "parent": "/api/projects/opc/workflows/assets/runs/35aa768d-f38e-4e90-9d40-a57a380fdcc1/steps/1f207c0b-2c7d-43a4-a996-c232a69cb68b",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/35aa768d-f38e-4e90-9d40-a57a380fdcc1"
}
}
}
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: assets workflow code |
run_id required | string Example: 963bd5c2-62b3-4e01-af8b-7f13f5c08355 workflow run id |
step_id required | string Example: 411213fd-5a6d-4a14-933c-19ac9f8cbaeb workflow step id |
object |
{- "data": {
- "attributes": {
- "message": "Ok to proceed."
}
}
}
{- "data": {
- "id": "973543ec-40d5-4ca6-adc6-9a3cb35cb3bf",
- "type": "workflow_wait_step",
- "attributes": {
- "approved_by": [
- {
- "username": "eveline",
- "message": null
}
], - "rejected_by": [ ],
- "continued_by": [ ],
- "requires_approval_from": "an-ldap-group",
- "lock_version": 1,
- "created_by": "kent",
- "name": "Approval",
- "status_code": "approved",
- "created_at": "2025-01-14T05:54:55.497230Z",
- "started_at": "2025-01-14T05:55:55.497230Z",
- "finished_at": "2025-01-14T06:04:52.842072Z",
- "updated_at": "2025-01-14T06:04:52.850972Z"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "e4a7cbef-661e-4fad-bb71-655e94502c03",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/e4a7cbef-661e-4fad-bb71-655e94502c03/steps/973543ec-40d5-4ca6-adc6-9a3cb35cb3bf",
- "parent": "/api/projects/opc/workflows/assets/runs/e4a7cbef-661e-4fad-bb71-655e94502c03/steps/81b5397f-1d39-4a54-8442-19d632b5cd05",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/e4a7cbef-661e-4fad-bb71-655e94502c03"
}
}
}
Reject a workflow step that requires approval.
project_code required | string Example: opc project code |
workflow_code required | string Example: assets workflow code |
run_id required | string Example: 963bd5c2-62b3-4e01-af8b-7f13f5c08355 workflow run id |
step_id required | string Example: 411213fd-5a6d-4a14-933c-19ac9f8cbaeb workflow step id |
object |
{- "data": {
- "attributes": {
- "message": "Ok to proceed."
}
}
}
{- "data": {
- "id": "5343283b-1593-4a31-9af3-fd21810cccc5",
- "type": "workflow_wait_step",
- "attributes": {
- "approved_by": [ ],
- "rejected_by": [
- {
- "username": "lanita",
- "message": null
}
], - "continued_by": [ ],
- "requires_approval_from": "an-ldap-group",
- "lock_version": 1,
- "created_by": "stephan",
- "name": "Approval",
- "status_code": "rejected",
- "created_at": "2025-01-14T05:56:48.703566Z",
- "started_at": "2025-01-14T05:57:48.703566Z",
- "finished_at": "2025-01-14T06:04:55.168362Z",
- "updated_at": "2025-01-14T06:04:55.171666Z"
}, - "relationships": {
- "workflow_run": {
- "data": {
- "id": "282d62e6-093c-4ac3-9583-d2a77d244780",
- "type": "workflow_run"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/workflows/assets/runs/282d62e6-093c-4ac3-9583-d2a77d244780/steps/5343283b-1593-4a31-9af3-fd21810cccc5",
- "parent": "/api/projects/opc/workflows/assets/runs/282d62e6-093c-4ac3-9583-d2a77d244780/steps/21141975-4d01-44b7-8216-4bbc8a682d67",
- "workflow_run": "/api/projects/opc/workflows/assets/runs/282d62e6-093c-4ac3-9583-d2a77d244780"
}
}
}
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": "191ac5c3-56c8-4fad-a705-57f1c53cd0c1",
- "type": "event",
- "attributes": {
- "nested": {
- "key": "nested value"
}, - "any_key": "with a value",
- "another_key": "with a different value",
- "username": "myles",
- "system": false,
- "type": "my custom event",
- "created_at": "2025-01-14T06:04:13.663677Z"
}, - "relationships": {
- "source": {
- "links": {
- "source": "/api/projects/opc"
}, - "data": {
- "id": "507a0591-3301-4b4a-b3a3-2c80b32127a3",
- "type": "project"
}
}
}, - "links": {
- "self": "/api/events/191ac5c3-56c8-4fad-a705-57f1c53cd0c1"
}
}
], - "meta": {
- "partial_response": false
}
}
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": "89fb89e9-8b4b-47a4-bef5-6a9288d48368",
- "type": "event",
- "attributes": {
- "some": "event data",
- "username": "willy.koepp",
- "system": false,
- "type": "my event",
- "created_at": "2025-01-14T06:04:13.874363Z"
}, - "relationships": {
- "source": {
- "links": {
- "source": null
}
}
}, - "links": {
- "self": "/api/events/89fb89e9-8b4b-47a4-bef5-6a9288d48368"
}
}
}
Shows an event.
event_id required | string Example: 49669105-cb47-4f7f-87d1-c52d3dd35058 event id |
{- "data": {
- "id": "3db1adac-bcf4-4e69-b94d-00f9111d0238",
- "type": "event",
- "attributes": {
- "nested": {
- "key": "nested value"
}, - "any_key": "with a value",
- "another_key": "with a different value",
- "username": "vincent_crona",
- "system": false,
- "type": "my custom event",
- "created_at": "2025-01-14T06:04:14.245892Z"
}, - "relationships": {
- "source": {
- "links": {
- "source": "/api/projects/opc"
}, - "data": {
- "id": "8a1a96c2-3f42-435a-a971-7a46d6f3e551",
- "type": "project"
}
}
}, - "links": {
- "self": "/api/events/3db1adac-bcf4-4e69-b94d-00f9111d0238"
}
}
}
Endpoints to interact with settings.
Shows the current settings.
settings_id required | string Example: c3d1a6e7-7ef4-4c9e-9a16-b94f4b413f39 settings id |
{- "data": {
- "id": "dcbcdde7-05bb-4c0a-8b77-d44cc065d014",
- "type": "settings",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5
}, - "version": 1,
- "created_at": "2025-01-14T06:04:27.254640Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/settings/dcbcdde7-05bb-4c0a-8b77-d44cc065d014",
- "current_version": "/api/settings/dcbcdde7-05bb-4c0a-8b77-d44cc065d014/versions/1",
- "versions": "/api/settings/dcbcdde7-05bb-4c0a-8b77-d44cc065d014/versions"
}
}
}
Updates a settings JSON if the included version matches the current settings version.
id_to_update required | string Example: c3d1a6e7-7ef4-4c9e-9a16-b94f4b413f39 settings id |
required | object |
{- "data": {
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5,
}, - "version": 1
}
}
}
{- "data": {
- "id": "d3f21815-a056-4acd-ad35-568c9a1ea6d1",
- "type": "settings",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5,
}, - "version": 2,
- "created_at": "2025-01-14T06:04:27.454288Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/settings/d3f21815-a056-4acd-ad35-568c9a1ea6d1",
- "current_version": "/api/settings/d3f21815-a056-4acd-ad35-568c9a1ea6d1/versions/2",
- "versions": "/api/settings/d3f21815-a056-4acd-ad35-568c9a1ea6d1/versions"
}
}
}
Updates a settings JSON, without any version checking (always updates).
id_to_set required | string Example: c3d1a6e7-7ef4-4c9e-9a16-b94f4b413f39 settings id |
required | object |
{- "data": {
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5,
}
}
}
}
{- "data": {
- "id": "3afec9e2-dff5-4923-b785-6710a42af36e",
- "type": "settings",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5,
}, - "version": 2,
- "created_at": "2025-01-14T06:04:27.920500Z"
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/settings/3afec9e2-dff5-4923-b785-6710a42af36e",
- "current_version": "/api/settings/3afec9e2-dff5-4923-b785-6710a42af36e/versions/2",
- "versions": "/api/settings/3afec9e2-dff5-4923-b785-6710a42af36e/versions"
}
}
}
Endpoints to interact with the version history for settings.
Lists all versions of an OpsChain settings.
settings_id required | string Example: c3d1a6e7-7ef4-4c9e-9a16-b94f4b413f39 settings id |
{- "data": [
- {
- "id": "ee0ad4d0-477e-4151-9a06-ded8764fee8d",
- "type": "settings_version",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5
}, - "version": 1,
- "created_at": "2025-01-14T06:04:28.256495Z"
}, - "relationships": {
- "settings": {
- "data": {
- "id": "28df63ce-1ba4-423a-bd46-d47c1eb15b53",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/28df63ce-1ba4-423a-bd46-d47c1eb15b53"
}
}
}, - "links": {
- "versions": "/api/settings/28df63ce-1ba4-423a-bd46-d47c1eb15b53/versions",
- "owner": "/api/projects/opc",
- "self": "/api/settings/28df63ce-1ba4-423a-bd46-d47c1eb15b53/versions/1"
}
}
]
}
Shows the settings values for this settings version.
settings_id required | string Example: c3d1a6e7-7ef4-4c9e-9a16-b94f4b413f39 settings id |
version_number required | integer Example: 1 version number |
{- "data": {
- "id": "4f86da06-5282-4df2-bdd5-508e7d302293",
- "type": "settings_version",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5
}, - "version": 1,
- "created_at": "2025-01-14T06:04:28.469915Z"
}, - "relationships": {
- "settings": {
- "data": {
- "id": "002326f5-30b7-4799-a413-83013412886a",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/002326f5-30b7-4799-a413-83013412886a"
}
}
}, - "links": {
- "versions": "/api/settings/002326f5-30b7-4799-a413-83013412886a/versions",
- "owner": "/api/projects/opc",
- "self": "/api/settings/002326f5-30b7-4799-a413-83013412886a/versions/1"
}
}
}