Skip to Content
Docs

Set the log level of an agent by id

PUT
/agents/{agentId}/log-level

Authorization

jwt
headerAuthorizationBearer <JWT>

Path Parameters

Header Parameters

Request Body

application/json
  1. body
level*string
Value in"fatal""error""warn""info""debug"
durationMs*number

Response Body

Agent log level is being set

Example Request
curl -X PUT 'https://agents.your-tenant-id.my.contextual.io/api/v1/agents/{agentId}/log-level' \  -H 'Content-Type: application/json' \  -d '{  "level": "fatal",  "durationMs": 0}'
Example Response
Empty