latestOpenAPI 3.0.12026-08-11284749.9 KB
58e231ca118e
Users
Set limit for the user
This endpoint sets the monthly limit for a user. The limit amount must be non-negative. To unset the monthly limit of the user, just set monthly_limit to null.
post/v2/users/{id}/limit
Path parameters
idstring required
Headers
Idempotency-Keystring nullable
Request body
Example request
{
"monthly_limit": {
"amount": 700,
"currency": "USD"
}
}Response
setUserLimit 200 response
Example response
{
"monthly_limit": {
"amount": 700,
"currency": "USD"
},
"monthly_available": {
"amount": 700,
"currency": "USD"
}
}