Source: https://manu-tests-all-orgs.docs-staging.pageloop.ai/mcp-tools/requests-tickets/other/set-ai-coworker-availability

# setAiCoworkerAvailability

Toggle the agent's availability (available / unavailable).

Flips the shadow user's `availability_status` for an AI Coworker. Orthogonal
to the publish lifecycle — does not touch `ai_agent_versions` and never produces a
new version row. Valid only when the agent has been published at least once (LIVE, LIVE\_WITH\_DRAFT,
UNPUBLISHED).

## Parameters

| Name      | Type                        | Required | Description                                           |
| --------- | --------------------------- | -------- | ----------------------------------------------------- |
| `agentId` | integer                     | Yes      | The agent's numeric ID (from create or list response) |
| `status`  | AgentAvailabilityStatusEnum | Yes      |                                                       |
