Management API

Edit Action

PUT/v1/action/:id

Programmatically update an existing Action. Only the fields you provide will be changed — omitted fields keep their current values.

Definition

Path Parameters

ParameterTypeRequiredDescription
idstringYesThe ID of the action to update

Headers

bash
X-API-Key: YOUR_API_KEY

Body Parameters

ParameterTypeRequiredDescription
environmentIdstringYesID of the environment the action belongs to
operationNamestringNoNew unique name for this action
methodstringNoHTTP method: GET, POST, PUT, DELETE, or PATCH
pathstringNoEndpoint path (e.g. /orders/:id)
headersobjectNoCustom headers sent with the request. Use {{token}} in values for runtime auth token substitution.
systemInstructionsstringNoInstructions describing what this action does and when agents should call it
inputFieldsobjectNoSchema of inputs the agent must supply when calling this action
backendUrlOverridestringNoOverrides the environment's default backend URL for this action only
contentTypestringNoContent type sent to the backend. Defaults to application/json
requestConfirmationbooleanNoWhen true, the agent pauses and requests human approval before executing (HITL)
successUrlstringNoURL or fragment to redirect to after successful execution

Response

Returns 200 OK with the updated action object.

json
{
  "id": "action_abc123",
  "operationName": "getOrderStatus",
  "method": "GET",
  "path": "/orders/:orderId",
  "headers": { "Authorization": "Bearer {{token}}" },
  "environmentId": "env_xyz789",
  "systemInstructions": "Retrieves the current status of a customer order.",
  "inputFields": {
    "orderId": "string"
  },
  "createdAt": "2025-01-15T12:00:00Z"
}

Sample Request

bash
curl -X PUT "https://api.meebly.ai/v1/action/action_abc123" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "environmentId": "env_xyz789",
    "systemInstructions": "Retrieves the current status of a customer order. Always include the orderId."
  }'
Last updated: March 2026Report an issue