POST
/
v1
/
mcp-servers
/
{id}
cURL
curl --request POST \
  --url https://cloud.activepieces.com/api/v1/mcp-servers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "tools": [
    {
      "type": "PIECE",
      "mcpId": "<string>",
      "pieceMetadata": {
        "pieceName": "<string>",
        "pieceVersion": "<string>",
        "actionNames": [
          "<string>"
        ],
        "logoUrl": "<string>",
        "connectionExternalId": "<string>"
      },
      "flowId": "<string>",
      "flow": {
        "id": "<string>",
        "created": "<string>",
        "updated": "<string>",
        "projectId": "<string>",
        "externalId": "<string>",
        "folderId": "<string>",
        "status": "ENABLED",
        "schedule": {
          "type": "CRON_EXPRESSION",
          "cronExpression": "<string>",
          "timezone": "<string>",
          "failureCount": 123
        },
        "handshakeConfiguration": {
          "strategy": "NONE",
          "paramName": "<string>"
        },
        "publishedVersionId": "<string>",
        "metadata": {},
        "version": {
          "id": "<string>",
          "created": "<string>",
          "updated": "<string>",
          "flowId": "<string>",
          "displayName": "<string>",
          "trigger": {
            "name": "<string>",
            "valid": true,
            "displayName": "<string>",
            "nextAction": "<any>",
            "type": "PIECE_TRIGGER",
            "settings": {
              "pieceName": "<string>",
              "pieceVersion": "<string>",
              "pieceType": "CUSTOM",
              "packageType": "ARCHIVE",
              "triggerName": "<string>",
              "input": {},
              "inputUiInfo": {
                "sampleDataFileId": "<string>",
                "sampleDataInputFileId": "<string>",
                "lastTestDate": "<string>",
                "customizedInputs": {},
                "schema": {},
                "currentSelectedData": "<any>"
              }
            }
          },
          "updatedBy": "<string>",
          "valid": true,
          "schemaVersion": "<string>",
          "state": "LOCKED",
          "connectionIds": [
            "<string>"
          ]
        }
      }
    }
  ]
}'
{
  "id": "<string>",
  "created": "<string>",
  "updated": "<string>",
  "name": "<string>",
  "projectId": "<string>",
  "token": "<string>",
  "agentId": "<string>",
  "tools": [
    {
      "id": "<string>",
      "created": "<string>",
      "updated": "<string>",
      "type": "PIECE",
      "mcpId": "<string>",
      "pieceMetadata": {
        "pieceName": "<string>",
        "pieceVersion": "<string>",
        "actionNames": [
          "<string>"
        ],
        "logoUrl": "<string>",
        "connectionExternalId": "<string>"
      },
      "flowId": "<string>",
      "flow": {
        "id": "<string>",
        "created": "<string>",
        "updated": "<string>",
        "projectId": "<string>",
        "externalId": "<string>",
        "folderId": "<string>",
        "status": "ENABLED",
        "schedule": {
          "type": "CRON_EXPRESSION",
          "cronExpression": "<string>",
          "timezone": "<string>",
          "failureCount": 123
        },
        "handshakeConfiguration": {
          "strategy": "NONE",
          "paramName": "<string>"
        },
        "publishedVersionId": "<string>",
        "metadata": {},
        "version": {
          "id": "<string>",
          "created": "<string>",
          "updated": "<string>",
          "flowId": "<string>",
          "displayName": "<string>",
          "trigger": {
            "name": "<string>",
            "valid": true,
            "displayName": "<string>",
            "nextAction": "<any>",
            "type": "PIECE_TRIGGER",
            "settings": {
              "pieceName": "<string>",
              "pieceVersion": "<string>",
              "pieceType": "CUSTOM",
              "packageType": "ARCHIVE",
              "triggerName": "<string>",
              "input": {},
              "inputUiInfo": {
                "sampleDataFileId": "<string>",
                "sampleDataInputFileId": "<string>",
                "lastTestDate": "<string>",
                "customizedInputs": {},
                "schema": {},
                "currentSelectedData": "<any>"
              }
            }
          },
          "updatedBy": "<string>",
          "valid": true,
          "schemaVersion": "<string>",
          "state": "LOCKED",
          "connectionIds": [
            "<string>"
          ]
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Use your api key generated from the admin console

Path Parameters

id
string
required

Body

application/json

Response

200 - application/json

Default Response

The response is of type object.