Chatbot Operations

Delete an action

Deletes a specific action from the chatbot by either name or index. Send exactly one of name or index.

delete/delete-action/{chatbotId}

Request

  • Base URL: https://api.chat-data.com/api/v2
  • URL: https://api.chat-data.com/api/v2/delete-action/{chatbotId}
  • Auth: HTTP bearer

Path parameters

chatbotIdstring required

The unique identifier of the chatbot.

Query parameters

namestring
Example:stockPriceLookup

The name of the action to delete (mutually exclusive with index).

indexinteger

The index of the action to delete (mutually exclusive with name).

Response

Successful response.

status'success' required

Example response

{
  "deletedAction": {
    "index": 0,
    "name": "stockPriceLookup",
    "description": "The user wants to know the current stock price of a company",
    "type": "api",
    "url": "https://api.example.com/stocks/{symbol}/price",
    "method": "GET",
    "headers": [
      {
        "name": "Authorization",
        "value": "Bearer stk_live_3f9a2c7d1e"
      }
    ],
    "pathParams": [
      {
        "name": "symbol",
        "type": "string",
        "description": "The stock ticker symbol to look up.",
        "required": true,
        "example": "AAPL"
      }
    ],
    "return_file": false
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.