POST
/
api
/
connectors
Create a new connector (We should make it that we can only CRUD connectors for the current organization) FIXME
curl --request POST \
  --url https://axis-production-2887.up.railway.app/api/connectors \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "file_url": "<string>",
  "video_url": "<string>",
  "auth_url": "<string>",
  "type": "function",
  "inputs": [
    {
      "title": "<string>",
      "description": "<string>",
      "placeholder": "<string>",
      "type": "<string>",
      "options": [
        {
          "option_key": "<string>",
          "option_label": "<string>",
          "type": "string",
          "parent_option_id": "<string>"
        }
      ]
    }
  ],
  "consts": [
    {
      "title": "<string>",
      "description": "<string>",
      "value": "<string>",
      "type": "<string>"
    }
  ],
  "endpoints": [
    {
      "type": "fetch_products",
      "url": "<string>",
      "description": "<string>"
    }
  ],
  "public": true
}'
{}

Body

application/json

The connector to create

name
string
required
Minimum length: 2
description
string
required
file_url
string<uri>
required
inputs
object[] | null
required
consts
object[] | null
required
endpoints
object[] | null
required
public
boolean
required
video_url
string | null
auth_url
string | null
type
string
default:function

Response

201 - application/json

The connector has been successfully created.

The response is of type object.