OpsChain API (v1)

Download OpenAPI specification:Download

Introduction

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.

Projects

Endpoints to interact with projects.

Notes:

  • The show and list response payloads include links to the project's assets, changes, scheduled activity, bookmarks and MintModels endpoints. These endpoints act like the assets, changes, scheduled activity, bookmarks and MintModels endpoints respectively.
  • The list, create, show, update and archive asset endpoints are available via the /<path/to/asset/owner>/assets path. The example endpoints in this section reflect assets owned by a project.

List projects

Lists all projects (including archived projects).

Each project in the response includes a link to:

  • the project's changes endpoint for managing changes belonging to this project. It acts like the changes endpoint.
  • the project's scheduled_activities endpoint for managing scheduled activities belonging to this project. It acts like a scheduled activities endpoint.
  • the project's bookmarks endpoint for managing the bookmarks belonging to this project. It acts like a bookmarks endpoint.
  • the project's mintmodels endpoint for managing the MintModels belonging to this project. It acts like a MintModels endpoint.
  • the project's mintmodel_history endpoint for viewing this project's MintModel history. It acts like a MintModel history endpoint.
  • the project's workflows endpoint for viewing this project's workflows. It acts like a Workflows endpoint. .
query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[code_eq]=opc
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.

Responses

Response Schema: application/vnd.api+json
required
Array of objects
object

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "ec633654-07ef-48cb-99c1-5d6827b96db3",
      • "type": "project",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": {
        }
      }
    ],
  • "meta": {
    • "authorisations": {
      • "update": true
      }
    }
}

Create project

Creates a project.

Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "code": "opc",
      • "name": "OpsChain",
      • "description": "OpsChain project",
      • "project_type": "Enterprise"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "7984a84f-6f09-4088-a6f2-9ca6837a9272",
    • "type": "project",
    • "attributes": {
      • "code": "zm8gl",
      • "name": "molestias314",
      • "description": "Nostrum voluptatem necessitatibus praesentium.",
      • "archived": false,
      • "project_type": "Standard"
      },
    • "relationships": {
      • "properties": {
        },
      • "parents": {
        },
      • "settings": {
        },
      • "children": {
        },
      • "bookmarks": {
        }
      },
    • "links": {
      • "self": "/api/projects/zm8gl",
      • "bookmarks": "/api/projects/zm8gl/bookmarks",
      • "git_remotes": "/api/projects/zm8gl/git_remotes",
      • "environments": "/api/projects/zm8gl/environments"
      },
    • "meta": {
      • "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": [
        ],
      • "can_have_workflows": false,
      • "authorisations": {
        }
      }
    }
}

Show project

Shows a project, including any direct children.

The response includes a link to:

  • the project's changes endpoint for managing changes belonging to this project. It acts like the changes endpoint.
  • the project's scheduled_activities endpoint for managing scheduled activities belonging to this project. It acts like a scheduled activities endpoint.
  • the project's bookmarks endpoint for managing the bookmarks belonging to this project. It acts like a bookmarks endpoint.
  • the project's mintmodels endpoint for managing the MintModels belonging to this project. It acts like a MintModels endpoint.
  • the project's mintmodel_history endpoint for viewing this project's MintModel history. It acts like a MintModel history endpoint.
  • the project's workflows endpoint for viewing this project's workflows. It acts like a Workflows endpoint. .
path Parameters
project_code
required
string
Example: opc

project code

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects or objects

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "8612863f-b06d-49a0-a24b-77174dfec330",
    • "type": "project",
    • "attributes": {
      • "code": "opc",
      • "name": "OpsChain",
      • "description": "OpsChain project",
      • "archived": false,
      • "project_type": "Enterprise"
      },
    • "relationships": {
      • "properties": {
        },
      • "parents": {
        },
      • "settings": {
        },
      • "children": {
        },
      • "bookmarks": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc",
      • "bookmarks": "/api/projects/opc/bookmarks",
      • "changes": "/api/projects/opc/changes",
      • "scheduled_activities": "/api/projects/opc/scheduled_activities",
      • "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_changes": true,
      • "can_have_children": true,
      • "can_have_properties": true,
      • "can_have_settings": true,
      • "can_have_templates": true,
      • "requires_template": false,
      • "child_node_types": [
        ],
      • "can_have_workflows": true,
      • "authorisations": {
        }
      }
    },
  • "included": [ ]
}

Update project

Updates a project.

path Parameters
project_code
required
string
Example: opc

project code

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects or objects

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "name": "Modified",
      • "description": "The updated project",
      • "archived": false
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "9c308448-e12f-462f-993b-7aeb4f09e0a5",
    • "type": "project",
    • "attributes": {
      • "code": "opc",
      • "name": "ea323",
      • "description": "Voluptate quisquam sunt tempore.",
      • "archived": true,
      • "project_type": "Standard"
      },
    • "relationships": {
      • "properties": {
        },
      • "parents": {
        },
      • "settings": {
        },
      • "children": {
        },
      • "bookmarks": {
        }
      },
    • "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_changes": false,
      • "can_have_children": true,
      • "can_have_properties": true,
      • "can_have_settings": true,
      • "can_have_templates": false,
      • "requires_template": false,
      • "child_node_types": [
        ],
      • "can_have_workflows": false,
      • "authorisations": {
        }
      }
    }
}

Archive project

Archives a project.

path Parameters
project_code
required
string
Example: opc

project code

Responses

Response samples

Content type
application/vnd.api+json
{ }

Environments

Endpoints to interact with environments.

Notes:

  • The show and list response payloads include links to the environment's assets, changes, scheduled activity, bookmarks and MintModels endpoints. These endpoints act like the assets, changes, scheduled activity, bookmarks and MintModels endpoints respectively.
  • The list, create, show, update and archive asset endpoints are available via the /<path/to/asset/owner>/assets path. The example endpoints in this section reflect assets owned by a project.

List environments

Lists all project environments (including archived environments).

Each environment in the response includes a link to:

  • the environment's changes endpoint for managing changes belonging to this environment. It acts like the changes endpoint.
  • the environment's scheduled_activities endpoint for managing scheduled activities belonging to this environment. It acts like a scheduled activities endpoint.
  • the environment's bookmarks endpoint for managing the bookmarks belonging to this environment. It acts like a bookmarks endpoint.
  • the environment's mintmodels endpoint for managing the MintModels belonging to this environment. It acts like a MintModels endpoint.
  • the environment's mintmodel_history endpoint for viewing this environment's MintModel history. It acts like a MintModel history endpoint.
  • the environment's workflows endpoint for viewing this environment's workflows. It acts like a Workflows endpoint. .
path Parameters
project_code
required
string
Example: opc

project code

query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[name_eq]=Test
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.

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "f928452f-005e-4f71-9223-1acaa5a3d5b7",
      • "type": "environment",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": {
        }
      }
    ]
}

Create environment

Creates an environment.

path Parameters
project_code
required
string
Example: opc

project code

Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "code": "dev",
      • "name": "Development",
      • "description": "OpsChain development environment"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "67f7556b-52fb-4889-86be-96e1b9c076f8",
    • "type": "environment",
    • "attributes": {
      • "code": "ucjtx",
      • "name": "quo272",
      • "description": "Et sunt quia nobis.",
      • "archived": false
      },
    • "relationships": {
      • "properties": {
        },
      • "parents": {
        },
      • "settings": {
        },
      • "project": {
        },
      • "children": {
        },
      • "bookmarks": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/environments/ucjtx",
      • "bookmarks": "/api/projects/opc/environments/ucjtx/bookmarks",
      • "changes": "/api/projects/opc/environments/ucjtx/changes",
      • "scheduled_activities": "/api/projects/opc/environments/ucjtx/scheduled_activities",
      • "parent": "/api/projects/opc",
      • "assets": "/api/projects/opc/environments/ucjtx/assets"
      },
    • "meta": {
      • "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": [
        ],
      • "can_have_workflows": false,
      • "authorisations": {
        }
      }
    }
}

Show environment

Shows an environment.

The response includes a link to:

  • the environment's changes endpoint for managing changes belonging to this environment. It acts like the changes endpoint.
  • the environment's scheduled_activities endpoint for managing scheduled activities belonging to this environment. It acts like a scheduled activities endpoint.
  • the environment's bookmarks endpoint for managing the bookmarks belonging to this environment. It acts like a bookmarks endpoint.
  • the environment's mintmodels endpoint for managing the MintModels belonging to this environment. It acts like a MintModels endpoint.
  • the environment's mintmodel_history endpoint for viewing this environment's MintModel history. It acts like a MintModel history endpoint.
  • the environment's workflows endpoint for viewing this environment's workflows. It acts like a Workflows endpoint. .
path Parameters
project_code
required
string
Example: opc

project code

environment_code
required
string
Example: dev

environment code

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects or objects

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "a5d0097a-d9f5-4601-8b9f-4e3ae0512464",
    • "type": "environment",
    • "attributes": {
      • "code": "dev",
      • "name": "Development",
      • "description": "OpsChain development environment",
      • "archived": false
      },
    • "relationships": {
      • "properties": {
        },
      • "parents": {
        },
      • "settings": {
        },
      • "project": {
        },
      • "children": {
        },
      • "bookmarks": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/environments/dev",
      • "bookmarks": "/api/projects/opc/environments/dev/bookmarks",
      • "changes": "/api/projects/opc/environments/dev/changes",
      • "scheduled_activities": "/api/projects/opc/environments/dev/scheduled_activities",
      • "parent": "/api/projects/opc",
      • "assets": "/api/projects/opc/environments/dev/assets"
      },
    • "meta": {
      • "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": [
        ],
      • "can_have_workflows": false,
      • "authorisations": {
        }
      }
    },
  • "included": [
    • {
      • "id": "2630a73f-6ede-4877-9657-fe0f8098f59e",
      • "type": "project",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": {
        }
      }
    ]
}

Update environment

Updates an environment.

path Parameters
project_code
required
string
Example: opc

project code

environment_code
required
string
Example: dev

environment code

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects or objects

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "name": "Modified",
      • "description": "The updated environment",
      • "archived": false
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "d42840b8-ed28-479d-91a1-c338eb8516ba",
    • "type": "environment",
    • "attributes": {
      • "code": "dev",
      • "name": "commodi282",
      • "description": "In et modi non.",
      • "archived": true
      },
    • "relationships": {
      • "properties": {
        },
      • "parents": {
        },
      • "settings": {
        },
      • "project": {
        },
      • "children": {
        },
      • "bookmarks": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/environments/dev",
      • "bookmarks": "/api/projects/opc/environments/dev/bookmarks",
      • "changes": "/api/projects/opc/environments/dev/changes",
      • "scheduled_activities": "/api/projects/opc/environments/dev/scheduled_activities",
      • "parent": "/api/projects/opc",
      • "assets": "/api/projects/opc/environments/dev/assets"
      },
    • "meta": {
      • "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": [
        ],
      • "can_have_workflows": false,
      • "authorisations": {
        }
      }
    }
}

Archive environment

Archives an environment.

path Parameters
project_code
required
string
Example: opc

project code

environment_code
required
string
Example: dev

environment code

Responses

Response samples

Content type
application/vnd.api+json
{ }

Assets

Endpoints to interact with assets.

Notes:

  • The show and list response payloads include links to the asset's changes, scheduled activity, bookmarks and MintModels endpoints. These endpoints act like the changes, scheduled activity, bookmarks and MintModels endpoints respectively.
  • The list, create, show, update and archive asset endpoints are available via the /<path/to/asset/owner>/assets path. The example endpoints in this section reflect assets owned by a project.

List assets

Lists all assets (including archived assets) that belong to the project.

Each asset in the response includes a link to:

  • the asset's changes endpoint for managing changes belonging to this asset. It acts like the changes endpoint.
  • the asset's scheduled_activities endpoint for managing scheduled activities belonging to this asset. It acts like a scheduled activities endpoint.
  • the asset's bookmarks endpoint for managing the bookmarks belonging to this asset. It acts like a bookmarks endpoint.
  • the asset's mintmodels endpoint for managing the MintModels belonging to this asset. It acts like a MintModels endpoint.
  • the asset's mintmodel_history endpoint for viewing this asset's MintModel history. It acts like a MintModel history endpoint.
  • the asset's workflows endpoint for viewing this asset's workflows. It acts like a Workflows endpoint. .
path Parameters
project_code
required
string
Example: opc

project code

query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[name_eq]=Test
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.

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "be5547a8-ed63-4e7e-ab1f-b0a8222297ee",
      • "type": "asset",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": {
        }
      }
    ]
}

Create asset

Creates an asset belonging to the project.

path Parameters
project_code
required
string
Example: opc

project code

Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "code": "prj_soa",
      • "name": "Project asset",
      • "description": "Project asset description",
      • "template_name": "Oracle SOA template",
      • "template_version": "2023_Q4_2"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "47a65f2c-402c-4b6c-b3e3-679bd7282904",
    • "type": "asset",
    • "attributes": {
      • "code": "81tze",
      • "name": "id244",
      • "description": "Necessitatibus eum consequatur aut.",
      • "archived": false,
      • "actions": [
        ],
      • "mintmodel_valid": true
      },
    • "relationships": {
      • "properties": {
        },
      • "parents": {
        },
      • "settings": {
        },
      • "project": {
        },
      • "template_version": {
        },
      • "bookmarks": {
        },
      • "template": {
        },
      • "mintmodel_history": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/assets/81tze",
      • "bookmarks": "/api/projects/opc/assets/81tze/bookmarks",
      • "changes": "/api/projects/opc/assets/81tze/changes",
      • "scheduled_activities": "/api/projects/opc/assets/81tze/scheduled_activities",
      • "converged_properties": "/api/projects/opc/assets/81tze/converged_properties",
      • "mintmodels": "/api/projects/opc/assets/81tze/mintmodels",
      • "mintmodel_history": "/api/projects/opc/assets/81tze/mintmodel_history",
      • "parent": "/api/projects/opc",
      • "version_history": "/api/projects/opc/assets/81tze/version_history"
      },
    • "meta": {
      • "can_have_changes": true,
      • "can_have_children": false,
      • "can_have_properties": true,
      • "can_have_settings": true,
      • "can_have_templates": false,
      • "requires_template": true,
      • "child_node_types": [ ],
      • "can_have_workflows": false,
      • "authorisations": {
        }
      }
    }
}

Show asset

Shows an asset belonging to a project.

