Raise An Attestation
Making a Claim
POST /api/v1/send
Headers
Name
Type
Description
content-type*
String
Set to application/json
authorization
String
Set to Bearer {access-token} if roles in schema of which attestation is to raised does not contain anonymous else token can be empty
Request Body
Name
Type
Description
...*
Object
The value of the claim
{
"id": "sunbird-rc.registry.send",
"ver": "1.0",
"ets": 1668756344546,
"params": {
"resmsgid": "",
"msgid": "d1ff3fa8-fac8-4b4b-a2a9-6910d395bfde",
"err": "",
"status": "SUCCESSFUL",
"errmsg": ""
},
"responseCode": "OK",
"result": {
"attestationOSID": "1-c809dccf-4d93-453f-a110-d04443f5d679"
}
}Sample Request Body
If you retrieve the entity by the Retrieve Entity API Endpoint, you can see the id field in osid
Usage
cURL
HTTPie
{registry-url} is usually http://localhost:{port}. The port can be found under the registry section in the docker-compose.yml file and is usually 8081
Last updated
Was this helpful?