Applications

Operations

Application Delete

Deletes the specified blockchain application. This method can only be performed by users who are Workbench administrators. NOTE: Currently not implemented.

Application Disable

Disables the specified blockchain application. This method can only be performed by users who are Workbench administrators.

Application Enable

Enables the specified blockchain application. This method can only be performed by users who are Workbench administrators.

Application Get

Gets the blockchain application matching a specific application ID. Users who are Workbench administrators get the blockchain application. Non-Workbench administrators get the blockchain application if they have at least one associated application role or is associated with a smart contract instance role.

Applications Get

Lists all blockchain applications to which a user has access in Workbench. Users who are Workbench administrators get all blockchain applications. Non-Workbench administrators get all blockchain applications for which they have at least one associated application role or an associated smart contract instance role.

Applications Post

Creates a new blockchain application. This method can only be performed by users who are Workbench administrators.

Contract Code Delete

Deletes the specified blockchain smart contract implementation of a specific blockchain application. This method can only be performed by users who are Workbench administrators. NOTE: not currently implemented

Contract Code Get

Get the blockchain smart contract implementation matching a specific contract code id. Users who are Workbench administrators get the specified smart contract implementation. Non-Workbench administrators get the smart contract implementation if they have at least one associated application role or is associated with a smart contract instance role.

Contract Code Post

Uploads one or more smart contracts (ex. .sol or .zip), representing the implementation of the specified blockchain application. This method can only be performed by users who are Workbench administrators.

Contract Codes Get

List all blockchain smart contract implementations of the specified blockchain application. Users who are Workbench administrators get all smart contract implementations. Non-Workbench administrators get all smart contract implementations for which they have at least one associated application role or is associated with a smart contract instance role.

Role Assignment Delete

Deletes the specified role assignment. This method can only be performed by users who are Workbench administrators.

Role Assignment Get

Get a role assignment of the specified blockchain application matching a specific user role assignment ID. Users who are Workbench administrators get the role assignment. Non-Workbench administrators get the role assignment if they are associated in the application.

Role Assignment Put

Updates the specified role assignment. This method can only be performed by users who are Workbench administrators.

Role Assignments Get

List all role assignments of the specified blockchain application. Users who are Workbench administrators get all role assignments. Non-Workbench administrators get all their role assignments. Roles are specified in the Workbench application configuration and can be retrieved from GET /applications/{applicationID}. Also, user information can be retrieved from GET /users/{userID}.

Role Assignments Post

Creates a user-to-role mapping in the specified blockchain application. This method can only be performed by users who are Workbench administrators.

Workflow Get

Get a workflow matching a specific workflow ID. Users who are Workbench administrators get the workflow. Non-Workbench administrators get the workflow if they have at least one associated application role or is associated with a smart contract instance role.

Workflows Get

List all workflows of the specified blockchain application. Users who are Workbench administrators get all workflows. Non-Workbench administrators get all workflows for which they have at least one associated application role or are associated with a smart contract instance role.