/api/v1/ai/pause
POST
/api/v1/ai/pause
const url = 'https://example.com/api/v1/ai/pause';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"scope":"instance","accountId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","locationId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","userId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
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/pause \ --header 'Content-Type: application/json' \ --data '{ "scope": "instance", "accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "locationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "userId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
scope
required
string
accountId
string format: uuid
locationId
string format: uuid
userId
string format: uuid
Responses
Section titled “Responses”Default Response
Media typeapplication/json
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
Example
{ "scope": "instance", "task": "extraction", "state": "active", "reason": "manual"}