Process Definitions
A process template defines the steps in a process including who is authorized to sign off each step
Create a Process Definition
POST https://api.borlaug.network/provenance/registries/:registryid/definitions
Path Parameters
registryid
number
The registry to create the process definition in.
Headers
Authentication
string
Request Body
name
string
The name of the process template
{
    "result": "success",
    "id": 835300330,
    "timestamp": "2020-09-03T22:15:01.470373"
}{
    "name": "Test"
}Update the name of a Process Template
PATCH https://api.borlaug.network/provenance/registries/:registryid/definitions/:definitionid
Path Parameters
definitionid
number
registryid
number
Headers
Authentication
string
Request Body
name
string
{
    "result": "success",
    "id": 835300330,
    "timestamp": "2020-09-03T22:15:21.034412100"
}{
    "name": "Test"
}Get Process Templates
GET https://api.borlaug.network/provenance/registries/:registryid/definitions
Get the Process Templates in given Registry in a paged, searchable manner
Path Parameters
registryid
number
Query Parameters
per_page
number
page
number
search
string
sort_by
string
order
string
Headers
Authentication
string
{
    "templates": [
        {
            "template": 835300330,
            "created_by": "5EZ7gNcZidoanKK45JK4YVQNDpEScbcCNbV4BU7fJWJdAFsu",
            "name": "Test 2",
            "created": "2020-09-03T22:15:01.470373"
        }
    ],
    "total": 1
}Get a single Process Template
GET https://api.borlaug.network/provenance/registries/:registryid/definitions/:definitionid
Path Parameters
definitionid
number
registryid
number
{
    "template": 835300330,
    "created_by": "5EZ7gNcZidoanKK45JK4YVQNDpEScbcCNbV4BU7fJWJdAFsu",
    "name": "Test 2",
    "created": "2020-09-03T22:15:01.470373"
}Delete a Process Template
DELETE https://api.borlaug.network/provenance/registries/:registryid/definitions/:definitionid
Path Parameters
definitionid
number
registryid
number
{
    "result": "success",
    "message": "Template Deleted",
    "id": 171523477,
    "timestamp": "2020-09-04T15:11:31.333815332"
}Last updated
Was this helpful?