跳转到主要内容
POST
/
gpu-instance
/
openapi
/
v1
/
template
/
delete
删除模板
curl --request POST \
  --url https://api.ppinfra.com/gpu-instance/openapi/v1/template/delete \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "templateId": "<string>"
}'
{
  "templateId": "<string>"
}

请求头

Content-Type
string
required
枚举值:application/json。
Authorization
string
required
Bearer 身份验证格式,例如:Bearer {{API 密钥}}。

请求体

templateId
string
required
模板 ID。长度:[1-255]。

响应参数

templateId
string
required
模板 ID。

示例

请求示例

curl --location --request POST 'https://api.ppinfra.com/gpu-instance/openapi/v1/template/delete' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{API 密钥}}' \
--data-raw '{
  "templateId": "101036"
}'

响应示例

{
  "templateId": "101036"
}
I