revokeAgentToken
# revokeAgentToken
DELETE
/agent/tokens/{tokenId}
const url = 'http://localhost:8080/api/v1/agent/tokens/per_01j9x3k8m2q4r5s6t7v8w9y0z1';const options = {method: 'DELETE', headers: {cookie: 'hs_session=<hs_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:8080/api/v1/agent/tokens/per_01j9x3k8m2q4r5s6t7v8w9y0z1 \ --cookie hs_session=<hs_session>Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tokenId
required
string
Responses
Section titled “Responses”Revoked. Leased tasks return to the queue.