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