Skip to main content
POST
/
templates
/
custom
Create custom template
curl --request POST \
  --url https://api.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,
  "isSSHEnabled": 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
string[][]

Array of key-value pairs for environment variables

isBasicAuthEnabled
boolean

Enable/disable basic authentication

isSSHEnabled
boolean

Enable/disable SSH connection

insecure
boolean

Allow insecure connections

Response

Template successfully created

The response is of type string<uuid>.

I