Accessgrants
Path parameters
IDstringRequired
The ID of the access grant
Responses
200
Access grant details.
application/json
500
Server error
get
/accessgrants/{ID}GET /accessgrants/{ID} HTTP/1.1
Host: api.wallet.example.com
Accept: */*
{
"resource": "text",
"accessRequestUri": "text",
"expirationDate": "text",
"forPurpose": "text",
"mode": [
"text"
]
}Path parameters
IDstringRequired
The ID of the access grant
Body
statusstringRequired
Revoked
Responses
204
Access grant revoked.
No content
500
Server error
put
/accessgrants/{ID}PUT /accessgrants/{ID} HTTP/1.1
Host: api.wallet.example.com
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"status": "revoked"
}No content
Query parameters
allbooleanOptionalDefault:
Return whole body of full valid access grants if true.
falseResponses
200
List of access grants.
application/json
get
/accessgrantsGET /accessgrants HTTP/1.1
Host: api.wallet.example.com
Accept: */*
200
List of access grants.
[
{
"resource": "text",
"accessRequestUri": "text",
"expirationDate": "text",
"forPurpose": "text",
"mode": [
"text"
]
}
]Body
resourcestringOptional
accessRequestUristringOptional
expirationDatestringOptional
forPurposestringOptional
modestring[]Optional
Responses
201
Access grant created.
No content
500
Server error
post
/accessgrantsPOST /accessgrants HTTP/1.1
Host: api.wallet.example.com
Content-Type: application/json
Accept: */*
Content-Length: 105
{
"resource": "text",
"accessRequestUri": "text",
"expirationDate": "text",
"forPurpose": "text",
"mode": [
"text"
]
}No content