cURL
curl --request PATCH \
--url http://localhost:4100/v1/agents/api/mandates/{agentId}/status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accountId": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({accountId: '<string>'})
};
fetch('http://localhost:4100/v1/agents/api/mandates/{agentId}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "active"
}Agent API
Patch v1agentsapimandates status
Browser owner session required. Available only when the Base Agent API runtime gate is enabled and verified.
cURL
curl --request PATCH \
--url http://localhost:4100/v1/agents/api/mandates/{agentId}/status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accountId": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({accountId: '<string>'})
};
fetch('http://localhost:4100/v1/agents/api/mandates/{agentId}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "active"
}Authorizations
Body
application/json