Skip to main content
PUT
/
v1
/
templates
/
{id}
update template
curl --request PUT \
  --url https://console.gmicloud.ai/api/v1/templates/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "credential": {
    "secret": "",
    "username": ""
  },
  "description": "",
  "name": "<string>",
  "path": "<string>",
  "status": "published"
}'
{
"modified": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

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

modified
string