POST
/
o
/
{organisation_id}
/
connectors
/
{connector_id}
/
versions
/
{version}
/
actions
curl --request POST \
  --url https://platform.versori.com/api/connect/v1/o/{organisation_id}/connectors/{connector_id}/versions/{version}/actions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "http",
  "name": "<string>",
  "summary": "<string>",
  "description": "<string>",
  "method": "GET",
  "path": "<string>",
  "parameters": [
    {
      "name": "<string>",
      "in": "cookie",
      "required": true,
      "type": "string",
      "default": "<any>",
      "completion": {}
    }
  ],
  "requestBody": {
    "required": true,
    "definitions": [
      {
        "definition": {
          "id": "<string>"
        }
      }
    ]
  },
  "responses": [
    {
      "status": 123,
      "definitions": [
        {
          "definition": {
            "id": "<string>"
          }
        }
      ]
    }
  ]
}'
{
  "id": "<string>",
  "errors": [
    {
      "field": "<string>",
      "message": "<string>",
      "severity": "error"
    }
  ],
  "type": "http",
  "name": "<string>",
  "summary": "<string>",
  "description": "<string>",
  "method": "GET",
  "path": "<string>",
  "parameters": [
    {
      "name": "<string>",
      "in": "cookie",
      "required": true,
      "type": "string",
      "default": "<any>",
      "completion": {}
    }
  ],
  "requestBody": {
    "required": true,
    "definitions": [
      {
        "id": "<string>",
        "definition": {
          "id": "<string>",
          "name": "<string>",
          "accept": [
            "<string>"
          ],
          "description": "<string>",
          "url": "<string>",
          "referencedBy": [
            {
              "type": "definition",
              "id": "<string>",
              "name": "<string>"
            }
          ]
        }
      }
    ]
  },
  "responses": [
    {
      "status": 123,
      "id": "<string>",
      "definitions": [
        {
          "id": "<string>",
          "definition": {
            "id": "<string>",
            "name": "<string>",
            "accept": [
              "<string>"
            ],
            "description": "<string>",
            "url": "<string>",
            "referencedBy": [
              {
                "type": "definition",
                "id": "<string>",
                "name": "<string>"
              }
            ]
          }
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token authentication used by the Versori Platform. External consumers must provide an API key, however internal consumers must provide a JWT id_token issued by our IdP.

Path Parameters

organisation_id
string
required
connector_id
string
required

ID is the unique identifier of the Connector.

version
string
required

Version is the version name of the Connector to retrieve. The reserved names "latest" and "default" may be used to retrieve the latest version or the default version respectively.

Body

application/json

ActionCreate defines a new Action to be created. ActionHTTPCreate defines a new HTTP Action to be created. ActionCommon defines all the common fields for an Action. ActionHTTPCommon defines the common fields for creating a HTTP Action.

Response

201
application/json

Created

ActionHTTP defines an HTTP Action. ActionBase defines all the common fields for an Action.

ActionHTTPCommon defines the common fields for all HTTP Actions. ActionCommon defines all the common fields for an Action.