The response includes a link to:

  • the asset's changes endpoint for managing changes belonging to this asset. It acts like the changes endpoint.
  • the asset's scheduled_activities endpoint for managing scheduled activities belonging to this asset. It acts like a scheduled activities endpoint.
  • the asset's bookmarks endpoint for managing the bookmarks belonging to this asset. It acts like a bookmarks endpoint.
  • the asset's mintmodels endpoint for managing the MintModels belonging to this asset. It acts like a MintModels endpoint.
  • the asset's mintmodel_history endpoint for viewing this asset's MintModel history. It acts like a MintModel history endpoint.
  • the asset's workflows endpoint for viewing this asset's workflows. It acts like a Workflows endpoint. .
path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects or objects or objects or objects

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "44084532-3ae9-4807-845f-d2e62d5520e7",
    • "type": "asset",
    • "attributes": {
      • "code": "prj_soa",
      • "name": "Project asset",
      • "description": "Project asset description",
      • "archived": false,
      • "actions": [
        ],
      • "mintmodel_valid": true
      },
    • "relationships": {
      • "properties": {
        },
      • "parents": {
        },
      • "settings": {
        },
      • "project": {
        },
      • "template_version": {
        },
      • "bookmarks": {
        },
      • "template": {
        },
      • "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",
      • "scheduled_activities": "/api/projects/opc/assets/prj_soa/scheduled_activities",
      • "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_changes": true,
      • "can_have_children": false,
      • "can_have_properties": true,
      • "can_have_settings": true,
      • "can_have_templates": false,
      • "requires_template": true,
      • "child_node_types": [ ],
      • "can_have_workflows": false,
      • "authorisations": {
        }
      }
    },
  • "included": [
    • {
      • "id": "cae938f2-84b3-4042-ad17-41421b1d4b69",
      • "type": "project",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": {
        }
      },
    • {
      • "id": "924e02c2-2919-4dd2-bbd8-6f07966c89f0",
      • "type": "mintmodel_history",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "63776acd-c53c-4c39-a366-2198fa1e3125",
      • "type": "bookmark",
      • "attributes": {},
      • "links": {
        }
      },
    • {
      • "id": "751600de-84c5-4469-8ee4-39e4841f2d9c",
      • "type": "template",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": null
      },
    • {
      • "id": "b271cac4-a006-46ba-b2eb-f7551b750912",
      • "type": "template_version",
      • "attributes": {
        },
      • "links": {
        }
      }
    ]
}

Update asset

Updates an asset belonging to a project.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects or objects or objects or objects

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "name": "Modified",
      • "description": "The updated asset",
      • "archived": false
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "fc92ca0e-54ff-4c49-97ad-7e38e5571a16",
    • "type": "asset",
    • "attributes": {
      • "code": "prj_soa",
      • "name": "asperiores254",
      • "description": "Sunt consequatur quam similique.",
      • "archived": true,
      • "actions": [
        ],
      • "mintmodel_valid": true
      },
    • "relationships": {
      • "properties": {
        },
      • "parents": {
        },
      • "settings": {
        },
      • "project": {
        },
      • "template_version": {
        },
      • "bookmarks": {
        },
      • "template": {
        },
      • "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",
      • "scheduled_activities": "/api/projects/opc/assets/prj_soa/scheduled_activities",
      • "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_changes": true,
      • "can_have_children": false,
      • "can_have_properties": true,
      • "can_have_settings": true,
      • "can_have_templates": false,
      • "requires_template": true,
      • "child_node_types": [ ],
      • "can_have_workflows": false,
      • "authorisations": {
        }
      }
    }
}

Archive asset

Archives an asset belonging to a project.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

Responses

Response samples

Content type
application/vnd.api+json
{ }

Show converged properties

Show the converged properties as they will appear to actions run on this asset. i.e. the endpoint will

  1. merge any template (repository) properties from the asset's template (in the order described in the documentation)
  2. merge any project properties
  3. merge any properties assigned to the project asset

The API response will also include all the individual repository and database properties that were included in the result.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[action_eq]=Test

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "prj_soa",
    • "type": "converged_properties",
    • "attributes": {
      • "data": {
        }
      },
    • "relationships": {
      • "repository_properties": {
        },
      • "properties": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/assets/prj_soa/converged_properties"
      }
    },
  • "included": [
    • {
      • "id": "892e9c52-2653-4170-87de-d279c2537135",
      • "type": "properties",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "88664b12-76dd-46fa-942c-e8882ec0cbaa",
      • "type": "properties",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "properties.yaml",
      • "type": "repository_properties",
      • "attributes": {
        },
      • "links": {
        }
      },
    • {
      • "id": "projects/opc.yaml",
      • "type": "repository_properties",
      • "attributes": {
        },
      • "links": {
        }
      }
    ]
}

List template version history

Lists the template versions that have been assigned to the asset.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[name_eq]=Test

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "9b218c55-2e5d-4b09-8d9c-5547c01e6e90",
      • "type": "template_version_history",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Show template version history

Shows a specific project asset's template version history record.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

id
required
string
Example: 172e0fd9-77fe-4e67-99ef-d7d2d9d12cf1

version history id

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "72c702be-2436-4f35-b8c0-5ec611ca0f18",
    • "type": "template_version_history",
    • "attributes": {
      • "active_from": "2025-04-25T06:21:23.984222Z",
      • "active_to": null
      },
    • "relationships": {
      • "owner": {
        },
      • "template_version": {
        }
      },
    • "links": {
      • "template_version": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
      • "self": "/api/projects/opc/assets/prj_soa/version_history/72c702be-2436-4f35-b8c0-5ec611ca0f18",
      • "asset": "/api/projects/opc/assets/prj_soa"
      }
    },
  • "included": [
    • {
      • "id": "f187f0a0-b7ae-4848-9af6-650c1184dd65",
      • "type": "asset",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": {
        }
      },
    • {
      • "id": "6952861c-6540-4ea3-8574-4367b71c0581",
      • "type": "template_version",
      • "attributes": {
        },
      • "links": {
        }
      }
    ]
}

Templates

Templates provide the available actions and a base set of repository properties that will be used to configure the asset.

List template versions

Lists all versions of a specific template.

path Parameters
project_code
required
string
Example: opc

project code

template_code
required
string
Example: soa

template code

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "5a85e720-a110-47ea-99b2-2cfee35d0e3f",
      • "type": "template_version",
      • "attributes": {
        },
      • "links": {
        }
      }
    ]
}

Create or update a template version

Create or update a template version.

path Parameters
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

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "description": "Added additional configuration options",
      • "git_rev": "online",
      • "archived": false
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "e1b21af4-339d-4048-ba23-df21180b1fb6",
    • "type": "template_version",
    • "attributes": {
      • "version": "2023_Q4_2",
      • "description": "Qui voluptatem rerum qui dolor",
      • "state": "initializing",
      • "created_by": "lucius.torp",
      • "archived": false,
      • "has_mintmodel": false,
      • "created_at": "2025-04-25T06:21:24.663096Z",
      • "updated_at": "2025-04-25T06:21:24.663096Z",
      • "git_rev": "optical",
      • "commit_sha": null
      },
    • "links": {
      • "self": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
      • "template": "/api/projects/opc/templates/soa"
      }
    }
}

Show template version

Shows a specific template version.

path Parameters
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

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "a73614eb-949f-4c8e-97fc-ab0e2c9396cd",
    • "type": "template_version",
    • "attributes": {
      • "version": "2023_Q4_2",
      • "description": "Added additional configuration options",
      • "state": "ready",
      • "created_by": "sherman.jones",
      • "archived": false,
      • "has_mintmodel": true,
      • "created_at": "2025-04-25T06:21:25.402729Z",
      • "updated_at": "2025-04-25T06:21:25.402729Z",
      • "git_rev": "neural",
      • "commit_sha": "249dd562c329d4c59d570bf8c523c695932fd642",
      • "actions": [
        ]
      },
    • "links": {
      • "self": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
      • "template": "/api/projects/opc/templates/soa"
      }
    }
}

Bulk assign assets to template versions

Assign assets to the template version.

path Parameters
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

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "asset_paths": [
        ]
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "923b6f3b-6f81-4cda-a488-14791bd39c4d",
    • "type": "template_version",
    • "attributes": {
      • "version": "2023_Q4_2",
      • "description": "Added additional configuration options",
      • "state": "ready",
      • "created_by": "jani_adams",
      • "archived": false,
      • "has_mintmodel": true,
      • "created_at": "2025-04-25T06:21:25.748474Z",
      • "updated_at": "2025-04-25T06:21:25.748474Z",
      • "git_rev": "mobile",
      • "commit_sha": "ac992536495a1d03d568188b14f305cdf168e5ad",
      • "actions": [
        ]
      },
    • "links": {
      • "self": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
      • "template": "/api/projects/opc/templates/soa"
      }
    }
}

Create template

Create a template.

path Parameters
project_code
required
string
Example: opc

project code

Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "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"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "500e9dc9-6bbf-4a5a-b16d-c381b5776f9f",
    • "type": "template",
    • "attributes": {
      • "name": "kathlyn_grimes",
      • "archived": false,
      • "disabled": false,
      • "created_at": "2025-04-25T06:21:26.533754Z",
      • "updated_at": "2025-04-25T06:21:26.533754Z",
      • "user": "{{hidden}}",
      • "password": "{{hidden}}",
      • "ssh_key_data": "{{hidden}}",
      • "code": "dr5rc",
      • "description": "Minima doloremque aut dolor."
      },
    • "relationships": {
      • "template_versions": {
        }
      },
    • "links": {
      • "project": "/api/projects/opc",
      • "self": "/api/projects/opc/templates/dr5rc",
      • "template_versions": "/api/projects/opc/templates/dr5rc/versions"
      },
    • "meta": null
    }
}

List templates

Lists all templates for a project.

path Parameters
project_code
required
string
Example: opc

project code

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "48a33b7a-66a2-4e85-a3ba-5f939ba8f459",
      • "type": "template",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": null
      }
    ]
}

Show template

Shows a project template.

path Parameters
project_code
required
string
Example: opc

project code

template_code
required
string
Example: soa

template code

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "bc5d4628-8fbc-4c7c-b736-6290ae0a1a58",
    • "type": "template",
    • "attributes": {
      • "name": "Oracle SOA template",
      • "archived": false,
      • "disabled": false,
      • "created_at": "2025-04-25T06:21:27.442504Z",
      • "updated_at": "2025-04-25T06:21:27.442504Z",
      • "user": "{{hidden}}",
      • "password": "{{hidden}}",
      • "ssh_key_data": "{{hidden}}",
      • "code": "soa",
      • "description": "Oracle SOA Suite 12c (12.2.1.4.0)"
      },
    • "relationships": {
      • "template_versions": {
        }
      },
    • "links": {
      • "project": "/api/projects/opc",
      • "self": "/api/projects/opc/templates/soa",
      • "template_versions": "/api/projects/opc/templates/soa/versions"
      },
    • "meta": null
    }
}

Archive template

Archives/unarchives a template.

path Parameters
project_code
required
string
Example: opc

project code

code_to_archive
required
string
Example: soa

template code

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "archived": true
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "a5a1a148-535c-4065-967b-69528b49bd7e",
    • "type": "template",
    • "attributes": {
      • "name": "Oracle SOA template",
      • "archived": true,
      • "disabled": false,
      • "created_at": "2025-04-25T06:21:27.795514Z",
      • "updated_at": "2025-04-25T06:21:27.838829Z",
      • "user": "{{hidden}}",
      • "password": "{{hidden}}",
      • "ssh_key_data": "{{hidden}}",
      • "code": "soa",
      • "description": "Oracle SOA Suite 12c (12.2.1.4.0)"
      },
    • "relationships": {
      • "template_versions": {
        }
      },
    • "links": {
      • "project": "/api/projects/opc",
      • "self": "/api/projects/opc/templates/soa",
      • "template_versions": "/api/projects/opc/templates/soa/versions"
      },
    • "meta": null
    }
}

Update template credentials

Update the credentials of a template.

path Parameters
project_code
required
string
Example: opc

project code

code_to_update
required
string
Example: soa

template code

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "user": "limepoint",
      • "password": "password",
      • "ssh_key_data": "-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----\n"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "ac2e4bf1-7ae1-460b-9228-a4bc5d820e54",
    • "type": "template",
    • "attributes": {
      • "name": "Oracle SOA template",
      • "archived": false,
      • "disabled": false,
      • "created_at": "2025-04-25T06:21:28.262177Z",
      • "updated_at": "2025-04-25T06:21:28.300744Z",
      • "user": "{{hidden}}",
      • "password": "{{hidden}}",
      • "ssh_key_data": "{{hidden}}",
      • "code": "soa",
      • "description": "Oracle SOA Suite 12c (12.2.1.4.0)"
      },
    • "relationships": {
      • "template_versions": {
        }
      },
    • "links": {
      • "project": "/api/projects/opc",
      • "self": "/api/projects/opc/templates/soa",
      • "template_versions": "/api/projects/opc/templates/soa/versions"
      },
    • "meta": null
    }
}

Git remotes

Endpoints to interact with git remotes.

Create Git remote

Create a project Git remote.

path Parameters
project_code
required
string
Example: opc

project code

Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
{}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "d896c705-45cb-4c4b-a44b-a238f82c1fe3",
    • "type": "git_remote",
    • "attributes": {},
    • "links": {
      • "project": "/api/projects/opc",
      • "self": "/api/projects/opc/git_remotes/d896c705-45cb-4c4b-a44b-a238f82c1fe3"
      },
    • "meta": null
    }
}

List Git remotes

Lists all Git remotes for a project.

path Parameters
project_code
required
string
Example: opc

project code

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "d1136960-6a62-4862-8465-0908a38d982a",
      • "type": "git_remote",
      • "attributes": {
        },
      • "links": {
        },
      • "meta": null
      }
    ]
}

Show Git remote

Shows a project Git remote.

Note: Git remote credentials are obfuscated for security reasons.

path Parameters
project_code
required
string
Example: opc

project code

remote_id
required
string
Example: 762c7be2-ed5b-46fd-a1f9-88b5f77cef41

remote id

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "4cf594bc-b16b-481d-847c-e50352a1512e",
    • "type": "git_remote",
    • "attributes": {
      • "name": "github",
      • "archived": false,
      • "disabled": false,
      • "created_at": "2025-04-25T06:21:00.028035Z",
      • "updated_at": "2025-04-25T06:21:00.028035Z",
      • "user": "{{hidden}}",
      • "password": "{{hidden}}",
      • "ssh_key_data": "{{hidden}}"
      },
    • "links": {
      • "project": "/api/projects/opc",
      • "self": "/api/projects/opc/git_remotes/4cf594bc-b16b-481d-847c-e50352a1512e"
      },
    • "meta": null
    }
}

