CreateContactGroup
Creates a contact group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:CreateContactGroup |
create |
*ContactGroup
|
None | None |
Request syntax
POST /contactGroup HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| contactGroupId |
string |
No |
The unique identifier of the contact group. |
test |
| contacts |
array |
No |
The contact IDs. |
|
|
string |
No |
The contact IDs. |
test |
|
| name |
string |
No |
The name of the contact. |
test |
| workspace |
string |
No |
The name of the workspace. |
default-cms-5884500827389836-cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| requestId |
string |
The request ID. |
8FDE2569-626B-5176-9844-28877A***** |
| contactGroupId |
string |
The ID of the contact group. |
test |
Examples
Success response
JSON format
{
"requestId": "8FDE2569-626B-5176-9844-28877A*****",
"contactGroupId": "test"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceExist | Resource already exist . | The resource already exists. |
| 400 | InvalidParameter | The parameter is missing or invalid. %s | |
| 400 | InvalidParameterValue | Invalid request: %s | |
| 500 | InternalUnknownError | The request processing has failed due to some unknown error. | A service runtime error occurred. |
| 404 | ResourceNotFound | The specified resource %s is not found. | The specified resource% s does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.