Daml
Post apiutilitiesv0registryburnv0offer choice contextsreject
cURL
cURL
curl --request POST \
--url https://api.utilities.digitalasset.com/api/utilities/v0/registry/burn/v0/offer/{burnOfferId}/choice-contexts/rejectimport requests
url = "https://api.utilities.digitalasset.com/api/utilities/v0/registry/burn/v0/offer/{burnOfferId}/choice-contexts/reject"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.utilities.digitalasset.com/api/utilities/v0/registry/burn/v0/offer/{burnOfferId}/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/burn/v0/offer/{burnOfferId}/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/burn/v0/offer/{burnOfferId}/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/burn/v0/offer/{burnOfferId}/choice-contexts/reject")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.utilities.digitalasset.com/api/utilities/v0/registry/burn/v0/offer/{burnOfferId}/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_body200
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"
}POST
/
api
/
utilities
/
v0
/
registry
/
burn
/
v0
/
offer
/
{burnOfferId}
/
choice-contexts
/
reject
cURL
cURL
curl --request POST \
--url https://api.utilities.digitalasset.com/api/utilities/v0/registry/burn/v0/offer/{burnOfferId}/choice-contexts/rejectimport requests
url = "https://api.utilities.digitalasset.com/api/utilities/v0/registry/burn/v0/offer/{burnOfferId}/choice-contexts/reject"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.utilities.digitalasset.com/api/utilities/v0/registry/burn/v0/offer/{burnOfferId}/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/burn/v0/offer/{burnOfferId}/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/burn/v0/offer/{burnOfferId}/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/burn/v0/offer/{burnOfferId}/choice-contexts/reject")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.utilities.digitalasset.com/api/utilities/v0/registry/burn/v0/offer/{burnOfferId}/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_body200
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
The contract ID of the burn 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.
Was this page helpful?
YesNo
Post apiutilitiesv0registryburnv0offer choice contextsacceptPost apiutilitiesv0registryburnv0offer choice contextscancel
⌘I