Skip to content
CCPEDIAby Unity Nodes
Digital Asset docs

Post apiutilitiesv0registrymintv0request choice contextsreject

Updated 27-11-2026

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

cURL

curl --request POST \
  --url http://localhost:8080/api/utilities/v0/registry/mint/v0/request/{mintRequestId}/choice-contexts/reject
import requests

url = "http://localhost:8080/api/utilities/v0/registry/mint/v0/request/{mintRequestId}/choice-contexts/reject"

response = requests.post(url)

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

fetch('http://localhost:8080/api/utilities/v0/registry/mint/v0/request/{mintRequestId}/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_PORT => "8080",
  CURLOPT_URL => "http://localhost:8080/api/utilities/v0/registry/mint/v0/request/{mintRequestId}/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 := "http://localhost:8080/api/utilities/v0/registry/mint/v0/request/{mintRequestId}/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("http://localhost:8080/api/utilities/v0/registry/mint/v0/request/{mintRequestId}/choice-contexts/reject")
  .asString();
require 'uri'
require 'net/http'

url = URI("http://localhost:8080/api/utilities/v0/registry/mint/v0/request/{mintRequestId}/choice-contexts/reject")

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

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

mintRequestId
string
required

The contract ID of the mint request 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