Archive Git remote

Archives/unarchives a project Git remote.

path Parameters
project_code
required
string
Example: opc

project code

id_to_archive
required
string
Example: 762c7be2-ed5b-46fd-a1f9-88b5f77cef41

remote id

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "archived": true
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "d3211eef-5b2c-4f60-b379-684e4c22675e",
    • "type": "git_remote",
    • "attributes": {
      • "name": "github",
      • "archived": true,
      • "disabled": false,
      • "created_at": "2025-04-25T06:21:00.311989Z",
      • "updated_at": "2025-04-25T06:21:00.347564Z",
      • "user": "{{hidden}}",
      • "password": "{{hidden}}",
      • "ssh_key_data": "{{hidden}}"
      },
    • "links": {
      • "project": "/api/projects/opc",
      • "self": "/api/projects/opc/git_remotes/d3211eef-5b2c-4f60-b379-684e4c22675e"
      },
    • "meta": null
    }
}

Update Git remote credentials

Update the credentials of a project Git remote.

path Parameters
project_code
required
string
Example: opc

project code

id_to_update
required
string
Example: 762c7be2-ed5b-46fd-a1f9-88b5f77cef41

remote id

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "user": "limepoint",
      • "password": "password",
      • "ssh_key_data": "-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----\n"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "ac53c66a-459e-4faf-80b4-bd917b53a1df",
    • "type": "git_remote",
    • "attributes": {
      • "name": "github",
      • "archived": false,
      • "disabled": false,
      • "created_at": "2025-04-25T06:21:00.787174Z",
      • "updated_at": "2025-04-25T06:21:00.819755Z",
      • "user": "{{hidden}}",
      • "password": "{{hidden}}",
      • "ssh_key_data": "{{hidden}}"
      },
    • "links": {
      • "project": "/api/projects/opc",
      • "self": "/api/projects/opc/git_remotes/ac53c66a-459e-4faf-80b4-bd917b53a1df"
      },
    • "meta": null
    }
}

Delete Git remote

Deletes a project Git remote if it has no changes, otherwise it removes the credentials.

path Parameters
project_code
required
string
Example: opc

project code

id_to_delete
required
string
Example: 762c7be2-ed5b-46fd-a1f9-88b5f77cef41

remote id

Responses

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "77a1a5bc-e493-4184-9400-f58a0095ba92",
    • "type": "git_remote",
    • "attributes": {},
    • "links": {
      • "project": "/api/projects/opc",
      • "self": "/api/projects/opc/git_remotes/77a1a5bc-e493-4184-9400-f58a0095ba92"
      },
    • "meta": {
      • "credentials_removed": true,
      • "messages": [
        ]
      }
    }
}

Bookmarks

Endpoints to interact with bookmarks.

Notes:

  • The list, create, show, update and delete bookmark endpoints are available via the /<path/to/bookmark/owner>/bookmarks path. The example endpoints in this section reflect bookmarks owned by a project asset.

Create bookmark

Create an asset bookmark.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
{}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "4e5ec7c8-dd0e-46f3-9bf7-1d18581c1a98",
    • "type": "bookmark",
    • "attributes": {
      • "description": "Eum dolor voluptas cumque.",
      • "created_by": "marcelle_bode",
      • "created_at": "2025-04-25T06:20:53.159827Z",
      • "updated_at": "2025-04-25T06:20:53.159827Z"
      },
    • "links": {
      • "self": "/api/projects/opc/assets/prj_soa/bookmarks/4e5ec7c8-dd0e-46f3-9bf7-1d18581c1a98",
      • "parent": "/api/projects/opc/assets/prj_soa"
      }
    }
}

List bookmarks

Lists all bookmarks for an asset.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "234d3fa1-1927-4049-8a91-26321b92051b",
      • "type": "bookmark",
      • "attributes": {},
      • "links": {
        }
      }
    ]
}

Show bookmark

Shows an asset bookmark.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

bookmark_id
required
string
Example: 5becacbb-1b23-44f3-9bd0-54af90266895

bookmark id

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "4e88d2a2-4044-4c16-8378-24a16d1438d9",
    • "type": "bookmark",
    • "attributes": {},
    • "links": {
      • "self": "/api/projects/opc/assets/prj_soa/bookmarks/4e88d2a2-4044-4c16-8378-24a16d1438d9",
      • "parent": "/api/projects/opc/assets/prj_soa"
      }
    }
}

Update bookmark

Update an asset bookmark.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

bookmark_id
required
string
Example: 5becacbb-1b23-44f3-9bd0-54af90266895

bookmark id

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object

Request samples

Content type
application/vnd.api+json
{}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "171da653-0b2f-4582-bff4-77fba6e27e29",
    • "type": "bookmark",
    • "attributes": {
      • "description": "Updated server console path",
      • "created_by": "latosha.barton",
      • "created_at": "2025-04-25T06:20:54.468444Z",
      • "updated_at": "2025-04-25T06:20:54.509697Z"
      },
    • "links": {
      • "self": "/api/projects/opc/assets/prj_soa/bookmarks/171da653-0b2f-4582-bff4-77fba6e27e29",
      • "parent": "/api/projects/opc/assets/prj_soa"
      }
    }
}

Delete bookmark

Delete an asset bookmark.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

bookmark_id
required
string
Example: 5becacbb-1b23-44f3-9bd0-54af90266895

bookmark id

Responses

Response samples

Content type
application/vnd.api+json
{ }

MintModels

Endpoints to query and generate MintModels for assets.

Notes:

  • The list, show and generate MintModel endpoints are available for all assets, via the /<path/to/mintmodel/owner>/mintmodels path. The example endpoints in this section reflect MintModels owned by a project asset.
  • The list and show endpoints will display all MintModels for the asset, regardless whether they were applied successfully or not. Use the parent_mintmodel_history link in the API response to access the asset's MintModel history.

List MintModel history

Lists the asset's MintModel history.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

Responses

Response Schema: application/vnd.api+json
required
Array of objects
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "9526a1f9-f442-48a4-8a7c-c1ad3df5b948",
      • "type": "mintmodel_history",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Show MintModel history

Shows an asset's MintModel history record.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

id
required
string
Example: 68295e54-9b74-443b-96c3-474bceaff9c1

MintModel history id

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "8b35d074-47ad-48d9-9134-6b4b813b10b9",
    • "type": "mintmodel_history",
    • "attributes": {
      • "created_at": "2025-04-25T06:21:03.856920Z",
      • "updated_at": "2025-04-25T06:21:03.856920Z"
      },
    • "relationships": {
      • "parents": {
        },
      • "mintmodel": {
        },
      • "opschain_changes": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/assets/prj_soa/mintmodel_history/8b35d074-47ad-48d9-9134-6b4b813b10b9"
      }
    },
  • "included": [
    • {
      • "id": "c017360d-7788-454b-be71-4cdee0cfd675",
      • "type": "mintmodel",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

List MintModels

List all MintModels for an asset.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "31f66ebf-a578-49fd-beed-0432a08e9cc0",
      • "type": "mintmodel",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Show MintModel

Shows an asset MintModel.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

mintmodel_id
required
string
Example: 72418add-0a89-4933-abd1-b870bdb7ca3a

MintModel id

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "7b3dfd8b-5586-4db4-9b69-71ace76995b8",
    • "type": "mintmodel",
    • "attributes": {
      • "data": {
        },
      • "sha256": "77526a9ef926aee8c98f90ec845f5bd12f58cd7afb29fb2db5ef8f95deec44f8",
      • "created_at": "2025-04-25T06:21:04.284594Z",
      • "updated_at": "2025-04-25T06:21:04.284594Z"
      },
    • "relationships": {
      • "mintmodel_history": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/assets/prj_soa/mintmodels/7b3dfd8b-5586-4db4-9b69-71ace76995b8",
      • "parent_mintmodel_history": "/api/projects/opc/assets/prj_soa/mintmodel_history"
      }
    }
}

Generate MintModel

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.

path Parameters
project_code
required
string
Example: opc

project code

asset_code
required
string
Example: prj_soa

asset code

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "4998cc5f-d0c6-4210-a24e-6ba72645f24c",
    • "type": "mintmodel",
    • "attributes": {
      • "data": {
        },
      • "sha256": "77526a9ef926aee8c98f90ec845f5bd12f58cd7afb29fb2db5ef8f95deec44f8",
      • "created_at": "2025-04-25T06:21:04.777914Z",
      • "updated_at": "2025-04-25T06:21:04.777914Z"
      },
    • "relationships": {
      • "mintmodel_history": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/assets/prj_soa/mintmodels/4998cc5f-d0c6-4210-a24e-6ba72645f24c",
      • "parent_mintmodel_history": "/api/projects/opc/assets/prj_soa/mintmodel_history"
      }
    }
}

Workflows

Endpoints to interact with enterprise project workflows

List workflows

Lists all workflows for a project.

path Parameters
project_code
required
string
Example: opc

project code

Responses

Response Schema: application/vnd.api+json
required
Array of objects
object

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "0d369f01-e9fb-45b1-8a78-a88a75a3ff5e",
      • "type": "workflow",
      • "attributes": {
        },
      • "links": {
        }
      }
    ],
  • "meta": {
    • "partial_response": false
    }
}

Create workflow

Create a workflow

path Parameters
project_code
required
string
Example: opc

project code

Request Body schema: application/vnd.api+json
required
object
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "code": "wems8",
      • "name": "program",
      • "description": "I'll transmit the online PNG pixel, that should pixel the SMTP port!",
      • "steps": [
        ],
      • "archived": false,
      • "draft": false,
      • "source_yaml": "---\ncode: wems8\nname: program\ndescription: I'll transmit the online PNG pixel, that should pixel the SMTP port!\ncreated_by: tanner_shanahan\nsteps:\n- action: quantify\n target: \"/projects/kroc9/assets/cscnj\"\n type: change\n"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "eb9e2b08-9098-4bac-9c7f-06dcae29b2ff",
    • "type": "workflow",
    • "attributes": {
      • "code": "assets_new",
      • "name": "assets workflow",
      • "description": "workflow for assets",
      • "draft": false,
      • "archived": false,
      • "created_by": "antonetta_schultz",
      • "created_at": "2025-04-25T06:22:23.886249Z",
      • "updated_at": "2025-04-25T06:22:23.886249Z",
      • "source_yaml": "---\ncode: assets\nname: assets workflow\ndescription: workflow for assets\ncreated_by: tyree.cassin\nsteps:\n- type: change\n name: run asset action\n target: \"/projects/opc/assets/prj_soa\"\n action: run\n",
      • "steps": [
        ],
      • "latest_version": 1,
      • "latest_published_version": 1
      },
    • "links": {
      • "self": "/api/projects/opc/workflows/assets_new",
      • "runs": "/api/projects/opc/workflows/assets_new/runs",
      • "project": "/api/projects/opc",
      • "versions": "/api/projects/opc/workflows/assets_new/versions",
      • "latest_version": "/api/projects/opc/workflows/assets_new/versions/1",
      • "latest_published_version": "/api/projects/opc/workflows/assets_new/versions/1"
      }
    }
}

Show workflow

Shows a workflow.

path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "9c758be0-ce95-4811-ac68-45badeb78bdd",
    • "type": "workflow",
    • "attributes": {
      • "code": "assets",
      • "name": "assets workflow",
      • "description": "workflow for assets",
      • "draft": false,
      • "archived": false,
      • "created_by": "felicita.walker",
      • "created_at": "2025-04-25T06:22:24.911138Z",
      • "updated_at": "2025-04-25T06:22:24.911167Z",
      • "source_yaml": "---\ncode: assets\nname: assets workflow\ndescription: workflow for assets\ncreated_by: felicita.walker\nsteps:\n- type: change\n name: run asset action\n target: \"/projects/opc/assets/prj_soa\"\n action: run\n",
      • "steps": [
        ],
      • "latest_version": 1,
      • "latest_published_version": 1
      },
    • "links": {
      • "self": "/api/projects/opc/workflows/assets",
      • "runs": "/api/projects/opc/workflows/assets/runs",
      • "project": "/api/projects/opc",
      • "versions": "/api/projects/opc/workflows/assets/versions",
      • "latest_version": "/api/projects/opc/workflows/assets/versions/1",
      • "latest_published_version": "/api/projects/opc/workflows/assets/versions/1"
      }
    }
}

Update workflow

Update a workflow.

path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

Request Body schema: application/vnd.api+json
required
object
object

Responses

Response Schema: application/vnd.api+json
required
object

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "name": "new workflow name",
      • "steps": [
        ],
      • "draft": true,
      • "description": "new description",
      • "archived": false,
      • "source_yaml": "string"
      }
    },
  • "meta": {
    • "validate": true
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "80b96d7e-7c6b-462d-b382-6bc85d1dacca",
    • "type": "workflow",
    • "attributes": {
      • "code": "assets",
      • "name": "new workflow name",
      • "description": "new description",
      • "draft": true,
      • "archived": false,
      • "created_by": "robbi",
      • "created_at": "2025-04-25T06:22:25.667464Z",
      • "updated_at": "2025-04-25T06:22:25.715785Z",
      • "source_yaml": "---\ncode: assets\nname: assets workflow\ndescription: workflow for assets\ncreated_by: robbi\nsteps:\n- type: change\n name: run asset action\n target: \"/projects/opc/assets/prj_soa\"\n action: run\n",
      • "steps": [
        ],
      • "latest_version": 2,
      • "latest_published_version": 1
      },
    • "links": {
      • "self": "/api/projects/opc/workflows/assets",
      • "runs": "/api/projects/opc/workflows/assets/runs",
      • "project": "/api/projects/opc",
      • "versions": "/api/projects/opc/workflows/assets/versions",
      • "latest_version": "/api/projects/opc/workflows/assets/versions/2",
      • "latest_published_version": "/api/projects/opc/workflows/assets/versions/1"
      }
    }
}

Delete workflow

Delete or archive a workflow.

  • If the workflow has not been run before, it will be deleted.
  • If the workflow has been run before, it will be archived.
path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

Responses

Response samples

Content type
application/vnd.api+json
{ }

Workflow versions

List workflow versions

Lists all versions for a workflow.

path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "1c147752-bfec-4033-b190-d58dcfda50ce",
      • "type": "workflow_version",
      • "attributes": {
        },
      • "links": {
        }
      }
    ]
}

