--- title: "POST | Activate Network Connector agent" slug: "api-v2-post-activate-network-connector-agent" updated: 2026-10-14T16:28:01Z published: 2026-10-14T16:28:01Z canonical: "docs.senhasegura.io/api-v2-post-activate-network-connector-agent" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.senhasegura.io/llms.txt > Use this file to discover all available pages before exploring further. # POST | Activate Network Connector agent ## Description Activate a deactivated Network Connector agent. The agent returns on the same port and keeps its fingerprint. After activation, devices can be linked to the agent again through the `network_connector_id` field. --- ## Prerequisites - An application with the **PAM resource permission** set to **Read and write**, granted by the administrator in A2A. For more information, access [How to manage authorizations in A2A for API v2](/v4-2/docs/api-v2-how-to-manage-authorizations-in-a2a). - A valid OAuth 2.0 access token. For more information, access [How to authenticate an application in A2A](/v4-2/docs/how-to-authenticate-an-application-in-a2a). - A deactivated agent. Activating an agent that is already active returns `409`. --- ## Request `POST` `/api/v2/platform/network-connector/agents/{agent_id}/activate` ### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `agent_id` | integer | Yes | Unique identification code of the agent. Accepts digits only. To find deactivated agents, access [GET \| List all Network Connector agents](/v4-2/docs/api-v2-get-list-all-network-connector-agents) with `active=false`. | This action takes no request body and does not require the `If-Match` header. --- ### Example request `POST` `{{url}}/api/v2/platform/network-connector/agents/12/activate` --- ## Response ``` HTTP/1.1 204 No Content ``` The response has no body. The `ETag` header carries the agent's new state. --- ## Errors | HTTP code | Message | Possible cause | Solution | | --- | --- | --- | --- | | `403` | `api.auth.insufficient_permission` | The application's **PAM resource permission** is **Read-only**. | Ask the administrator to set the **PAM resource permission** to **Read and write** in A2A. | | `404` | `api.resource.not_found` | The agent does not exist. | Check the identification code sent in the path. | | `404` | `api.route.not_found` | The `agent_id` value is not made up of digits only. | Send the agent's identification code using digits only. | | `409` | `api.resource.conflict.already_active` | The agent is already active. | No action is needed. The agent is already in the requested state. | For authentication errors, rate limits, and the error response format, access [API v2 - Conventions and shared behaviors](/v4-2/docs/api-v2-conventions-and-shared-behaviors). ### Example error response `409` the agent is already active: ``` { "code": "api.resource.conflict.already_active", "message": "Network connector agent is already active.", "details": null } ``` --- ## Related documents - [POST | Deactivate Network Connector agent](/v4-2/docs/api-v2-post-deactivate-network-connector-agent) - [GET | List all Network Connector agents](/v4-2/docs/api-v2-get-list-all-network-connector-agents) - [GET | List a Network Connector agent by [id]](/v4-2/docs/api-v2-get-list-a-network-connector-agent) - [API v2 - Conventions and shared behaviors](/v4-2/docs/api-v2-conventions-and-shared-behaviors)