Contracts V2 - Contract Post

Creates a new smart contract instance for the specified workflow ID. Users are only able to create a new smart contract instance if the user is associated with an application role, which can initiate a smart contract instance for the workflow.

POST /api/v2/contracts
POST /api/v2/contracts?workflowId={workflowId}&contractCodeId={contractCodeId}&connectionId={connectionId}

URI Parameters

Name In Required Type Description
workflowId
query
  • integer
int32

The id of the workflow.

contractCodeId
query
  • integer
int32

The id of the smart contract implementation.

connectionId
query
  • integer
int32

The id of the blockchain connection.

Request Body

Name Type Description
workflowActionParameters
workflowFunctionID
  • integer

Responses

Name Type Description
200 OK

OK

204 No Content

No Content

Definitions

ContractActionParameter
WorkflowActionInput

ContractActionParameter

Name Type Description
name
  • string
value
  • string
workflowFunctionParameterId
  • integer

WorkflowActionInput

Name Type Description
workflowActionParameters
workflowFunctionID
  • integer