Delete draft workflow versions

Deletes all draft versions of a workflow.

Note: An exception will be raised if there are no published versions of the workflow.

path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

Responses

Response samples

Content type
application/vnd.api+json
{ }

Show workflow version

Shows a workflow version.

path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

version
required
string
Example: 1

version

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "fe290427-f6db-4f7f-ba76-7e7a0aaa6fbc",
    • "type": "workflow_version",
    • "attributes": {
      • "code": "assets",
      • "name": "assets workflow",
      • "description": "workflow for assets",
      • "draft": false,
      • "archived": false,
      • "created_by": "ona",
      • "created_at": "2025-04-25T06:22:21.012637Z",
      • "updated_at": "2025-04-25T06:22:21.012637Z",
      • "source_yaml": "---\ncode: assets\nname: assets workflow\ndescription: workflow for assets\ncreated_by: ona\nsteps:\n- type: change\n name: run asset action\n target: \"/projects/opc/assets/prj_soa\"\n action: run\n",
      • "steps": [
        ],
      • "version": 1
      },
    • "links": {
      • "self": "/api/projects/opc/workflows/assets/versions/1",
      • "runs": "/api/projects/opc/workflows/assets/versions/1/runs",
      • "project": "/api/projects/opc",
      • "workflow": "/api/projects/opc/workflows/assets"
      }
    }
}

Delete workflow version

Delete or archive a workflow version.

  • If the workflow version has not been run before, it will be deleted.
  • If the workflow version has been run before, it will be archived.
path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

version
required
string
Example: 1

version

Responses

Response samples

Content type
application/vnd.api+json
{ }

Properties

Endpoints to interact with properties.

Show properties

Shows the current properties JSON and its version.

path Parameters
properties_id
required
string
Example: fa918084-665b-4e3b-b2e1-10aaa74d10b7

properties id

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "4fa0514d-747b-443b-8b86-f31e28202856",
    • "type": "properties",
    • "attributes": {
      • "data": {
        },
      • "version": 1,
      • "created_at": "2025-04-25T06:21:14.700353Z"
      },
    • "relationships": {
      • "owner": {
        }
      },
    • "links": {
      • "self": "/api/properties/4fa0514d-747b-443b-8b86-f31e28202856",
      • "current_version": "/api/properties/4fa0514d-747b-443b-8b86-f31e28202856/versions/1",
      • "versions": "/api/properties/4fa0514d-747b-443b-8b86-f31e28202856/versions"
      }
    }
}

Update properties

Updates a properties JSON if the included version matches the current properties version.

path Parameters
id_to_update
required
string
Example: fa918084-665b-4e3b-b2e1-10aaa74d10b7

properties id

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "data": {
        },
      • "version": 1
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "e4b7e561-0aea-4535-8751-fec44dd803b2",
    • "type": "properties",
    • "attributes": {
      • "data": {
        },
      • "version": 2,
      • "created_at": "2025-04-25T06:21:14.970726Z"
      },
    • "relationships": {
      • "owner": {
        }
      },
    • "links": {
      • "self": "/api/properties/e4b7e561-0aea-4535-8751-fec44dd803b2",
      • "current_version": "/api/properties/e4b7e561-0aea-4535-8751-fec44dd803b2/versions/2",
      • "versions": "/api/properties/e4b7e561-0aea-4535-8751-fec44dd803b2/versions"
      }
    }
}

Update properties (unsafe)

Updates a properties JSON, without any version checking (always updates).

path Parameters
id_to_set
required
string
Example: fa918084-665b-4e3b-b2e1-10aaa74d10b7

properties id

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "data": {
        }
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "f6c2329a-7f5f-4588-b361-9f2708ef82b6",
    • "type": "properties",
    • "attributes": {
      • "data": {
        },
      • "version": 2,
      • "created_at": "2025-04-25T06:21:15.550520Z"
      },
    • "relationships": {
      • "owner": {
        }
      },
    • "links": {
      • "self": "/api/properties/f6c2329a-7f5f-4588-b361-9f2708ef82b6",
      • "current_version": "/api/properties/f6c2329a-7f5f-4588-b361-9f2708ef82b6/versions/2",
      • "versions": "/api/properties/f6c2329a-7f5f-4588-b361-9f2708ef82b6/versions"
      }
    }
}

Properties versions

Endpoints to interact with the version history for properties.

List properties versions

Lists all versions of an OpsChain properties.

path Parameters
properties_id
required
string
Example: fa918084-665b-4e3b-b2e1-10aaa74d10b7

properties id

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "bd71253a-75ae-4b3b-90a9-4ba7843c087a",
      • "type": "properties_version",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Show properties version

Shows the properties JSON for this properties version.

path Parameters
properties_id
required
string
Example: fa918084-665b-4e3b-b2e1-10aaa74d10b7

properties id

version_number
required
integer
Example: 1

version number

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "2d3c89d3-f8f1-496e-9f9f-ddfe1ac947ee",
    • "type": "properties_version",
    • "attributes": {
      • "data": {
        },
      • "version": 1,
      • "created_at": "2025-04-25T06:21:16.266076Z",
      • "owner_type": "project"
      },
    • "relationships": {
      • "properties": {
        }
      },
    • "links": {
      • "versions": "/api/properties/0b022f39-7c14-4021-8626-796b61c642e1/versions",
      • "owner": "/api/projects/opc",
      • "self": "/api/properties/0b022f39-7c14-4021-8626-796b61c642e1/versions/1"
      }
    }
}

Changes

Endpoints to interact with changes.

List changes

Lists all changes.

query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[environment_code_eq]=dev
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

Responses

Response Schema: application/vnd.api+json
required
Array of objects
object
Array of objects or objects or objects or objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "9436ac43-8c7c-4e70-afa3-1b0f32eb8429",
      • "type": "change",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": { }
      }
    ],
  • "included": [
    • {
      • "id": "2033b007-e66a-43de-b5b7-12e446a0430f",
      • "type": "step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "a32d1759-152b-4c7e-a37b-2cd50e2e13c7",
      • "type": "project",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": {
        }
      },
    • {
      • "id": "924c0151-926e-4cf6-aab5-031c482f21b0",
      • "type": "environment",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": {
        }
      }
    ],
  • "meta": {
    • "partial_response": false,
    • "has_any": true
    }
}

Create change

Creates a change in a specific project, environment or asset.

Notes:

  1. When creating changes via a project, environment or asset 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.
  2. When creating changes for assets (e.g. POST to /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.
Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
Example
{
  • "data": {
    • "attributes": {
      • "metadata": {
        },
      • "property_overrides": {
        },
      • "action": "program",
      • "parent_path": "/projects/opc/environments/dev/assets/env_soa",
      • "template_version": "2023_Q4_2"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "51d255e7-895c-4ec8-aaf3-ac0a2404a249",
    • "type": "change",
    • "attributes": {
      • "created_by": "ema.schneider",
      • "name": null,
      • "action": "index",
      • "initial_step_tree": null,
      • "metadata": {
        },
      • "property_overrides": {
        },
      • "scheduled": false,
      • "approved_by": [ ],
      • "rejected_by": [ ],
      • "status_code": "initializing",
      • "created_at": "2025-04-25T06:20:56.714894Z",
      • "started_at": null,
      • "finished_at": null,
      • "updated_at": "2025-04-25T06:20:56.718008Z",
      • "asset_name": null,
      • "environment_name": "Development",
      • "project_name": "OpsChain",
      • "git_remote_name": "github",
      • "git_rev": "main",
      • "commit_sha": null,
      • "requires_approval_from": null
      },
    • "relationships": {
      • "parents": {
        },
      • "root_step": {
        },
      • "steps": {
        },
      • "workflow_run": {
        },
      • "workflow": {
        }
      },
    • "links": {
      • "git_remote": "/api/projects/opc/git_remotes/1e8f8c0d-191a-4897-8d12-5872b39557a0",
      • "project": "/api/projects/opc",
      • "parent": "/api/projects/opc/environments/dev",
      • "self": "/api/projects/opc/environments/dev/changes/51d255e7-895c-4ec8-aaf3-ac0a2404a249",
      • "log_lines": "/api/changes/51d255e7-895c-4ec8-aaf3-ac0a2404a249/log_lines"
      },
    • "meta": { }
    },
  • "included": [
    • {
      • "id": "6847905f-c539-4591-97e1-0f36ae968dd5",
      • "type": "step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Show change

Shows a change, including it's parent nodes.

path Parameters
change_id
required
string
Example: 27e62c7b-d4d4-49e5-ab5e-394a9ad8c5e3

change id

query Parameters
include
string
Example: include=steps,parents

Include the change steps and parents in the response

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects or objects or objects

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "bf308e73-e434-4932-896f-5aaf2da90b19",
    • "type": "change",
    • "attributes": {
      • "created_by": "marlon",
      • "name": "bypass",
      • "action": "bypass",
      • "initial_step_tree": null,
      • "metadata": {
        },
      • "property_overrides": {
        },
      • "scheduled": false,
      • "approved_by": [ ],
      • "rejected_by": [ ],
      • "status_code": "success",
      • "created_at": "2025-04-25T06:20:57.106058Z",
      • "started_at": "2025-04-25T06:12:42.832420Z",
      • "finished_at": "2025-04-25T06:17:49.264095Z",
      • "updated_at": "2025-04-25T06:20:57.109019Z",
      • "asset_name": null,
      • "environment_name": "Development",
      • "project_name": "OpsChain",
      • "git_remote_name": "github",
      • "git_rev": "main",
      • "commit_sha": "7b3418a63b006855290816cf269b9ef6dcdeebc2",
      • "requires_approval_from": null
      },
    • "relationships": {
      • "properties": {
        },
      • "parents": {
        },
      • "root_step": {
        },
      • "steps": {
        },
      • "workflow_run": {
        },
      • "workflow": {
        }
      },
    • "links": {
      • "git_remote": "/api/projects/opc/git_remotes/69c06ccc-17d1-49b3-9bca-30368da5a046",
      • "project": "/api/projects/opc",
      • "parent": "/api/projects/opc/environments/dev",
      • "self": "/api/projects/opc/environments/dev/changes/bf308e73-e434-4932-896f-5aaf2da90b19",
      • "log_lines": "/api/changes/bf308e73-e434-4932-896f-5aaf2da90b19/log_lines"
      },
    • "meta": {
      • "parallel_changes_allowed": false,
      • "blocked_by_change_in_same_parent": false,
      • "blocked_by_queue": [ ]
      }
    },
  • "included": [
    • {
      • "id": "3cf216bf-8eb7-442a-b8cf-c8f3c7f94d11",
      • "type": "step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "a231424e-dfee-4834-8b9d-ea9366c1889c",
      • "type": "project",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": {
        }
      },
    • {
      • "id": "3f5bbfa8-21ec-412f-b584-78781b18235a",
      • "type": "environment",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": {
        }
      }
    ]
}

Cancel change

Cancels a change.

path Parameters
change_id
required
string
Example: 27e62c7b-d4d4-49e5-ab5e-394a9ad8c5e3

change id

Responses

Response samples

Content type
application/vnd.api+json
{ }

Scheduled activities

List activities

Lists all scheduled activities.

query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[project_code_eq]=opc
include
string
Example: include=parents

Include the scheduled change parents in the response

Responses

Response Schema: application/vnd.api+json
required
Array of scheduled_change_element (object) or scheduled_workflow_element (object)
Array of project_element (object) or environment_element (object) or asset_element (object)
object

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "335696b4-398b-4577-907a-e35ec21d1f94",
      • "type": "scheduled_change",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "e86a1abc-fd2f-42e0-866f-91020d2f00c1",
      • "type": "scheduled_workflow",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ],
  • "included": [
    • {
      • "id": "17f2ecbc-8183-4817-a408-89a67c05ac1d",
      • "type": "project",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": {
        }
      },
    • {
      • "id": "f7af2bfd-9219-47e8-988e-028e84fd77af",
      • "type": "environment",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": {
        }
      }
    ],
  • "meta": {
    • "has_any": true
    }
}

Create activities

Creates a scheduled activity in a specific project, environment or asset.

Notes:

  1. When creating scheduled activities via a project, environment or asset scheduled_activities path (e.g. POST to /api/projects/{project_code}/scheduled_activities) the parent_path request attributes must not be supplied as the parent will be derived from the path.

  2. When creating scheduled activities for assets (e.g. POST to /api/projects/{project_code}/assets/{asset_code}/scheduled_activities) 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.

  3. See the various payload examples to understand the required fields for each possible request to this endpoint.

Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
Example
{
  • "data": {
    • "attributes": {
      • "git_rev": "master",
      • "action": "install_os",
      • "cron_schedule": "58 8 26 11 2",
      • "new_commits_only": false,
      • "repeat": true,
      • "metadata": {
        },
      • "parent_path": "/projects/opc/environments/dev",
      • "git_remote_name": "github"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "f6694fe9-c6cb-427a-a17f-d0c1d2919bf3",
    • "type": "scheduled_change",
    • "attributes": {
      • "created_by": "valene_hermiston",
      • "cron_schedule": "50 4 1 9 5",
      • "repeat": true,
      • "metadata": {
        },
      • "enabled": true,
      • "created_at": "2025-04-25T06:20:50.621828Z",
      • "next_run_at": "2025-08-31T18:50:00.000000Z",
      • "action": "different_action",
      • "new_commits_only": true,
      • "git_rev": "redundant",
      • "project_name": "OpsChain",
      • "project_code": "opc",
      • "asset_code": null,
      • "asset_name": null,
      • "environment_code": "dev",
      • "environment_name": "Development",
      • "git_remote_name": "github"
      },
    • "relationships": {
      • "parents": {
        }
      },
    • "links": {
      • "git_remote": "/api/projects/opc/git_remotes/12e3eda6-50ac-4d79-b78f-e19f41b3467b",
      • "project": "/api/projects/opc",
      • "parent": "/api/projects/opc/environments/dev",
      • "self": "/api/scheduled_activities/f6694fe9-c6cb-427a-a17f-d0c1d2919bf3"
      }
    }
}

Show activity

Shows a scheduled activity.

path Parameters
scheduled_change_id
required
string
Example: af04e9f6-590e-4726-a133-1697c0c46314

scheduled change id

query Parameters
include
string
Example: include=parents

Include the scheduled change parents in the response

Responses

Response Schema: application/vnd.api+json
required
scheduled_change_element (object) or scheduled_workflow_element (object)
Array of project_element (object) or environment_element (object) or asset_element (object)

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "4aa5192a-1861-489e-9de2-3d12b30096d2",
    • "type": "scheduled_change",
    • "attributes": {
      • "created_by": "claribel.herzog",
      • "cron_schedule": "16 16 26 10 *",
      • "repeat": false,
      • "metadata": {
        },
      • "enabled": true,
      • "created_at": "2025-04-25T06:20:51.285548Z",
      • "next_run_at": "2025-10-26T05:16:00.000000Z",
      • "action": "hack",
      • "new_commits_only": false,
      • "git_rev": "haptic",
      • "project_name": "OpsChain",
      • "project_code": "opc",
      • "asset_code": null,
      • "asset_name": null,
      • "environment_code": "dev",
      • "environment_name": "Development",
      • "git_remote_name": "github"
      },
    • "relationships": {
      • "parents": {
        }
      },
    • "links": {
      • "git_remote": "/api/projects/opc/git_remotes/88f1ce2d-8a6d-4a25-b91c-1ace6ce237aa",
      • "project": "/api/projects/opc",
      • "parent": "/api/projects/opc/environments/dev",
      • "self": "/api/scheduled_activities/4aa5192a-1861-489e-9de2-3d12b30096d2"
      }
    },
  • "included": [
    • {
      • "id": "8d5f3750-75e7-4e65-8c48-03123a5ba1b5",
      • "type": "project",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": {
        }
      },
    • {
      • "id": "cb373544-f3d9-4090-b4ec-ccb755ad01de",
      • "type": "environment",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": {
        }
      }
    ]
}

