Update the specific control group
파라미터 이름 | 설명 |
---|---|
*ControlGroupCodeString | Control Group Code, Can be obtained through the API interface [QueryControlGroupList] |
파라미터 이름 | 설명 |
---|---|
controlGroupNameString | Control Group name, which only the User Customized type Control Group can be modified, customer type Control Group and product type Control Group can not be modified. User Customized type Control Group keeps the original Control Group name if no value is passed |
accountListList | Account object array,Used to specify accounts with permission. all types of Control Group can be modified, if no value is passed, the original accountList will be emptied |
loginNameString | Account |
domainListList | Domain array, which only the User Customized type Control Group can be modified, customer type Control Group and product type Control Group can not be modified.User Customized type Control Group empties the original domainList if no value is passed |
isAddBoolean | Whether to add:
1. Do not pass or pass false: rewrite method;
2. Pass true: append method. |
파라미터 이름 | 설명 |
---|---|
codeInteger | Status Code |
msgString | Message |
dataObject | |
controlGroupCodeString | Control Group Code |
controlGroupNameString | Control Group Name |
에러 코드(code) | 설명(message) | HTTP 상태 코드 | 설명 |
---|---|---|---|
MissingBody | This operation requires a body. Ensure that the body is present and the Content-Type header is set. | 400 | Missing request body |
HeaderDirectionError | Header-direction can only select {0}. | 400 | Header-direction can only select {0}. |
HttpHeaderXmlError | Missing "action" or "direction" field in | 403 | Lacking of foeld of action or direction. |
InvalidHeaderName | Header name {0} is no action. | 404 | Header name lack of action field |
24192105 | The "controlGroupName"you specified is not exist | 200 | The "controlGroupName"you specified is not exist |
24192107 | You do not have permission to operate this "controlGroup" | 200 | You do not have permission to operate this "controlGroup" |
24192109 | The "controlGroup" you specified does not belong to you | 200 | The "controlGroup" you specified does not belong to you |
24192103 | ccbc_control_group_add_account_illegal:xx | 200 | ccbc_control_group_add_account_illegal:xx |
#!/bin/bash username="example_username" apiKey="example_apiKey" date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"` password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64` curl -i --url "https://api.cdnetworks.com/user/control-groups/<ControlGroupCode>" \ -X "PUT" \ -u "$username:$password" \ -H "Date: $date" \ -H "Accept: application/json" \ -d '{ "accountList":[{"loginName":"test"}], "controlGroupName":"xxx", "domainList":["www.aaa.com","www.bbb.com"], "isAdd":"false" }'
{ "msg":"Success", "code":"0", "data":{ "controlGroupCode":"CG201906241004", "controlGroupName":"xxx" } }