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"
}
'