---
title: "POST /api/v1/contracts"
method: POST
path: "/api/v1/contracts"
tags: ["Contracts"]
---

# POST /api/v1/contracts

`POST /api/v1/contracts`

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.

## Query parameters

- `workflowId` integer
- `contractCodeId` integer
- `connectionId` integer

## Request body

- WorkflowActionInput
  - `workflowFunctionID` integer
  - `workflowActionParameters` ContractActionParameter[]
    - `name` string
    - `value` string

## Response `200`

OK

## Other responses

- `204` — No Content

---

[API](https://skmtc.net/azure/apis/azure-blockchain-workbench-rest-api.md) · [All operations](https://skmtc.net/azure/apis/azure-blockchain-workbench-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/azure-blockchain-workbench-rest-api/revisions/87f9d32cbefd/schema)
