---
title: "Set Agent Activation"
method: PUT
path: "/core/agents/{id}/activation"
tags: ["Agents"]
---

# Set Agent Activation

`PUT /core/agents/{id}/activation`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/core/agents/{id}/activation`
- Auth: HTTP bearer

Activate or deactivate an agent.

A trigger on agents logs the change, with who made it, to the
activation history. Setting the state the agent is already in is a
no-op and logs nothing.

## Path parameters

- `id` string, required

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Request body

- AgentActivationRequest: Body of PUT /agents/{id}/activation.
  - `active` boolean, required

## Response `200`

Successful Response

- Agent: Agent entity representing an agent configuration.
  - `id` string, required
  - `organization_id` string, required
  - `name` string, required
  - `description` string, required
  - `active` boolean, required
  - `is_demo` boolean, required
  - `metadata` object, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `created_by` string, nullable
  - `modified_by` string, nullable
  - `labels` object
  - `feedback_form` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anyreach/apis/anyreach-api.md) - [All operations](https://skmtc.dev/anyreach/apis/anyreach-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anyreach/apis/anyreach-api/revisions/2eddf40c8c93?raw)
