UpdateAtPersonOfAtDingTalkEndpoint
API Request
URLs
PUT zstack/v1/sns/application-endpoints/ding-talk/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.
{
"updateAtPersonOfAtDingTalkEndpoint": {
"endpointUuid": "d7be4980da0a308380b761afd3f36687",
"phoneNumber": "13062689903",
"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 '{"updateAtPersonOfAtDingTalkEndpoint":{"endpointUuid":"d7be4980da0a308380b761afd3f36687","phoneNumber":"13062689903","remark":"jack"}}' \
http://localhost:8080/zstack/v1/sns/application-endpoints/ding-talk/at-persons/c42464333dce35db9fbc8816f22b1d31/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 updateAtPersonOfAtDingTalkEndpoint structure) | The DingTalk endpoint uuid. | 5.0.0 | |
| phoneNumber | String | body (contained in the updateAtPersonOfAtDingTalkEndpoint structure) | Optional. The phone number. | 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 updateAtPersonOfAtDingTalkEndpoint structure) | Optional. The remark. | 5.0.0 |
API Response
Sample
Response
{
"inventory": {
"uuid": "bb8f58cf82bd42a0902e192a920e02be",
"phoneNumber": "18988887777",
"endpointUuid": "e046be58ccbf4ab592bfb18aa0975418",
"createDate": "Dec 25, 2023 2:07:18 PM",
"lastOpDate": "Dec 25, 2023 2:07:18 PM",
"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 |
| phoneNumber | String | The phone number. | 5.0.0 |
| endpointUuid | String | The DingTalk endpoint uuid. | 5.0.0 |
SDK Sample
Java
SDK
UpdateAtPersonOfAtDingTalkEndpointAction action = new UpdateAtPersonOfAtDingTalkEndpointAction();
action.uuid = "c42464333dce35db9fbc8816f22b1d31";
action.endpointUuid = "d7be4980da0a308380b761afd3f36687";
action.phoneNumber = "13062689903";
action.remark = "jack";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateAtPersonOfAtDingTalkEndpointAction.Result res = action.call();Python
SDK
UpdateAtPersonOfAtDingTalkEndpointAction action = UpdateAtPersonOfAtDingTalkEndpointAction()
action.uuid = "c42464333dce35db9fbc8816f22b1d31"
action.endpointUuid = "d7be4980da0a308380b761afd3f36687"
action.phoneNumber = "13062689903"
action.remark = "jack"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateAtPersonOfAtDingTalkEndpointAction.Result res = action.call()