Process Definition Steps

The steps of a Process specifying who is authorized to sign off (attest) the completion of each step.

Create a Process Definition Step

POST https://api.borlaug.network/provenance/registries/:registryid/definitions/:definitionid/template_steps

Path Parameters

Name
Type
Description

definitionid

string

registryid

string

Headers

Name
Type
Description

Authentication

string

Authentication token to track down who is emptying our stocks.

Request Body

Name
Type
Description

attestors

array

An array of Did's of attestors

name

string

{
    "result": "success",
    "id": 1544716833,
    "timestamp": "2020-09-04T17:15:25.113563200"
}
{    
    "name": "Test",   
    "attestors":["0x123456789123456789123456789"]
}

Update a Process Definition Step

PATCH https://api.borlaug.network/provenance/registries/:registryid/definitions/:templateid/template_steps/:templatestepid

Path Parameters

Name
Type
Description

templatestepid

number

definitionid

number

registryid

number

Headers

Name
Type
Description

Authentication

string

Request Body

Name
Type
Description

name

string

add_attestors

array

remove_attestors

array

{    
    "name": "Test 2",
    "add_attestors":["0x123456789123456789123456789"],
    "update_attestors":["0x123456789123456789123456789"],
    "remove_attestors":["0x123456789123456789123456789"]
}

Get Process Definition Steps

GET https://api.borlaug.network/provenance/registries/:registryid/definitions/:definitionid/template_steps

Get the Steps for a given Template in a paged, searchable, sortable manner

Path Parameters

Name
Type
Description

definitionid

number

registryid

number

Query Parameters

Name
Type
Description

page

number

per_page

number

search

string

sort_by

number

order

number

Headers

Name
Type
Description

Authentication

string

Get a single Process Definition Step

GET https://api.borlaug.network/provenance/registries/:registryid/definitions/:templateid/template_steps/:templatestepid

Path Parameters

Name
Type
Description

templatestepid

number

definitionid

number

registryid

number

Delete a Process Definition Step

DELETE https://api.borlaug.network/provenance/registries/:registryid/definitions/:definitionid/template_steps/:templatestepid

Path Parameters

Name
Type
Description

templatestepid

number

definitionid

number

registryid

number

Last updated

Was this helpful?