Delete activity

Deletes a scheduled activity.

path Parameters
scheduled_change_id
required
string
Example: af04e9f6-590e-4726-a133-1697c0c46314

scheduled change id

Responses

Response samples

Content type
application/vnd.api+json
{ }

Steps

Endpoints to interact with change steps.

List steps

Lists all steps.

query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[action_eq]=provision

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "db7d9d12-896b-4431-8c92-12c396f01739",
      • "type": "step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Show step

Shows a change step.

path Parameters
step_id
required
string
Example: 806b4b33-b5b2-44a0-920f-26b77b6bb228

step id

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "e8cfdd50-32e4-40f2-ac30-16d592caf4fc",
    • "type": "step",
    • "attributes": {
      • "approved_by": [ ],
      • "rejected_by": [ ],
      • "continued_by": [ ],
      • "requires_approval_from": null,
      • "action": "hack",
      • "name": "hack",
      • "step_type": "standard",
      • "child_execution_strategy": "sequential",
      • "change_id": "34c41f0b-0893-465a-9fea-d0e37515f994",
      • "skip_on_retry": false,
      • "created_at": "2025-04-25T06:10:35.330917Z",
      • "started_at": "2025-04-25T06:11:35.330917Z",
      • "finished_at": "2025-04-25T06:12:06.633584Z",
      • "updated_at": "2025-04-25T06:21:18.754939Z",
      • "status_code": "success"
      },
    • "relationships": {
      • "properties": {
        },
      • "children": {
        },
      • "change": {
        },
      • "properties_versions": {
        }
      },
    • "links": {
      • "parent": "/api/changes/34c41f0b-0893-465a-9fea-d0e37515f994",
      • "change": "/api/projects/opc/environments/dev/changes/34c41f0b-0893-465a-9fea-d0e37515f994",
      • "log_lines": "/api/steps/e8cfdd50-32e4-40f2-ac30-16d592caf4fc/log_lines",
      • "self": "/api/steps/e8cfdd50-32e4-40f2-ac30-16d592caf4fc"
      }
    },
  • "included": [
    • {
      • "id": "88e88b29-ba87-4c2d-92df-f0698a4b84c4",
      • "type": "properties_version",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "2281b581-d2dd-4bb5-a9b7-8820c52b2067",
      • "type": "properties_version",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "9a85d01b-e331-4c9d-a2b9-df46b66fe312",
      • "type": "properties",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Update step

Update a step to flag it to be skipped on retry.

path Parameters
step_id
required
string
Example: 806b4b33-b5b2-44a0-920f-26b77b6bb228

step id

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "skip_on_retry": true
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "4d5b4bdb-8002-408a-b928-6d90012a7dbd",
    • "type": "step",
    • "attributes": {
      • "approved_by": [ ],
      • "rejected_by": [ ],
      • "continued_by": [ ],
      • "requires_approval_from": null,
      • "action": "reboot",
      • "name": "reboot",
      • "step_type": "standard",
      • "child_execution_strategy": "sequential",
      • "change_id": "2c7dd4b6-6310-4b79-9e79-7afd2690d7bd",
      • "skip_on_retry": true,
      • "created_at": "2025-04-25T06:12:41.519412Z",
      • "started_at": "2025-04-25T06:13:41.519412Z",
      • "finished_at": "2025-04-25T06:17:35.757066Z",
      • "updated_at": "2025-04-25T06:21:19.341819Z",
      • "status_code": "error"
      },
    • "relationships": {
      • "properties": {
        },
      • "children": {
        },
      • "change": {
        },
      • "properties_versions": {
        }
      },
    • "links": {
      • "parent": "/api/changes/2c7dd4b6-6310-4b79-9e79-7afd2690d7bd",
      • "change": "/api/projects/opc/environments/dev/changes/2c7dd4b6-6310-4b79-9e79-7afd2690d7bd",
      • "log_lines": "/api/steps/4d5b4bdb-8002-408a-b928-6d90012a7dbd/log_lines",
      • "self": "/api/steps/4d5b4bdb-8002-408a-b928-6d90012a7dbd"
      }
    }
}

Continue step

Continues a "waiting" change step.

path Parameters
step_id
required
string
Example: f05a9942-8f1c-4c52-b9ef-15cdbe8f4c15

step id

Request Body schema: application/vnd.api+json
object

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "message": "Manually removed from load balancer."
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "0e628c0f-ec2f-4e55-840b-623534219de3",
    • "type": "step",
    • "attributes": {
      • "approved_by": [ ],
      • "rejected_by": [ ],
      • "continued_by": [
        ],
      • "requires_approval_from": null,
      • "action": "connect",
      • "name": "connect",
      • "step_type": "standard",
      • "child_execution_strategy": "sequential",
      • "change_id": "6bd6fd20-453b-460d-87a8-95abb41c2842",
      • "skip_on_retry": false,
      • "created_at": "2025-04-25T06:14:12.631863Z",
      • "started_at": "2025-04-25T06:15:12.631863Z",
      • "finished_at": "2025-04-25T06:21:21.100786Z",
      • "updated_at": "2025-04-25T06:21:21.119558Z",
      • "status_code": "success"
      },
    • "relationships": {
      • "properties": {
        },
      • "children": {
        },
      • "change": {
        },
      • "properties_versions": {
        }
      },
    • "links": {
      • "parent": "/api/changes/6bd6fd20-453b-460d-87a8-95abb41c2842",
      • "change": "/api/projects/opc/environments/dev/changes/6bd6fd20-453b-460d-87a8-95abb41c2842",
      • "log_lines": "/api/steps/0e628c0f-ec2f-4e55-840b-623534219de3/log_lines",
      • "self": "/api/steps/0e628c0f-ec2f-4e55-840b-623534219de3"
      }
    }
}

Approve step

Approves a change step that needs approval.

path Parameters
step_id
required
string
Example: f05a9942-8f1c-4c52-b9ef-15cdbe8f4c15

step id

Request Body schema: application/vnd.api+json
object

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "message": "As per CR 7 👍"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "c770983c-564f-47f0-8edf-be5e7977a168",
    • "type": "step",
    • "attributes": {
      • "approved_by": [
        ],
      • "rejected_by": [ ],
      • "continued_by": [ ],
      • "requires_approval_from": "an-ldap-group",
      • "action": "input",
      • "name": "input",
      • "step_type": "standard",
      • "child_execution_strategy": "sequential",
      • "change_id": "7f290563-18bf-40f5-87c1-c329c2f31039",
      • "skip_on_retry": false,
      • "created_at": "2025-04-25T06:12:48.127459Z",
      • "started_at": "2025-04-25T06:13:48.127459Z",
      • "finished_at": null,
      • "updated_at": "2025-04-25T06:21:21.852052Z",
      • "status_code": "queued"
      },
    • "relationships": {
      • "properties": {
        },
      • "children": {
        },
      • "change": {
        },
      • "properties_versions": {
        }
      },
    • "links": {
      • "parent": "/api/changes/7f290563-18bf-40f5-87c1-c329c2f31039",
      • "change": "/api/projects/opc/environments/dev/changes/7f290563-18bf-40f5-87c1-c329c2f31039",
      • "log_lines": "/api/steps/c770983c-564f-47f0-8edf-be5e7977a168/log_lines",
      • "self": "/api/steps/c770983c-564f-47f0-8edf-be5e7977a168"
      }
    }
}

Reject step

Rejects a change step that needs approval.

path Parameters
step_id
required
string
Example: f05a9942-8f1c-4c52-b9ef-15cdbe8f4c15

step id

Request Body schema: application/vnd.api+json
object

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "message": "Failed user acceptance testing"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "36237fe1-0da4-4b39-a248-0bd15aac3cdb",
    • "type": "step",
    • "attributes": {
      • "approved_by": [ ],
      • "rejected_by": [
        ],
      • "continued_by": [ ],
      • "requires_approval_from": "an-ldap-group",
      • "action": "override",
      • "name": "override",
      • "step_type": "standard",
      • "child_execution_strategy": "sequential",
      • "change_id": "9f0700d5-4443-4085-bbce-02f9349c9374",
      • "skip_on_retry": false,
      • "created_at": "2025-04-25T06:14:08.821397Z",
      • "started_at": "2025-04-25T06:15:08.821397Z",
      • "finished_at": "2025-04-25T06:21:22.820950Z",
      • "updated_at": "2025-04-25T06:21:22.834480Z",
      • "status_code": "rejected"
      },
    • "relationships": {
      • "properties": {
        },
      • "children": {
        },
      • "change": {
        },
      • "properties_versions": {
        }
      },
    • "links": {
      • "parent": "/api/changes/9f0700d5-4443-4085-bbce-02f9349c9374",
      • "change": "/api/projects/opc/environments/dev/changes/9f0700d5-4443-4085-bbce-02f9349c9374",
      • "log_lines": "/api/steps/36237fe1-0da4-4b39-a248-0bd15aac3cdb/log_lines",
      • "self": "/api/steps/36237fe1-0da4-4b39-a248-0bd15aac3cdb"
      }
    }
}

Log lines

Endpoints to query log lines for changes and individual change steps.

List change log lines

List the log lines for a change.

path Parameters
change_id
required
string
Example: 27e62c7b-d4d4-49e5-ab5e-394a9ad8c5e3
query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[message_cont]=dolorem
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.

Responses

Response Schema: application/vnd.api+json
required
Array of objects
object

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "99f5d959-ef54-429a-89fe-3636bc40026d",
      • "type": "log_line",
      • "attributes": {
        }
      }
    ],
  • "meta": {
    • "partial_response": false
    }
}

List step log lines

List the log lines for a change step.

path Parameters
step_id
required
string
Example: 806b4b33-b5b2-44a0-920f-26b77b6bb228
query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[message_cont]=dolorem
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.

Responses

Response Schema: application/vnd.api+json
required
Array of objects
object

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "e3c3292c-379b-43d3-ab45-8083755b7524",
      • "type": "log_line",
      • "attributes": {
        }
      }
    ],
  • "meta": {
    • "partial_response": false
    }
}

List filtered log lines

List filtered log lines.

query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[message_cont]=dolorem
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.

Responses

Response Schema: application/vnd.api+json
required
Array of objects
object

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "e82a9109-fe10-4a6e-bb57-91fda1e117fd",
      • "type": "log_line",
      • "attributes": {
        }
      }
    ],
  • "meta": {
    • "partial_response": false
    }
}

Workflow runs

Endpoints to interact with workflow runs

Notes:

  • The list and show endpoints are available via the following paths:
    1. /workflow_runs - will return all workflow runs accessible to the user.
    2. /project/{project_code}/workflow_runs - will return all workflow runs for all this project's workflows.
    3. /project/{project_code}/workflows/{workflow_code}/workflow_runs - will return all workflow runs this workflow.
    4. /<path/to/asset>/workflow_runs - will return all workflow runs that include a change for this asset.

List all workflow runs

Lists all workflow runs.

Responses

Response Schema: application/vnd.api+json
required
Array of objects
object
Array of objects or objects or objects or objects or objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "06a12ecf-5d45-4938-8a30-050b1b5d3067",
      • "type": "workflow_run",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": { }
      }
    ],
  • "included": [
    • {
      • "id": "8aaf0700-05cd-4197-89f0-68ee2ed29c15",
      • "type": "workflow_version",
      • "attributes": {
        },
      • "links": {
        }
      }
    ],
  • "meta": {
    • "partial_response": false
    }
}

Run a workflow

