grants
aid_auths_client_grants_post
scopes:
- admin:accounts
- write:accounts
post/accounts/{oid}/auth/client-grants
Path parameters
oidstring ^[PT]{1}(?=(?:.{3}|.{8})$)[0-9]*$ required
An id that uniquely identifies the account or owner (partner)
Request body
Example request
{
"created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
"deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
"audience": "https://api.dintero.com/v1/accounts/P00000000",
"scope": [
"receipts:write"
],
"oidc": {
"authority": "https://identityserver.example.com/access"
}
}Response
Grant created
Example response
{
"created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
"deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
"audience": "https://api.dintero.com/v1/accounts/P00000000",
"scope": [
"receipts:write"
],
"oidc": {
"authority": "https://identityserver.example.com/access"
}
}