POST
/
o
/
{organisation_id}
/
protocols
/
http
/
import
curl --request POST \
  --url https://platform.versori.com/api/connect/v1alpha1/o/{organisation_id}/protocols/http/import \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<string>' \
  --form 'metadata={
  "format": "openapi"
}'
{
  "actions": [
    {
      "errors": [
        {
          "field": "<string>",
          "message": "<string>",
          "severity": "error"
        }
      ],
      "id": "<string>",
      "description": "<string>",
      "name": "<string>",
      "summary": "<string>",
      "type": "http",
      "method": "GET",
      "parameters": [
        {
          "completion": {},
          "default": "<any>",
          "in": "cookie",
          "name": "<string>",
          "required": true,
          "type": "string"
        }
      ],
      "path": "<string>",
      "requestBody": {
        "definitions": [
          {
            "definition": {
              "id": "<string>",
              "accept": [
                "<string>"
              ],
              "description": "<string>",
              "name": "<string>",
              "referencedBy": [
                {
                  "id": "<string>",
                  "name": "<string>",
                  "type": "definition"
                }
              ],
              "url": "<string>"
            },
            "id": "<string>"
          }
        ],
        "required": true
      },
      "responses": [
        {
          "status": 123,
          "definitions": [
            {
              "definition": {
                "id": "<string>",
                "accept": [
                  "<string>"
                ],
                "description": "<string>",
                "name": "<string>",
                "referencedBy": [
                  {
                    "id": "<string>",
                    "name": "<string>",
                    "type": "definition"
                  }
                ],
                "url": "<string>"
              },
              "id": "<string>"
            }
          ],
          "id": "<string>"
        }
      ]
    }
  ],
  "connection": {
    "authSchemeConfigs": [
      {
        "schemeType": "<string>"
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "environmentVariables": [
      {
        "name": "<string>",
        "value": "<string>"
      }
    ],
    "environments": [
      {
        "createdAt": "2023-11-07T05:31:56Z",
        "credentials": {
          "action": [
            {
              "authSchemeConfig": {
                "schemeType": "<string>"
              },
              "credential": {
                "createdAt": "2023-11-07T05:31:56Z",
                "data": {},
                "errors": [
                  "<string>"
                ],
                "id": "<string>",
                "name": "<string>",
                "type": "none",
                "updatedAt": "2023-11-07T05:31:56Z",
                "usages": [
                  {
                    "environment": {
                      "connection": {
                        "createdAt": "2023-11-07T05:31:56Z",
                        "id": "<string>",
                        "name": "<string>",
                        "organisationId": "<string>",
                        "protocol": "http",
                        "updatedAt": "2023-11-07T05:31:56Z"
                      },
                      "createdAt": "2023-11-07T05:31:56Z",
                      "id": "<string>",
                      "name": "<string>",
                      "slug": "<string>",
                      "updatedAt": "2023-11-07T05:31:56Z"
                    }
                  }
                ]
              },
              "id": "<string>"
            }
          ],
          "trigger": [
            {
              "authSchemeConfig": {
                "schemeType": "<string>"
              },
              "credential": {
                "createdAt": "2023-11-07T05:31:56Z",
                "data": {},
                "errors": [
                  "<string>"
                ],
                "id": "<string>",
                "name": "<string>",
                "type": "none",
                "updatedAt": "2023-11-07T05:31:56Z",
                "usages": [
                  {
                    "environment": {
                      "connection": {
                        "createdAt": "2023-11-07T05:31:56Z",
                        "id": "<string>",
                        "name": "<string>",
                        "organisationId": "<string>",
                        "protocol": "http",
                        "updatedAt": "2023-11-07T05:31:56Z"
                      },
                      "createdAt": "2023-11-07T05:31:56Z",
                      "id": "<string>",
                      "name": "<string>",
                      "slug": "<string>",
                      "updatedAt": "2023-11-07T05:31:56Z"
                    }
                  }
                ]
              },
              "id": "<string>"
            }
          ]
        },
        "id": "<string>",
        "name": "<string>",
        "updatedAt": "2023-11-07T05:31:56Z",
        "variables": [
          {
            "name": "<string>",
            "value": "<string>"
          }
        ]
      }
    ],
    "id": "<string>",
    "name": "<string>",
    "organisationId": "<string>",
    "protocol": "http",
    "updatedAt": "2023-11-07T05:31:56Z",
    "versions": [
      {
        "createdAt": "2023-11-07T05:31:56Z",
        "description": "<string>",
        "id": "<string>",
        "isDefault": true,
        "isLatest": true,
        "name": "<string>",
        "publishedAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "baseUrl": "<string>"
  },
  "definitions": [
    {
      "id": "<string>",
      "accept": [
        "<string>"
      ],
      "description": "<string>",
      "name": "<string>",
      "referencedBy": [
        {
          "id": "<string>",
          "name": "<string>",
          "type": "definition"
        }
      ],
      "url": "<string>"
    }
  ],
  "messages": [
    {
      "detail": [
        "<string>"
      ],
      "severity": "info",
      "text": "<string>"
    }
  ]
}

Authorizations

cookie
string
cookierequired

Cookie authentication used by the Versori Platform.

Path Parameters

organisation_id
string
required

Body

multipart/form-data
file
string

The file to be imported.

metadata
object

ImportHTTPConnectionMetadata defines the metadata part of the multipart/form-data request when importing a Connection from another format.

Response

201 - application/json
actions
object[]
required
connection
object
required

HTTPConnection represents a connection to an external system over HTTP.

definitions
object[]
required
messages
object[]
required