Creates a new contract definition revision
Note: assetsSelector supports multiple conditions using key-value pairs.If a list of assetIDs has to be provided then a key named assetIds should be used
- application/json
Request Body required
- id string
- name string
- assetsSelector object[]
- accessPolicyId string
- usagePolicyId string
Responses
- 200
- 400
- 409
Contract definition was created successfully. Returns the Contract Definition Id
- application/json
- Schema
- Example (from schema)
Schema
- message string
- level string
result object
items object[]
id string
{
"message": "string",
"level": "string",
"result": {
"items": [
{
"id": "string"
}
]
}
}
Request body was malformed
- application/json
- Schema
- Example (from schema)
Schema
- message string
- level string
- result string
{
"message": "string",
"level": "string",
"result": "string"
}
Contract definition definition could not be created, because it does already exist.
- application/json
- Schema
- Example (from schema)
Schema
- message string
- level string
- result string
{
"message": "string",
"level": "string",
"result": "string"
}
Loading...