Runs a pre-defined workflow

Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "project_code": "opc",
      • "workflow_code": "assets"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "2876fcfa-b606-4648-9a13-caadb6d3ebac",
    • "type": "workflow_run",
    • "attributes": {
      • "step_tree": {
        },
      • "scheduled": false,
      • "metadata": { },
      • "created_by": "evelyne",
      • "status_code": "pending",
      • "created_at": "2025-04-25T06:21:30.434885Z",
      • "started_at": null,
      • "finished_at": null,
      • "updated_at": "2025-04-25T06:21:30.437923Z",
      • "project_name": "OpsChain"
      },
    • "relationships": {
      • "workflow_version": {
        },
      • "workflow": {
        },
      • "parent_workflow_step": {
        },
      • "root_step": {
        },
      • "steps": {
        }
      },
    • "links": {
      • "parent": "/api/projects/opc",
      • "self": "/api/projects/opc/workflows/assets/runs/2876fcfa-b606-4648-9a13-caadb6d3ebac"
      },
    • "meta": { }
    },
  • "included": [
    • {
      • "id": "83583787-f9fd-4cbc-ba2f-fecbf2604c96",
      • "type": "workflow_version",
      • "attributes": {
        },
      • "links": {
        }
      },
    • {
      • "id": "ecacb01f-3836-40a8-880d-8156c9377dee",
      • "type": "workflow_noop_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "4d8089b6-4fa1-4fff-afaa-ed54a441792a",
      • "type": "workflow_change_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Show workflow run

Shows a workflow run.

path Parameters
run_id
required
string
Example: 220e69ef-dce0-4806-89e3-979ec6eab6bd

workflow run id

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects or objects or objects or objects

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "73148d7c-e471-4899-b7d8-c3087c074219",
    • "type": "workflow_run",
    • "attributes": {
      • "step_tree": {
        },
      • "scheduled": false,
      • "metadata": {
        },
      • "created_by": "paulina",
      • "status_code": "success",
      • "created_at": "2025-04-25T06:21:33.099874Z",
      • "started_at": "2025-04-25T06:13:18.311242Z",
      • "finished_at": "2025-04-25T06:18:35.171382Z",
      • "updated_at": "2025-04-25T06:21:33.103061Z",
      • "project_name": "OpsChain"
      },
    • "relationships": {
      • "workflow_version": {
        },
      • "workflow": {
        },
      • "parent_workflow_step": {
        },
      • "root_step": {
        },
      • "steps": {
        }
      },
    • "links": {
      • "parent": "/api/projects/opc",
      • "self": "/api/projects/opc/workflows/assets/runs/73148d7c-e471-4899-b7d8-c3087c074219"
      },
    • "meta": {
      • "parallel_workflows_allowed": false,
      • "blocked_by_same_workflow_running": false,
      • "blocked_by_queue": [ ]
      }
    },
  • "included": [
    • {
      • "id": "c3474ec8-b949-4844-85ee-07bc0bfd43ca",
      • "type": "workflow_version",
      • "attributes": {
        },
      • "links": {
        }
      },
    • {
      • "id": "13035807-8237-464d-908c-465df127cb2f",
      • "type": "workflow_noop_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "edc8cc1d-44fb-4d53-9aeb-e43d22b16633",
      • "type": "workflow_noop_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "17f9f105-8c55-4b84-a0f1-d9a6f8f4fc13",
      • "type": "workflow_change_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "b1108195-64dc-40f8-8d29-834011b2d719",
      • "type": "workflow_change_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "c1ec3bb5-a6bc-40ec-8b34-4935f965766b",
      • "type": "workflow_wait_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "0a361448-21b3-4965-b1e5-6605dba8a5a5",
      • "type": "workflow_workflow_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Cancel workflow run

Cancels a workflow run.

path Parameters
run_id
required
string
Example: 220e69ef-dce0-4806-89e3-979ec6eab6bd

workflow run id

Responses

Response samples

Content type
application/vnd.api+json
{ }

List workflow runs (workflow specific)

Lists all runs for a workflow.

path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

Responses

Response Schema: application/vnd.api+json
required
Array of objects
object
Array of objects or objects or objects or objects or objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "6026e6fa-c2f4-4ade-9bb4-305a129d62f0",
      • "type": "workflow_run",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        },
      • "meta": { }
      }
    ],
  • "included": [
    • {
      • "id": "6ed01b14-f1b9-4a1f-9b2a-b4b3d83e8c94",
      • "type": "workflow_version",
      • "attributes": {
        },
      • "links": {
        }
      }
    ],
  • "meta": {
    • "partial_response": false
    }
}

Run a workflow (workflow specific)

Runs a pre-defined workflow

path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "workflow_code": "assets"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "db25b787-6e51-4cd0-85e0-1c9b710516b3",
    • "type": "workflow_run",
    • "attributes": {
      • "step_tree": {
        },
      • "scheduled": false,
      • "metadata": { },
      • "created_by": "wm",
      • "status_code": "pending",
      • "created_at": "2025-04-25T06:21:38.244663Z",
      • "started_at": null,
      • "finished_at": null,
      • "updated_at": "2025-04-25T06:21:38.246439Z",
      • "project_name": "OpsChain"
      },
    • "relationships": {
      • "workflow_version": {
        },
      • "workflow": {
        },
      • "parent_workflow_step": {
        },
      • "root_step": {
        },
      • "steps": {
        }
      },
    • "links": {
      • "parent": "/api/projects/opc",
      • "self": "/api/projects/opc/workflows/assets/runs/db25b787-6e51-4cd0-85e0-1c9b710516b3"
      },
    • "meta": { }
    },
  • "included": [
    • {
      • "id": "ac322214-f765-4ecb-a1fc-7ed9347ad2bf",
      • "type": "workflow_version",
      • "attributes": {
        },
      • "links": {
        }
      },
    • {
      • "id": "c7d87b15-1e40-494b-89e9-d6e7546cc336",
      • "type": "workflow_noop_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "7c4df3e7-c900-4e47-ab3a-51b3b268a22e",
      • "type": "workflow_change_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Show workflow run (workflow specific)

Shows a workflow run.

path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

run_id
required
string
Example: 220e69ef-dce0-4806-89e3-979ec6eab6bd

workflow run id

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects or objects or objects or objects or objects

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "107c8f78-6ed1-40c5-b250-f9a274a438d2",
    • "type": "workflow_run",
    • "attributes": {
      • "step_tree": {
        },
      • "scheduled": false,
      • "metadata": {
        },
      • "created_by": "kaila",
      • "status_code": "success",
      • "created_at": "2025-04-25T06:21:40.770806Z",
      • "started_at": "2025-04-25T06:15:30.608734Z",
      • "finished_at": "2025-04-25T06:16:30.257311Z",
      • "updated_at": "2025-04-25T06:21:40.773506Z",
      • "project_name": "OpsChain"
      },
    • "relationships": {
      • "workflow_version": {
        },
      • "workflow": {
        },
      • "parent_workflow_step": {
        },
      • "root_step": {
        },
      • "steps": {
        }
      },
    • "links": {
      • "parent": "/api/projects/opc",
      • "self": "/api/projects/opc/workflows/assets/runs/107c8f78-6ed1-40c5-b250-f9a274a438d2"
      },
    • "meta": {
      • "parallel_workflows_allowed": false,
      • "blocked_by_same_workflow_running": false,
      • "blocked_by_queue": [ ]
      }
    },
  • "included": [
    • {
      • "id": "d66034d5-f323-4469-b6d4-eb7a215e9879",
      • "type": "workflow_version",
      • "attributes": {
        },
      • "links": {
        }
      },
    • {
      • "id": "f3991fb1-5102-4402-bd97-9b34d3be6d64",
      • "type": "workflow_noop_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "bf5df155-ffb3-4782-935a-1b9147b1637c",
      • "type": "workflow_noop_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "b5501be2-48ae-4956-9f23-130f4fefe23b",
      • "type": "workflow_change_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "8e9ed8cb-0b4c-43c8-b827-f5a4062d80f4",
      • "type": "workflow_change_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "4e254851-37da-40cc-9f40-78cae1dd04b0",
      • "type": "workflow_wait_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "57affd48-f0eb-4584-ac3e-88edec6995c7",
      • "type": "workflow_workflow_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Cancel workflow run (workflow specific)

Cancels a workflow run.

path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

run_id
required
string
Example: 220e69ef-dce0-4806-89e3-979ec6eab6bd

workflow run id

Responses

Response samples

Content type
application/vnd.api+json
{ }

Workflow steps

Endpoints to interact with the steps in a workflow run

List all workflow steps

Lists all workflow steps.

Responses

Response Schema: application/vnd.api+json
required
Array of workflow_noop_step_element (object) or workflow_change_step_element (object) or workflow_wait_step_element (object) or workflow_workflow_step_element (object)

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "2c86ec10-65e1-4fe6-bd6f-d3d9a1d80bff",
      • "type": "workflow_wait_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "c081b0a6-6297-4172-ae5f-52972675f9aa",
      • "type": "workflow_noop_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "988daef5-a7ae-4068-81af-6182d8c75b97",
      • "type": "workflow_noop_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "d6cb60db-1125-4945-b76c-126a58cd3447",
      • "type": "workflow_change_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "efc24059-dfde-49b9-9828-b9d3318deb4f",
      • "type": "workflow_change_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "68f4d7f1-68c6-482d-a35d-aa8ea729a44c",
      • "type": "workflow_wait_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "2c661e78-8916-41a0-abf7-8ee13665e124",
      • "type": "workflow_workflow_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "fdf6c7ac-bd54-4793-97e3-02cd4ad0647d",
      • "type": "workflow_change_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "cf059a21-88a3-41e2-8857-ad9ee4874f0d",
      • "type": "workflow_workflow_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Show a workflow step

Shows a workflow step.

path Parameters
step_id
required
string
Example: fef4a8d3-73cc-454f-a472-d7c1d510383f

workflow step id

Responses

Response Schema: application/vnd.api+json
required
workflow_noop_step_element (object) or workflow_change_step_element (object) or workflow_wait_step_element (object) or workflow_workflow_step_element (object)

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "c162f33d-f1be-45cd-9dc4-c0ff26f45055",
    • "type": "workflow_noop_step",
    • "attributes": {
      • "lock_version": 0,
      • "created_by": "liane",
      • "name": "et",
      • "skip_on_retry": false,
      • "status_code": "success",
      • "created_at": "2025-04-25T06:21:47.046438Z",
      • "started_at": "2025-04-25T06:14:47.670208Z",
      • "finished_at": "2025-04-25T06:18:30.320671Z",
      • "updated_at": "2025-04-25T06:21:47.046438Z",
      • "child_execution_strategy": "sequential"
      },
    • "relationships": {
      • "workflow_run": {
        },
      • "children": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/workflows/assets/runs/f142240e-3e3c-4344-ac41-39294fa3ebbd/steps/c162f33d-f1be-45cd-9dc4-c0ff26f45055",
      • "parent": "/api/projects/opc/workflows/assets/runs/f142240e-3e3c-4344-ac41-39294fa3ebbd",
      • "workflow_run": "/api/projects/opc/workflows/assets/runs/f142240e-3e3c-4344-ac41-39294fa3ebbd"
      }
    }
}

Update a workflow step

Update a workflow step to flag it to be skipped on retry.

path Parameters
step_id
required
string
Example: fef4a8d3-73cc-454f-a472-d7c1d510383f

workflow step id

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object
Array of objects

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "skip_on_retry": true
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "40972feb-daff-4cea-9eb2-48a89c5c126b",
    • "type": "workflow_change_step",
    • "attributes": {
      • "lock_version": 2,
      • "created_by": "jamal",
      • "name": "navigate",
      • "skip_on_retry": true,
      • "status_code": "error",
      • "created_at": "2025-04-25T06:21:49.692369Z",
      • "started_at": "2025-04-25T06:21:49.720070Z",
      • "finished_at": "2025-04-25T06:22:49.720081Z",
      • "updated_at": "2025-04-25T06:21:49.764694Z",
      • "action": "navigate",
      • "property_overrides": {
        }
      },
    • "relationships": {
      • "change": {
        },
      • "change_parent": {
        },
      • "action_template_version": {
        },
      • "workflow_run": {
        },
      • "children": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/workflows/assets/runs/8ec1649b-4b91-41f6-bde7-23f74daa2c21/steps/40972feb-daff-4cea-9eb2-48a89c5c126b",
      • "parent": "/api/projects/opc/workflows/assets/runs/8ec1649b-4b91-41f6-bde7-23f74daa2c21/steps/4896e011-a637-43f8-9757-996254d80c93",
      • "workflow_run": "/api/projects/opc/workflows/assets/runs/8ec1649b-4b91-41f6-bde7-23f74daa2c21"
      }
    }
}

Continue workflow step

Continues a "waiting" workflow step. To approve/reject a workflow step that needs approval see the approve workflow step API endpoint.

path Parameters
step_id
required
string
Example: 7618aa8e-80e0-43c2-bb1c-c0fb3a86e802

workflow step id

Request Body schema: application/vnd.api+json
object

Responses

Response Schema: application/vnd.api+json
required
workflow_noop_step_element (object) or workflow_change_step_element (object) or workflow_wait_step_element (object) or workflow_workflow_step_element (object)

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "message": "Done sanity checks. Ok to continue."
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "2b0d075a-43e9-437c-a8ef-a3175ccf3c47",
    • "type": "workflow_wait_step",
    • "attributes": {
      • "approved_by": [ ],
      • "rejected_by": [ ],
      • "continued_by": [
        ],
      • "requires_approval_from": null,
      • "lock_version": 1,
      • "created_by": "gregory",
      • "name": "Wait",
      • "skip_on_retry": false,
      • "status_code": "continued",
      • "created_at": "2025-04-25T06:14:37.964925Z",
      • "started_at": "2025-04-25T06:15:37.964925Z",
      • "finished_at": "2025-04-25T06:21:52.694401Z",
      • "updated_at": "2025-04-25T06:21:52.703679Z"
      },
    • "relationships": {
      • "workflow_run": {
        },
      • "children": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/workflows/assets/runs/72c3bd0a-a9e2-46b6-8eb3-5fc06c3a13d0/steps/2b0d075a-43e9-437c-a8ef-a3175ccf3c47",
      • "parent": "/api/projects/opc/workflows/assets/runs/72c3bd0a-a9e2-46b6-8eb3-5fc06c3a13d0/steps/cd453cfa-4f2e-45a0-ad8e-5a7d7be49851",
      • "workflow_run": "/api/projects/opc/workflows/assets/runs/72c3bd0a-a9e2-46b6-8eb3-5fc06c3a13d0"
      }
    }
}

Approve workflow step

Approve a workflow step that requires approval. To continue a workflow step that does need approval see the continue workflow step API endpoint

path Parameters
step_id
required
string
Example: 7618aa8e-80e0-43c2-bb1c-c0fb3a86e802

workflow step id

Request Body schema: application/vnd.api+json
object

Responses

Response Schema: application/vnd.api+json
required
workflow_noop_step_element (object) or workflow_change_step_element (object) or workflow_wait_step_element (object) or workflow_workflow_step_element (object)

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "message": "Ok to proceed."
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "adb271fc-27e4-4d80-ad0d-0122d1a10d95",
    • "type": "workflow_wait_step",
    • "attributes": {
      • "approved_by": [
        ],
      • "rejected_by": [ ],
      • "continued_by": [ ],
      • "requires_approval_from": "an-ldap-group",
      • "lock_version": 1,
      • "created_by": "cammie",
      • "name": "Approval",
      • "skip_on_retry": false,
      • "status_code": "approved",
      • "created_at": "2025-04-25T06:11:29.991470Z",
      • "started_at": "2025-04-25T06:12:29.991470Z",
      • "finished_at": "2025-04-25T06:21:56.084127Z",
      • "updated_at": "2025-04-25T06:21:56.093121Z"
      },
    • "relationships": {
      • "workflow_run": {
        },
      • "children": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/workflows/assets/runs/27f335c4-9b54-46fd-ab49-37c19be2750e/steps/adb271fc-27e4-4d80-ad0d-0122d1a10d95",
      • "parent": "/api/projects/opc/workflows/assets/runs/27f335c4-9b54-46fd-ab49-37c19be2750e/steps/c759455f-ca9c-48ce-a5d4-613ecd228577",
      • "workflow_run": "/api/projects/opc/workflows/assets/runs/27f335c4-9b54-46fd-ab49-37c19be2750e"
      }
    }
}

