POST
/
templates
/
custom
curl --request POST \
  --url https://restapi.gputrader.io/v1/templates/custom \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "content": "<string>",
  "environmentVariables": [
    [
      "<string>"
    ]
  ],
  "isBasicAuthEnabled": true,
  "insecure": true
}'
"3c90c3cc-0d44-4b50-8888-8dd25736052a"

Authorizations

X-API-Key
string
header
required

Body

application/json
name
string
required

Template name

description
string
required

Template description

content
string
required

Template content

environmentVariables
array

Array of key-value pairs for environment variables

isBasicAuthEnabled
boolean

Enable/disable basic authentication

insecure
boolean

Allow insecure connections

Response

200
application/json
Template successfully created

The response is of type string.