Accessgrants
Path parameters
IDstringRequired
The ID of the access grant
Responses
200
Access grant details.
application/json
500
Server error
get
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
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.
false
Responses
200
List of access grants.
application/json
get
GET /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
POST /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