Skip to main content
POST
/
o
/
{organisation_id}
/
systems
/
{system_id}
/
triggers
Create new triggers for a system.
curl --request POST \
  --url https://platform.versori.com/api/v2/o/{organisation_id}/systems/{system_id}/triggers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "triggers": [
    {
      "name": "<string>",
      "method": "GET",
      "description": "<string>",
      "summary": "<string>",
      "parameters": [
        {
          "name": "<string>",
          "in": "path",
          "required": true,
          "type": "string",
          "default": "<string>"
        }
      ]
    }
  ],
  "projectId": "<string>"
}
'
[
  {
    "id": "<string>",
    "systemId": "<string>",
    "name": "<string>",
    "description": "<string>",
    "summary": "<string>",
    "type": "http",
    "method": "GET",
    "parameters": [
      {
        "name": "<string>",
        "in": "path",
        "required": true,
        "type": "string",
        "default": "<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<ulid>
required
system_id
string<ulid>
required

Body

application/json
triggers
object[]
required
projectId
string<ulid>

Response

OK

id
string<ulid>
required
systemId
string<ulid>
required
name
string
required
description
string
required
summary
string
required
type
enum<string>
required
Available options:
http
method
enum<string>
required
Available options:
GET,
POST,
PUT,
PATCH,
DELETE,
HEAD,
OPTIONS
parameters
object[]
required