UpdateAtPersonOfAtWeComEndpoint
API Request
URLs
PUT zstack/v1/sns/application-endpoints/we-com/at-persons/{uuid}/actionsHeaders
Authorization: OAuth the-session-uuidBody
Note: In
the preceding sample, both systemTags and userTags are optional.
These two fields can be included in the body structure.
{
"updateAtPersonOfAtWeComEndpoint": {
"endpointUuid": "4aec8a68c63439f197df9623ec89cda6",
"userId": "zhang.san",
"remark": "jack"
},
"systemTags": [],
"userTags": []
}
Note: In
the preceding sample, both systemTags and userTags are optional.
These two fields can be included in the body structure.Curl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"updateAtPersonOfAtWeComEndpoint":{"endpointUuid":"4aec8a68c63439f197df9623ec89cda6","userId":"zhang.san","remark":"jack"}}' \
http://localhost:8080/zstack/v1/sns/application-endpoints/we-com/at-persons/87df59c09f0336c2817d318a468f717c/actionsRequest Parameters
| Name | Type | Location | Description | Optional Value | Starting Version |
|---|---|---|---|---|---|
| uuid | String | url | The resource UUID. | 5.0.0 | |
| endpointUuid | String | body (contained in the updateAtPersonOfAtWeComEndpoint structure) | The WeCom endpoint uuid. | 5.0.0 | |
| userId | String | body (contained in the updateAtPersonOfAtWeComEndpoint structure) | Optional. The user id. | 5.0.0 | |
| systemTags | List | body | Optional. The system tags. | 5.0.0 | |
| userTags | List | body | Optional. The user tags. | 5.0.0 | |
| remark | String | body (contained in the updateAtPersonOfAtWeComEndpoint structure) | Optional. The remark. | 5.0.0 |
API Response
Sample
Response
{
"inventory": {
"uuid": "018934b79afc42cdbc7cb18f0330580e",
"userId": "18988887777",
"endpointUuid": "3579680f648d41af8a96218a339bd7b3",
"remark": "jack"
}
}#error
| Name | Type | Description | Starting Version |
|---|---|---|---|
| code | String | The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. | 5.0.0 |
| description | String | The brief description of the error. | 5.0.0 |
| details | String | The details about the error. | 5.0.0 |
| elaboration | String | The reserved field. Default value: null. | 5.0.0 |
| opaque | LinkedHashMap | The reserved field. Default value: null. | 5.0.0 |
| cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 5.0.0 |
#inventory
| Name | Type | Description | Starting Version |
|---|---|---|---|
| uuid | String | The resource UUID. | 5.0.0 |
| userId | String | The WeCom user id. | 5.0.0 |
| endpointUuid | String | The WeCom endpoint uuid. | 5.0.0 |
SDK Sample
Java
SDK
UpdateAtPersonOfAtWeComEndpointAction action = new UpdateAtPersonOfAtWeComEndpointAction();
action.uuid = "87df59c09f0336c2817d318a468f717c";
action.endpointUuid = "4aec8a68c63439f197df9623ec89cda6";
action.userId = "zhang.san";
action.remark = "jack";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateAtPersonOfAtWeComEndpointAction.Result res = action.call();Python
SDK
UpdateAtPersonOfAtWeComEndpointAction action = UpdateAtPersonOfAtWeComEndpointAction()
action.uuid = "87df59c09f0336c2817d318a468f717c"
action.endpointUuid = "4aec8a68c63439f197df9623ec89cda6"
action.userId = "zhang.san"
action.remark = "jack"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateAtPersonOfAtWeComEndpointAction.Result res = action.call()