cURL
curl --request PUT \
--url http://localhost:4100/v1/agents/api/providers/{providerId}/blocked \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"blocked": true
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({blocked: true})
};
fetch('http://localhost:4100/v1/agents/api/providers/{providerId}/blocked', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"providerId": "<string>",
"endpointId": "<string>",
"blocked": true
}Agent API
Put v1agentsapiproviders blocked
Browser owner session required. Available only when the Base Agent API runtime gate is enabled and verified.
cURL
curl --request PUT \
--url http://localhost:4100/v1/agents/api/providers/{providerId}/blocked \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"blocked": true
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({blocked: true})
};
fetch('http://localhost:4100/v1/agents/api/providers/{providerId}/blocked', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"providerId": "<string>",
"endpointId": "<string>",
"blocked": true
}