curl --request POST \
--url 'http://localhost:7575/v2/dars' \
--header 'Authorization: Bearer $TOKEN' \
--header 'Content-Type: application/octet-stream' \
--data-binary '@request.bin'
{}
<string>
{
"code": "<string>",
"cause": "<string>",
"correlationId": "<string>",
"traceId": "<string>",
"context": {},
"resources": [
[
"<string>"
]
],
"errorCategory": 123,
"grpcCodeValue": 123,
"retryInfo": "<string>",
"definiteAnswer": false
}
POST /v2/dars
Upload a DAR to the participant node
POST
/
v2
/
dars
curl --request POST \
--url 'http://localhost:7575/v2/dars' \
--header 'Authorization: Bearer $TOKEN' \
--header 'Content-Type: application/octet-stream' \
--data-binary '@request.bin'
{}
<string>
{
"code": "<string>",
"cause": "<string>",
"correlationId": "<string>",
"traceId": "<string>",
"context": {},
"resources": [
[
"<string>"
]
],
"errorCategory": 123,
"grpcCodeValue": 123,
"retryInfo": "<string>",
"definiteAnswer": false
}
Upload a DAR to the participant node
OpenAPIUpdated 3.5
curl --request POST \
--url 'http://localhost:7575/v2/dars' \
--header 'Authorization: Bearer $TOKEN' \
--header 'Content-Type: application/octet-stream' \
--data-binary '@request.bin'
{}
<string>
{
"code": "<string>",
"cause": "<string>",
"correlationId": "<string>",
"traceId": "<string>",
"context": {},
"resources": [
[
"<string>"
]
],
"errorCategory": 123,
"grpcCodeValue": 123,
"retryInfo": "<string>",
"definiteAnswer": false
}
Authorizations
httpAuth
HTTP bearer authentication. Send the token as
Authorization: Bearer <token>. Ledger API standard JWT tokenapiKeyAuth
Query parameters
Body
application/octet-stream
Responses
200
application/json
400
Invalid value, Invalid value for: body, Invalid value for: query parameter vetAllPackages, Invalid value for: query parameter synchronizerIdtext/plain
default
application/json
History
Updated
3.5The POST /v2/dars operation changed in this snapshot.