Updates a consumer.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apig:UpdateConsumer |
none |
*Domain
|
None | None |
Request syntax
PUT /v1/consumers/{consumerId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| consumerId |
string |
No |
The unique identifier for the consumer. |
cs-cvfmq9um1hkg1teictkg |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| description |
string |
No |
A description of the consumer. |
测试消费者 |
| jwtIdentityConfig | JwtIdentityConfig |
No |
The JWT identity authentication configuration. |
|
| akSkIdentityConfigs |
array |
No |
The AK/SK identity authentication configurations. |
|
| AkSkIdentityConfig |
No |
The AK/SK identity authentication configuration. |
||
| apikeyIdentityConfig | ApiKeyIdentityConfig |
No |
The API key identity authentication configuration. |
|
| enable |
boolean |
No |
Whether to enable the consumer. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| requestId |
string |
The request ID. |
B917B12C-030A-597A-AF2B-6C4353FC9F10 |
| code |
string |
The response status code. |
Ok |
| message |
string |
The response message. |
ok |
Examples
Success response
JSON format
{
"requestId": "B917B12C-030A-597A-AF2B-6C4353FC9F10",
"code": "Ok",
"message": "ok"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.