Skip to main content
POST
/
api
/
admin
/
protocols
/
import
Import by URL
curl --request POST \
  --url https://{instance}.{env}.on-hellgate.cloud/api/admin/protocols/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://developer.hellgate.io/protocols/specter/v1"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "inserted_at": "2023-11-07T05:31:56Z",
  "local_id": "specter-v1",
  "name": "Specter Risk Assessment",
  "url": "https://developer.hellgate.io/protocols/specter/v1",
  "version": "1"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Import request

Request to import a protocol by URL.

url
string
required

URL to fetch the protocol document from.

Example:

"https://developer.hellgate.io/protocols/specter/v1"

Response

Protocol imported

Summary of an imported or created protocol.

id
string<uuid>
required
inserted_at
string<date-time>
required
local_id
string
required
Example:

"specter-v1"

name
string
required
Example:

"Specter Risk Assessment"

url
string
required
Example:

"https://developer.hellgate.io/protocols/specter/v1"

version
string
required
Example:

"1"