/api/v1/ai/caps/{id}/resume
POST
/api/v1/ai/caps/{id}/resume
const url = 'https://example.com/api/v1/ai/caps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resume';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"raiseTo":{"amount":"example","currency":"example"},"remove":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/ai/caps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resume \ --header 'Content-Type: application/json' \ --data '{ "raiseTo": { "amount": "example", "currency": "example" }, "remove": true }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
cap
required
object
id
required
string format: uuid
scope
required
string
target
required
object
id
required
string | null
label
required
string
tokensPerMinute
number
tokensPerDay
number
tokensPerMonth
number
monthlyCap
object
amount
required
string
currency
required
string
used
required
object
tokens
required
number
cost
required
Array<object>
object
currency
required
string
amount
required
string
unknownCostCalls
required
number
notCounted
required
Array<string>
percent
required
number | null
state
required
string
pausedUntil
string
reason
string
cappedByAccount
required
boolean
rowVersion
required
number
canEdit
required
boolean
resumed
required
number
Example
{ "cap": { "scope": "instance", "task": "extraction", "state": "active", "reason": "manual" }}