Skip to content
Daml

Post apiutilitiesv0registrymintv0offer choice contextsreject

POST
/
api
/
utilities
/
v0
/
registry
/
mint
/
v0
/
offer
/
{mintOfferId}
/
choice-contexts
/
reject
Try it
cURL

cURL

curl --request POST \
  --url https://api.utilities.digitalasset.com/api/utilities/v0/registry/mint/v0/offer/{mintOfferId}/choice-contexts/reject
import requests

url = "https://api.utilities.digitalasset.com/api/utilities/v0/registry/mint/v0/offer/{mintOfferId}/choice-contexts/reject"

response = requests.post(url)

print(response.text)
const options = {method: 'POST'};

fetch('https://api.utilities.digitalasset.com/api/utilities/v0/registry/mint/v0/offer/{mintOfferId}/choice-contexts/reject', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.utilities.digitalasset.com/api/utilities/v0/registry/mint/v0/offer/{mintOfferId}/choice-contexts/reject",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.utilities.digitalasset.com/api/utilities/v0/registry/mint/v0/offer/{mintOfferId}/choice-contexts/reject"

req, _ := http.NewRequest("POST", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.utilities.digitalasset.com/api/utilities/v0/registry/mint/v0/offer/{mintOfferId}/choice-contexts/reject")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.utilities.digitalasset.com/api/utilities/v0/registry/mint/v0/offer/{mintOfferId}/choice-contexts/reject")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
200
400
404
500
{
  "choiceContextData": {},
  "disclosedContracts": [
    {
      "contractId": "<string>",
      "templateId": "<string>",
      "createdEventBlob": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "synchronizerId": "<string>",
      "domainId": "<string>"
    }
  ]
}
{
"error": "unknown_error",
"error_description": "Something went wrong"
}
{
"error": "unknown_error",
"error_description": "Something went wrong"
}
{
"error": "unknown_error",
"error_description": "Something went wrong"
}

Path Parameters

mintOfferId
string
required

The contract ID of the mint offer to reject.

Response

200
application/json

ok

The context required to exercise a choice on a contract via an interface. Used to retrieve additional reference date that is passed in via disclosed contracts, which are in turn referred to via their contract ID in the choiceContextData.

choiceContextData
object
required

The additional data to use when exercising the choice.

disclosedContracts
object[]
required

The contracts that are required to be disclosed to the participant node for exercising the choice.

Show child attributes