---
title: "POST /api/graphchain/{chain}/consentcontracts"
method: POST
path: "/api/graphchain/{chain}/consentcontracts"
tags: ["Graph Chain APIs"]
---

# POST /api/graphchain/{chain}/consentcontracts

`POST /api/graphchain/{chain}/consentcontracts`

<b>Allowed user roles:</b><br/><ul><li>sdzAdmin</li><li>sdzUser</li></ul><br/><br/>create a consent contract

## Path parameters

- `chain` string, required

## Request body

- CreateOrUpdateConsentContractRequestPublic
  - `consentContract` ConsentContractPublic, required
    - `to` string[]
    - `jwtProperties` unknown
    - `start` string, date-time
    - `until` string, date-time
    - `when` string
    - `only` string[]
    - `description` string
    - `jpath` string
  - `metadata` object

## Response `200`

OK

---

[API](https://skmtc.net/burstiq/apis/lifegraph-apis.md) · [All operations](https://skmtc.net/burstiq/apis/lifegraph-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/burstiq/lifegraph-apis/versions/381306ef1fcd/schema)