Reject workflow step

Reject a workflow step that requires approval.

path Parameters
step_id
required
string
Example: 7618aa8e-80e0-43c2-bb1c-c0fb3a86e802

workflow step id

Request Body schema: application/vnd.api+json
object

Responses

Response Schema: application/vnd.api+json
required
workflow_noop_step_element (object) or workflow_change_step_element (object) or workflow_wait_step_element (object) or workflow_workflow_step_element (object)

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "message": "Ok to proceed."
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "32717053-5818-4d5d-8932-17022e69b099",
    • "type": "workflow_wait_step",
    • "attributes": {
      • "approved_by": [ ],
      • "rejected_by": [
        ],
      • "continued_by": [ ],
      • "requires_approval_from": "an-ldap-group",
      • "lock_version": 1,
      • "created_by": "wilbert.romaguera",
      • "name": "Approval",
      • "skip_on_retry": false,
      • "status_code": "rejected",
      • "created_at": "2025-04-25T06:11:46.306886Z",
      • "started_at": "2025-04-25T06:12:46.306886Z",
      • "finished_at": "2025-04-25T06:21:59.791093Z",
      • "updated_at": "2025-04-25T06:21:59.801528Z"
      },
    • "relationships": {
      • "workflow_run": {
        },
      • "children": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/workflows/assets/runs/8321b42b-dd0b-41d6-b37f-37b423bc2e98/steps/32717053-5818-4d5d-8932-17022e69b099",
      • "parent": "/api/projects/opc/workflows/assets/runs/8321b42b-dd0b-41d6-b37f-37b423bc2e98/steps/1724d11e-0884-482d-b31d-1e0c1a587218",
      • "workflow_run": "/api/projects/opc/workflows/assets/runs/8321b42b-dd0b-41d6-b37f-37b423bc2e98"
      }
    }
}

List workflow steps (run specific)

Lists all steps in a workflow run.

path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

run_id
required
string
Example: 220e69ef-dce0-4806-89e3-979ec6eab6bd

workflow run id

Responses

Response Schema: application/vnd.api+json
required
Array of workflow_noop_step_element (object) or workflow_change_step_element (object) or workflow_wait_step_element (object) or workflow_workflow_step_element (object)

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "0c187305-8a9d-4e6f-a9d3-df87f9ee13ed",
      • "type": "workflow_wait_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "978eab96-a144-41a7-818f-c51d57c67394",
      • "type": "workflow_noop_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "85a09e5e-f5a1-44f6-8073-586e43639b2f",
      • "type": "workflow_noop_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "c665a0e4-9af9-4a0f-ad7a-e3b4297a3276",
      • "type": "workflow_change_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "6448cdca-96b0-4868-b555-9d89e0576820",
      • "type": "workflow_change_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "941a5e3d-73ab-4d5f-94f4-e6dfc1d60414",
      • "type": "workflow_wait_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "2f2b5845-eda6-46c3-a4d9-4b0df0b2a435",
      • "type": "workflow_workflow_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "81b2a15c-bc6e-421e-a4b6-6ca0b7b481f2",
      • "type": "workflow_change_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "c444d5b2-356d-451b-84aa-67a02b534e62",
      • "type": "workflow_workflow_step",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Show workflow step (run specific)

Shows a step of a workflow run.

path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

run_id
required
string
Example: 220e69ef-dce0-4806-89e3-979ec6eab6bd

workflow run id

step_id
required
string
Example: fef4a8d3-73cc-454f-a472-d7c1d510383f

workflow step id

Responses

Response Schema: application/vnd.api+json
required
workflow_noop_step_element (object) or workflow_change_step_element (object) or workflow_wait_step_element (object) or workflow_workflow_step_element (object)

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "a75b74a6-7203-4d49-adf5-a16f021477d2",
    • "type": "workflow_noop_step",
    • "attributes": {
      • "lock_version": 0,
      • "created_by": "katelyn",
      • "name": "qui",
      • "skip_on_retry": false,
      • "status_code": "success",
      • "created_at": "2025-04-25T06:22:05.110798Z",
      • "started_at": "2025-04-25T06:12:44.196566Z",
      • "finished_at": "2025-04-25T06:18:23.861430Z",
      • "updated_at": "2025-04-25T06:22:05.110798Z",
      • "child_execution_strategy": "sequential"
      },
    • "relationships": {
      • "workflow_run": {
        },
      • "children": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/workflows/assets/runs/87ed2fd4-dc87-4525-ba13-89c7aa26843e/steps/a75b74a6-7203-4d49-adf5-a16f021477d2",
      • "parent": "/api/projects/opc/workflows/assets/runs/87ed2fd4-dc87-4525-ba13-89c7aa26843e",
      • "workflow_run": "/api/projects/opc/workflows/assets/runs/87ed2fd4-dc87-4525-ba13-89c7aa26843e"
      }
    }
}

Continue workflow step (run specific)

Continues a "waiting" workflow step. To approve/reject a workflow step that needs approval see the approve workflow step API endpoint.

path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

run_id
required
string
Example: 220e69ef-dce0-4806-89e3-979ec6eab6bd

workflow run id

step_id
required
string
Example: 7618aa8e-80e0-43c2-bb1c-c0fb3a86e802

workflow step id

Request Body schema: application/vnd.api+json
object

Responses

Response Schema: application/vnd.api+json
required
workflow_noop_step_element (object) or workflow_change_step_element (object) or workflow_wait_step_element (object) or workflow_workflow_step_element (object)

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "message": "Done sanity checks. Ok to continue."
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "5dbe5ad8-7b59-4398-803d-1574f1408980",
    • "type": "workflow_wait_step",
    • "attributes": {
      • "approved_by": [ ],
      • "rejected_by": [ ],
      • "continued_by": [
        ],
      • "requires_approval_from": null,
      • "lock_version": 1,
      • "created_by": "apryl",
      • "name": "Wait",
      • "skip_on_retry": false,
      • "status_code": "continued",
      • "created_at": "2025-04-25T06:11:48.154461Z",
      • "started_at": "2025-04-25T06:12:48.154461Z",
      • "finished_at": "2025-04-25T06:22:09.287806Z",
      • "updated_at": "2025-04-25T06:22:09.297539Z"
      },
    • "relationships": {
      • "workflow_run": {
        },
      • "children": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/workflows/assets/runs/b78ef01f-4a5b-4867-b6ac-0cb8d361b7e6/steps/5dbe5ad8-7b59-4398-803d-1574f1408980",
      • "parent": "/api/projects/opc/workflows/assets/runs/b78ef01f-4a5b-4867-b6ac-0cb8d361b7e6/steps/191e714f-963f-49e0-9f31-514ff1caef86",
      • "workflow_run": "/api/projects/opc/workflows/assets/runs/b78ef01f-4a5b-4867-b6ac-0cb8d361b7e6"
      }
    }
}

Approve workflow step (run specific)

Approve a workflow step that requires approval. To continue a workflow step that does need approval see the continue workflow step API endpoint

path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

run_id
required
string
Example: 220e69ef-dce0-4806-89e3-979ec6eab6bd

workflow run id

step_id
required
string
Example: 7618aa8e-80e0-43c2-bb1c-c0fb3a86e802

workflow step id

Request Body schema: application/vnd.api+json
object

Responses

Response Schema: application/vnd.api+json
required
workflow_noop_step_element (object) or workflow_change_step_element (object) or workflow_wait_step_element (object) or workflow_workflow_step_element (object)

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "message": "Ok to proceed."
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "84f353a3-03a0-4e05-ae20-8d6230ddaba0",
    • "type": "workflow_wait_step",
    • "attributes": {
      • "approved_by": [
        ],
      • "rejected_by": [ ],
      • "continued_by": [ ],
      • "requires_approval_from": "an-ldap-group",
      • "lock_version": 1,
      • "created_by": "jacinto.walter",
      • "name": "Approval",
      • "skip_on_retry": false,
      • "status_code": "approved",
      • "created_at": "2025-04-25T06:12:04.309303Z",
      • "started_at": "2025-04-25T06:13:04.309303Z",
      • "finished_at": "2025-04-25T06:22:11.991768Z",
      • "updated_at": "2025-04-25T06:22:12.001712Z"
      },
    • "relationships": {
      • "workflow_run": {
        },
      • "children": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/workflows/assets/runs/648ca77d-7727-42fc-be50-32fb28610677/steps/84f353a3-03a0-4e05-ae20-8d6230ddaba0",
      • "parent": "/api/projects/opc/workflows/assets/runs/648ca77d-7727-42fc-be50-32fb28610677/steps/fd5f19c8-f3fd-4323-a106-4d64d85bb5c9",
      • "workflow_run": "/api/projects/opc/workflows/assets/runs/648ca77d-7727-42fc-be50-32fb28610677"
      }
    }
}

Reject workflow step (run specific)

Reject a workflow step that requires approval.

path Parameters
project_code
required
string
Example: opc

project code

workflow_code
required
string
Example: assets

workflow code

run_id
required
string
Example: 220e69ef-dce0-4806-89e3-979ec6eab6bd

workflow run id

step_id
required
string
Example: 7618aa8e-80e0-43c2-bb1c-c0fb3a86e802

workflow step id

Request Body schema: application/vnd.api+json
object

Responses

Response Schema: application/vnd.api+json
required
workflow_noop_step_element (object) or workflow_change_step_element (object) or workflow_wait_step_element (object) or workflow_workflow_step_element (object)

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "message": "Ok to proceed."
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "bdd15f88-63b8-435f-b555-5a2f8c770906",
    • "type": "workflow_wait_step",
    • "attributes": {
      • "approved_by": [ ],
      • "rejected_by": [
        ],
      • "continued_by": [ ],
      • "requires_approval_from": "an-ldap-group",
      • "lock_version": 1,
      • "created_by": "jewel",
      • "name": "Approval",
      • "skip_on_retry": false,
      • "status_code": "rejected",
      • "created_at": "2025-04-25T06:11:30.420958Z",
      • "started_at": "2025-04-25T06:12:30.420958Z",
      • "finished_at": "2025-04-25T06:22:15.692848Z",
      • "updated_at": "2025-04-25T06:22:15.703025Z"
      },
    • "relationships": {
      • "workflow_run": {
        },
      • "children": {
        }
      },
    • "links": {
      • "self": "/api/projects/opc/workflows/assets/runs/39352c08-1f54-4720-b6c0-083ba87eea5c/steps/bdd15f88-63b8-435f-b555-5a2f8c770906",
      • "parent": "/api/projects/opc/workflows/assets/runs/39352c08-1f54-4720-b6c0-083ba87eea5c/steps/6435d8a8-135f-4c23-a4af-f83bf23b8877",
      • "workflow_run": "/api/projects/opc/workflows/assets/runs/39352c08-1f54-4720-b6c0-083ba87eea5c"
      }
    }
}

Events

Endpoints to interact with events.

List events

Lists all events.

query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[query_param_code_eq]=opc
limit
integer [ 1 .. 1000 ]
Default: 10
Example: limit=50

Limit the number of events returned

Responses

Response Schema: application/vnd.api+json
required
Array of objects
object

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "35e9e34c-0aed-45a8-bb67-c32409f9fb3c",
      • "type": "event",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ],
  • "meta": {
    • "partial_response": false
    }
}

Create event

Creates an event.

Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "type": "custom event",
      • "any_key": "with a value",
      • "another_key": "with a different value",
      • "nested": {
        }
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "5a941a0c-243d-42e1-a03c-92ebb012b42c",
    • "type": "event",
    • "attributes": {
      • "some": "event data",
      • "username": "hector.jones",
      • "system": false,
      • "type": "my event",
      • "created_at": "2025-04-25T06:20:58.256616Z"
      },
    • "relationships": {
      • "source": {
        }
      },
    • "links": {
      • "self": "/api/events/5a941a0c-243d-42e1-a03c-92ebb012b42c"
      }
    }
}

Show event

Shows an event.

path Parameters
event_id
required
string
Example: 2df52521-5e6c-4aa0-922e-e325960ae2dd

event id

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "6e116d36-d5c2-47b4-9216-3577392ba5df",
    • "type": "event",
    • "attributes": {
      • "nested": {
        },
      • "any_key": "with a value",
      • "another_key": "with a different value",
      • "username": "jewel",
      • "system": false,
      • "type": "my custom event",
      • "created_at": "2025-04-25T06:20:58.680771Z"
      },
    • "relationships": {
      • "source": {
        }
      },
    • "links": {
      • "self": "/api/events/6e116d36-d5c2-47b4-9216-3577392ba5df"
      }
    }
}

Settings

Endpoints to interact with settings.

Show settings

Shows the current settings.

path Parameters
settings_id
required
string
Example: 1e6ecd67-e4c4-4b77-aed9-051903eebef1

settings id

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "eb0a8999-eb39-4280-9945-cd282e786167",
    • "type": "settings",
    • "attributes": {
      • "data": {
        },
      • "version": 1,
      • "created_at": "2025-04-25T06:21:16.552407Z"
      },
    • "relationships": {
      • "owner": {
        }
      },
    • "links": {
      • "self": "/api/settings/eb0a8999-eb39-4280-9945-cd282e786167",
      • "current_version": "/api/settings/eb0a8999-eb39-4280-9945-cd282e786167/versions/1",
      • "versions": "/api/settings/eb0a8999-eb39-4280-9945-cd282e786167/versions"
      }
    }
}

Update settings

Updates a settings JSON if the included version matches the current settings version.

path Parameters
id_to_update
required
string
Example: 1e6ecd67-e4c4-4b77-aed9-051903eebef1

settings id

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "data": {
        },
      • "version": 1
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "9d80cdbf-2475-4b3a-a8aa-53878b0186a7",
    • "type": "settings",
    • "attributes": {
      • "data": {
        },
      • "version": 2,
      • "created_at": "2025-04-25T06:21:16.872818Z"
      },
    • "relationships": {
      • "owner": {
        }
      },
    • "links": {
      • "self": "/api/settings/9d80cdbf-2475-4b3a-a8aa-53878b0186a7",
      • "current_version": "/api/settings/9d80cdbf-2475-4b3a-a8aa-53878b0186a7/versions/2",
      • "versions": "/api/settings/9d80cdbf-2475-4b3a-a8aa-53878b0186a7/versions"
      }
    }
}

