{
"template": {
"ContactType": "string",
"Force": true,
"Templates": [
{
"__meta__": {
"user:rd": "op"
},
"contact_type": "email",
"content": "镜像 {{.name}} 上传完成",
"description": "test create network",
"dry_run": false,
"example": "{\"name\": \"centos7.6\"}",
"is_emulated": true,
"lang": "cn",
"template_type": "title",
"topic": "IMAGE_ACTIVE"
}
]
}
}
curl --location --request POST 'https://example.com:30888/templates/save' \
--header 'Content-Type: application/json' \
--data-raw '{
"template": {
"ContactType": "string",
"Force": true,
"Templates": [
{
"__meta__": {
"user:rd": "op"
},
"contact_type": "email",
"content": "镜像 {{.name}} 上传完成",
"description": "test create network",
"dry_run": false,
"example": "{\"name\": \"centos7.6\"}",
"is_emulated": true,
"lang": "cn",
"template_type": "title",
"topic": "IMAGE_ACTIVE"
}
]
}
}'
{}