Attesting A Claim
To attest/reject a claim, we need to make the following request:

Request

1
POST /api/v1/{attestor-entity-type}/claims/{claim-id}/attest
Copied!
Field
In
Type
Description
content-type
header
string
Set to application/json
authorization
header
string
Set to bearer {access-token}
attestor-entity-type
path
string
The attestor entity types
claim-id
path
string
The ID of the claim to attest
action
body
string
Set to GRANT_CLAIM to attest the claim and REJECT_CLAIM to reject the claim
notes
body
string
Attestation related details (optional)

Response

This will attest/reject the claim and return a blank HTTP 200 response.

Usage

cURL

1
curl --location \
2
--request 'POST' \
3
--header 'content-type: application/json' \
4
--header 'authorization: bearer {access-token}' \
5
--data-raw '{
6
"action": "GRANT_CLAIM"
7
}' \
8
'{registry-url}/api/v1/{attestor-entity-type}/claims/{claim-id}/attest'
Copied!

HTTPie

1
echo '{
2
"action": "GRANT_CLAIM"
3
}' | http post \
4
'{registry-url}/api/v1/{attestor-entity-type}/claims/{claim-id}/attest' \
5
'content-type: application/json' \
6
'authorization: bearer {access-token}'
Copied!
{registry-url} is usually http://localhost:{port}. The port can be found under the rg section in the docker-compose.yaml file and is usually 8081.
Last modified 8d ago
Copy link
Edit on GitHub