SetJobTemplateDefaultVersion

更新时间:
复制 MD 格式

Sets the default version of a job template.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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.