Skip to main content
POST
/
v1
/
templates
create template
curl --request POST \
  --url https://console.gmicloud.ai/api/v1/templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "credential": {
    "secret": "",
    "username": ""
  },
  "description": "",
  "name": "<string>",
  "path": "<string>",
  "status": "published"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required
Maximum length: 255
path
string<uri>
required
Maximum length: 253
credential
object
description
string
default:""
Maximum length: 4096
status
enum<string>
default:published
Available options:
draft,
published,
unpublished

Response

successful

id
string<uuid>