RefreshPluginOAuthCode
Refreshes the OAuth code for the plugin-managed repository.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apig:RefreshPluginOAuthCode |
none |
*All Resource
|
None | None |
Request syntax
POST /v1/plugin-oauth-codes HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| code |
string |
No |
The authorization code returned by the Codeup OAuth authorization callback (the code parameter carried in the callback after authorization at https://codeup.aliyun.com/oauth/authorize?app_id=xxx&state=apigw). If this parameter is empty, the ErrInvalidParameterWithEmpty("oauth code") error is returned. |
4/0AX4xxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
566C6A32-A971-59F2-A9C6-9C73277BA0B8 |
| code |
string |
The response status code. |
200 |
| message |
string |
The response message. |
success |
Examples
Success response
JSON format
{
"requestId": "566C6A32-A971-59F2-A9C6-9C73277BA0B8",
"code": "200",
"message": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.