Sets the default version of a job template.
Try it now
Test
RAM authorization
Request syntax
PUT /api/v1/jobtemplates/{TemplateId}/defaultversion HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
Yes |
The template ID. |
tplmceolmf2**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| Version |
integer |
Yes |
The version number to set as the default. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| DefaultVersion |
integer |
The current default version number. |
2 |
| GmtModifyTime |
string |
The time the template was last modified. |
2021-01-12T14:36:00Z |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-xxxxxxx |
Examples
Success response
JSON format
{
"DefaultVersion": 2,
"GmtModifyTime": "2021-01-12T14:36:00Z",
"RequestId": "473469C7-AA6F-4DC5-B3DB-xxxxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.
该文章对您有帮助吗?