Switches the definition of an API in a specified runtime environment to a historical version.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apigateway:SwitchApi |
update |
*ApiGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
No |
The API group ID. |
8dfec8759a6e4831bf73d8a982c20778 |
| ApiId |
string |
Yes |
The API ID. |
b41f334843c445619bc3b85419895b3e |
| StageName |
string |
Yes |
The environment. Valid values:
|
RELEASE |
| Description |
string |
Yes |
The description. The description can be up to 200 characters in length. |
for_demo |
| HistoryVersion |
string |
Yes |
The historical version number of the API. |
20210305180312839 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
FB263467-7F5D-5A1B-88E8-06CB0228E0FE |
Examples
Success response
JSON format
{
"RequestId": "FB263467-7F5D-5A1B-88E8-06CB0228E0FE"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.