---
title: "Agent Set Offline Status"
method: PATCH
path: "/domains/{domain}/callqueues/all/agents/{callqueue-agent-id}/{status}"
tags: ["Call Center/Agent Actions"]
---

# Agent Set Offline Status

`PATCH /domains/{domain}/callqueues/all/agents/{callqueue-agent-id}/{status}`

## Path parameters

- `domain` string, required — This is the main organization name. This is used to link resource to its group/tenant/organization/enterprise. Then using in path for GET you can set to "~" to use the domain name linked to your token/key instead of the domain name itself when reading for your own domain.
- `callqueue-agent-id` string, required — This is the agent identified to be used to manage a agent in a call queue. The format can be user@domain or sip:device@domain depending on how the queue is indented to be administered. If you are using a auth method with a valid user level access you can use "~" and the api will assume the agent is user@domain format and grab that from the token.
- `status` string, required

## Response `202`

- SuccessResponse
  - `code` integer, required
  - `message` string, required

## Other responses

- `400`
- `401`
- `404`

---

[API](https://skmtc.net/ns-api/apis/netsapiens-api-v2.md) · [All operations](https://skmtc.net/ns-api/apis/netsapiens-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ns-api/netsapiens-api-v2/revisions/d37f65b5b886/schema)
