cURL
curl --request PUT \ --url https://console.gmicloud.ai/api/v1/templates/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "path": "<string>", "credential": { "secret": "", "username": "" }, "description": "", "status": "published" } '
200
Example
{ "modified": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
255
^([A-Za-z0-9][A-Za-z0-9_\-. ]*)?[A-Za-z0-9]$
253
^\S+$
Show child attributes
4096
draft
published
unpublished
successful