Update settings (unsafe)

Updates a settings JSON, without any version checking (always updates).

path Parameters
id_to_set
required
string
Example: 1e6ecd67-e4c4-4b77-aed9-051903eebef1

settings id

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "data": {
        }
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "ef971ce8-0101-4cd6-993b-d5ab7ec26ad9",
    • "type": "settings",
    • "attributes": {
      • "data": {
        },
      • "version": 2,
      • "created_at": "2025-04-25T06:21:17.427476Z"
      },
    • "relationships": {
      • "owner": {
        }
      },
    • "links": {
      • "self": "/api/settings/ef971ce8-0101-4cd6-993b-d5ab7ec26ad9",
      • "current_version": "/api/settings/ef971ce8-0101-4cd6-993b-d5ab7ec26ad9/versions/2",
      • "versions": "/api/settings/ef971ce8-0101-4cd6-993b-d5ab7ec26ad9/versions"
      }
    }
}

Settings versions

Endpoints to interact with the version history for settings.

List settings versions

Lists all versions of an OpsChain settings.

path Parameters
settings_id
required
string
Example: 1e6ecd67-e4c4-4b77-aed9-051903eebef1

settings id

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "34ce3fa7-5df8-41d2-851b-288140a69ee7",
      • "type": "settings_version",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Show settings version

Shows the settings values for this settings version.

path Parameters
settings_id
required
string
Example: 1e6ecd67-e4c4-4b77-aed9-051903eebef1

settings id

version_number
required
integer
Example: 1

version number

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "4e95eaaf-a6b6-4a18-b3c2-be06d984e509",
    • "type": "settings_version",
    • "attributes": {
      • "data": {
        },
      • "version": 1,
      • "created_at": "2025-04-25T06:21:18.111703Z"
      },
    • "relationships": {
      • "settings": {
        }
      },
    • "links": {
      • "versions": "/api/settings/dd562de2-a554-4580-86dc-a0ac02bba961/versions",
      • "owner": "/api/projects/opc",
      • "self": "/api/settings/dd562de2-a554-4580-86dc-a0ac02bba961/versions/1"
      }
    }
}

Authorisation rules

Endpoints to interact with authorisation rules.

List rules

Lists all authorisation rules.

query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[name]=rule_name

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "0cdf9824-3790-4472-9d13-2b810275f7be",
      • "type": "authorisation_rule",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "bcba1f61-b059-417d-ab12-e0f21f646453",
      • "type": "authorisation_rule",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "886995c9-4ed5-49bc-a766-d7799ee995c6",
      • "type": "authorisation_rule",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Create rule

Create an authorisation rule.

Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "path": "^/projects/opc/assets/prj_soa",
      • "readable": false,
      • "updatable": false,
      • "executable": false,
      • "name": "Deny access to Project asset"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "f8899d04-cdf8-48a0-8ed2-b97d37ee3295",
    • "type": "authorisation_rule",
    • "attributes": {
      • "name": "parse",
      • "path": "^/projects/cruxt/environments/hauii",
      • "readable": false,
      • "updatable": false,
      • "executable": false,
      • "created_by": "jackson.kihn",
      • "system": false,
      • "created_at": "2025-04-25T06:20:47.315599Z",
      • "updated_at": "2025-04-25T06:20:47.315599Z"
      },
    • "relationships": {
      • "authorisation_policies": {
        }
      },
    • "links": {
      • "self": "/api/authorisation_rules/f8899d04-cdf8-48a0-8ed2-b97d37ee3295"
      }
    }
}

Show rule

Shows an authorisation rule.

path Parameters
authorisation_rule_id
required
string
Example: 32b843c9-386d-4463-9211-e02c0c7adab3

authorisation rule id

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "cd2fdf84-1f88-4255-9fb9-400911f40d3c",
    • "type": "authorisation_rule",
    • "attributes": {
      • "name": "Deny access to Development",
      • "path": "^/projects/opc/environments/dev",
      • "readable": false,
      • "updatable": false,
      • "executable": false,
      • "created_by": "opschain",
      • "system": false,
      • "created_at": "2025-04-25T06:20:47.857845Z",
      • "updated_at": "2025-04-25T06:20:47.857845Z"
      },
    • "relationships": {
      • "authorisation_policies": {
        }
      },
    • "links": {
      • "self": "/api/authorisation_rules/cd2fdf84-1f88-4255-9fb9-400911f40d3c"
      }
    }
}

Update authorisation rule

Update an authorisation rule.

path Parameters
authorisation_rule_id
required
string
Example: 32b843c9-386d-4463-9211-e02c0c7adab3

authorisation rule id

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    • "attributes": {
      • "path": "/projects/demo/environments/dev",
      • "readable": false,
      • "updatable": false,
      • "executable": false,
      • "name": "Deny all on dev environment"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "abafe4b4-8584-4f46-aa31-c39d783de870",
    • "type": "authorisation_rule",
    • "attributes": {
      • "name": "Deny all on dev environment",
      • "path": "^/projects/demo/environments/dev",
      • "readable": false,
      • "updatable": false,
      • "executable": false,
      • "created_by": "merideth",
      • "system": false,
      • "created_at": "2025-04-25T06:20:48.418938Z",
      • "updated_at": "2025-04-25T06:20:48.469573Z"
      },
    • "relationships": {
      • "authorisation_policies": {
        }
      },
    • "links": {
      • "self": "/api/authorisation_rules/abafe4b4-8584-4f46-aa31-c39d783de870"
      }
    }
}

Delete rule

Delete an authorisation rule.

path Parameters
authorisation_rule_id
required
string
Example: 32b843c9-386d-4463-9211-e02c0c7adab3

authorisation rule id

Responses

Response samples

Content type
application/vnd.api+json
{ }

Authorisation policies

Endpoints to interact with authorisation policies.

List policies

Lists all authorisation policies.

query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[name_eq]=secure

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "b79eb667-1b09-4df8-b563-b799c55f5a58",
      • "type": "authorisation_policy",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      },
    • {
      • "id": "9219c1dc-0a18-4447-880e-b477b44d7b9c",
      • "type": "authorisation_policy",
      • "attributes": {
        },
      • "relationships": {
        },
      • "links": {
        }
      }
    ]
}

Create policy

Create an authorisation policy with a list of authorisation rules.

Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
Example
{
  • "data": {
    • "attributes": {
      • "name": "johnnie",
      • "description": "Tenetur possimus illo dolor.",
      • "authorisation_rules": [
        ]
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "b32fa6bf-a865-44eb-8489-60956323b81f",
    • "type": "authorisation_policy",
    • "attributes": {
      • "name": "rodger",
      • "description": "Ab et laboriosam amet.",
      • "system": false,
      • "created_by": "leeann",
      • "created_at": "2025-04-25T06:20:43.836670Z",
      • "updated_at": "2025-04-25T06:20:43.836670Z"
      },
    • "relationships": {
      • "policy_rules": {
        },
      • "policy_assignments": {
        },
      • "authorisation_rules": {
        }
      },
    • "links": {
      • "self": "/api/authorisation_policies/b32fa6bf-a865-44eb-8489-60956323b81f",
      • "policy_rules": "/api/authorisation_policies/b32fa6bf-a865-44eb-8489-60956323b81f/rules",
      • "policy_assignments": "/api/authorisation_policies/b32fa6bf-a865-44eb-8489-60956323b81f/assignments"
      }
    }
}

Show policy

Shows an authorisation policy.

path Parameters
authorisation_policy_id
required
string
Example: f3a32744-eb71-4c53-9c0b-6dce4dd10590

authorisation policy id

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "891e28d7-1672-46f2-b5df-a4e0fab1eab7",
    • "type": "authorisation_policy",
    • "attributes": {
      • "name": "New users policy",
      • "description": "Access for all incoming users",
      • "system": false,
      • "created_by": "randal",
      • "created_at": "2025-04-25T06:20:44.824381Z",
      • "updated_at": "2025-04-25T06:20:44.824381Z"
      },
    • "relationships": {
      • "policy_rules": {
        },
      • "policy_assignments": {
        },
      • "authorisation_rules": {
        }
      },
    • "links": {
      • "self": "/api/authorisation_policies/891e28d7-1672-46f2-b5df-a4e0fab1eab7",
      • "policy_rules": "/api/authorisation_policies/891e28d7-1672-46f2-b5df-a4e0fab1eab7/rules",
      • "policy_assignments": "/api/authorisation_policies/891e28d7-1672-46f2-b5df-a4e0fab1eab7/assignments"
      }
    }
}

Update authorisation policy and its rules

Update an authorisation policy and its authorisation rules. If no authorisation rules are provided, all associated rules will be removed from the policy.

path Parameters
authorisation_policy_id
required
string
Example: f3a32744-eb71-4c53-9c0b-6dce4dd10590

authorisation policy id

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
object

Request samples

Content type
application/vnd.api+json
Example
{
  • "data": {
    • "attributes": {
      • "name": "michel",
      • "description": "Praesentium ab quia maxime.",
      • "authorisation_rules": [
        ]
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "afb700fa-ec94-4dfa-8220-9b48ff2feb9d",
    • "type": "authorisation_policy",
    • "attributes": {
      • "name": "Updated policy name",
      • "description": "Access for all incoming users",
      • "system": false,
      • "created_by": "joe",
      • "created_at": "2025-04-25T06:20:45.393227Z",
      • "updated_at": "2025-04-25T06:20:45.436298Z"
      },
    • "relationships": {
      • "policy_rules": {
        },
      • "policy_assignments": {
        },
      • "authorisation_rules": {
        }
      },
    • "links": {
      • "self": "/api/authorisation_policies/afb700fa-ec94-4dfa-8220-9b48ff2feb9d",
      • "policy_rules": "/api/authorisation_policies/afb700fa-ec94-4dfa-8220-9b48ff2feb9d/rules",
      • "policy_assignments": "/api/authorisation_policies/afb700fa-ec94-4dfa-8220-9b48ff2feb9d/assignments"
      }
    }
}

Delete policy

Delete an authorisation policy.

path Parameters
authorisation_policy_id
required
string
Example: f3a32744-eb71-4c53-9c0b-6dce4dd10590

authorisation policy id

Responses

Response samples

Content type
application/vnd.api+json
{ }

Authorisation policy assignments

Endpoints to interact with authorisation policy assignments.

List policy assignments

Lists all policy assignments for a specific authorisation policy.

path Parameters
authorisation_policy_id
required
string
Example: f3a32744-eb71-4c53-9c0b-6dce4dd10590

authorisation policy id

query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[username_eq]=opschain

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "aa313060-33b4-478f-ae6b-696f6ff9217c",
      • "type": "policy_assignment",
      • "attributes": {
        },
      • "links": {
        }
      }
    ]
}

Assign a policy to users or groups

Assign an authorisation policy to one or more users and/or groups.

path Parameters
authorisation_policy_id
required
string
Example: f3a32744-eb71-4c53-9c0b-6dce4dd10590

authorisation policy id

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Request samples

Content type
application/vnd.api+json
Example
{
  • "data": {
    • "attributes": {
      • "assignments": [
        ]
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "e0761e4c-c559-49af-b219-f56ee0a75e37",
      • "type": "policy_assignment",
      • "attributes": {
        },
      • "links": {
        }
      }
    ]
}

Authorisation policy rules

Endpoints to interact with authorisation policy rules.

List policy rules

Lists all policy rules for a specific authorisation policy.

path Parameters
authorisation_policy_id
required
string
Example: f3a32744-eb71-4c53-9c0b-6dce4dd10590

authorisation policy id

query Parameters
filter[<query/sort filter>]=
string
Example: filter[<query/sort filter>]==> filter[username_eq]=opschain

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "27f10faf-ecc9-411f-bdf0-2a3f4bdc44f3",
      • "type": "policy_rule",
      • "attributes": {
        },
      • "links": {
        }
      },
    • {
      • "id": "51847d79-b868-477f-9ff1-62f1219f746c",
      • "type": "policy_rule",
      • "attributes": {
        },
      • "links": {
        }
      }
    ]
}

Create policy rule(s)

Add one or more authorisation rules to a specific authorisation policy.

path Parameters
authorisation_policy_id
required
string
Example: f3a32744-eb71-4c53-9c0b-6dce4dd10590

authorisation policy id

Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
Example
{
  • "data": {
    • "attributes": {
      • "authorisation_rule_id": "32b843c9-386d-4463-9211-e02c0c7adab3"
      }
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "bbf2e9c8-1859-4acd-801e-fbfad16c9b68",
      • "type": "policy_rule",
      • "attributes": {
        },
      • "links": {
        }
      }
    ]
}

Delete a policy rule

Remove an authorisation rule from a specific authorisation policy.

path Parameters
authorisation_policy_id
required
string
Example: f3a32744-eb71-4c53-9c0b-6dce4dd10590

authorisation policy id

policy_rule_id
required
string
Example: 5200852b-1b5b-42eb-ad7d-9f022d4ab95d

policy rule id

Responses

Response samples

Content type
application/vnd.api+json
{ }

Users

Endpoints to interact with the users in the system.

List users

Lists users in the system

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "d33b3ba7-5d94-47f5-993d-6a8333509e23",
      • "type": "user",
      • "attributes": {
        }
      }
    ]
}

Groups

Endpoints to interact with the user LDAP groups.

List LDAP groups

Lists LDAP groups in the system

Responses

Response Schema: application/vnd.api+json
required
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    • {
      • "id": "cn=qa,ou=groups,dc=opschain,dc=io",
      • "type": "group",
      • "attributes": {
        }
      },
    • {
      • "id": "cn=others,ou=groups,dc=opschain,dc=io",
      • "type": "group",
      • "attributes": {
        }
      }
    ]
}

Info

Get version and other information about the running OpsChain instance.

Get OpsChain server info

Responses

Response Schema: application/vnd.api+json
required
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    • "id": "0",
    • "type": "info",
    • "attributes": {
      • "version": "2025-04-25",
      • "runner_image": "limepoint/opschain-runner:2025-04-25",
      • "db_version": "17.2",
      • "api_version": "7.1.5.1",
      • "ldap_available?": true
      },
    • "links": {
      • "self": "/api/info"
      }
    }
}