---
title: "Update a custom action configuration."
method: PUT
path: "/api/v1/projects/{projectId}/actions/custom/{actionKey}"
tags: ["Agent Actions"]
---

# Update a custom action configuration.

`PUT /api/v1/projects/{projectId}/actions/custom/{actionKey}`

## Request

- Base URL: `https://app.customgpt.ai`
- URL: `https://app.customgpt.ai/api/v1/projects/{projectId}/actions/custom/{actionKey}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/poll-the-people/apis/customgpt-ai/docs/api/v1/projects/:projectId/actions/custom/:actionKey/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `projectId` integer, required
- `actionKey` string, required

## Request body

- object
  - `name` string, nullable: Custom action name.
  - `description` string, nullable: Custom action description.
  - `action_type` 'mcp_connector', nullable: Custom action type.
  - `is_enabled` boolean, nullable: Whether the custom action is enabled.
  - `settings` object, nullable: Custom MCP settings.
    - `mcp_url` string: MCP server URL.
    - `token` string, nullable: Optional MCP server token.
    - `require_tool_confirmation` boolean: Whether user confirmation is required before execution.

## Response `200`

Custom action updated.

- object
  - `status` 'error' | 'success': The status of the response
  - `data` object
    - `action` object: Updated custom action metadata.
      - `project_id` integer
      - `tool_key` string
      - `name` string
      - `description` string, nullable
      - `action_type` string

## Other responses

- `400`: Bad Argument
- `401`: API Token is either missing or invalid
- `404`: Agent not found
- `422`: Bad Argument
- `500`: Internal Server Error

## Changes

- **2026-11-03** `77aab4354382`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/poll-the-people/apis/customgpt-ai/changes/api/v1/projects/:projectId/actions/custom/:actionKey/put.md)

---

[API](https://skmtc.dev/poll-the-people/apis/customgpt-ai.md) - [All operations](https://skmtc.dev/poll-the-people/apis/customgpt-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/poll-the-people/apis/customgpt-ai/revisions/77aab4354382?raw)
