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
string
required
HTTP bearer authentication. Send the token as
Authorization: Bearer <token>. Ledger API standard JWT tokenapiKeyAuth
string
required
API key authentication in the header. Ledger API standard JWT token (websocket)
Query parameters
boolean
string
Body
application/octet-stream
string
required
OpenAPI type:
string (binary).Responses
200
application/json
UploadDarFileResponse
required
A message that is received when the upload operation succeeded.
400
Invalid value, Invalid value for: body, Invalid value for: query parameter vetAllPackages, Invalid value for: query parameter synchronizerIdtext/plain
string
required
default
application/json
string
required
string
required
string
string
Map_String
required
Tuple2_String_String[]
integer (int32)
required
integer (int32)
string
boolean
History
Updated
3.5The POST /v2/dars operation changed in this snapshot.