---
title: "Set the agent's COAP traffic tracing"
method: PUT
path: "/mimic/agent/{agentNum}/protocol/msg/coap/set/trace/{enableOrNot}"
tags: ["COAP"]
---

# Set the agent's COAP traffic tracing

`PUT /mimic/agent/{agentNum}/protocol/msg/coap/set/trace/{enableOrNot}`

1 to enable, 0 to disable

## Path parameters

- `agentNum` integer, required
- `enableOrNot` string, required

## Response `200`

successful operation

- string

## Other responses

- `400` — Invalid agent number value

---

[API](https://skmtc.dev/gambitcomm/apis/mimic-rest-api.md) · [All operations](https://skmtc.dev/gambitcomm/apis/mimic-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gambitcomm/mimic-rest-api/revisions/eb67c54e9ec9/schema)
