Deleting a Template
Function
This API is used to delete a template. A template used by jobs can also be deleted.
URI
- URI format
DELETE /v1.0/{project_id}/job_template/{template_id}
- Parameter description
Table 1 URI parameter description Parameter
Mandatory
Description
project_id
Yes
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.
Request
None
Response
- Example response
{ "message_id": "CS.18013", "message": "The template is deleted successfully.", "payload": { "template_id": 11, "is_success": true }, "current_time": 1550218615961 } - Parameter description
Table 2 Request parameters Parameter
Mandatory
Type
Description
message_id
No
Sting
Message type ID.
message
No
Sting
Message content.
current_time
No
Int
Current time, expressed by milliseconds.
payload
No
None
Information about the template to be deleted.
template_id
No
Int
Template ID.
is_success
No
boolean
Whether the template is successfully deleted.
Status Code
Table 3 describes the status code.
Error Code
For details, see Error Codes.
Last Article: Updating a Template
Next Article: Querying the Template List
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.