Skip to main content
POST
/
v1
/
console
/
attempts
/
grant
Grant Attempts
curl --request POST \
  --url http://localhost:8000/v1/console/attempts/grant \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 123,
  "case_study_id": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "reason": "<string>",
  "user_id": "<string>",
  "idempotency_key": "<string>"
}
'
{
  "data": {
    "attempts_remaining": 123,
    "attempts_used": 123,
    "base_attempts": 123,
    "extra_attempts": 123,
    "revoked_attempts": 123,
    "total_allowed": 123
  },
  "message": "<string>",
  "success": true
}

Authorizations

Authorization
string
header
required

Enter your JWT access token

Body

application/json
amount
integer
required
case_study_id
string
required
expires_at
string<date-time>
required
reason
string
required
Required string length: 1 - 1000
user_id
string
required
idempotency_key
string | null

Response

Successful Response

data
EntitlementSummary · object
message
string | null
success
boolean
default:true