Update DingTalk @ User

PUT/zstack/v1/sns/application-endpoints/ding-talk/at-persons/{uuid}/actions

Headers

Authorization: OAuth the-session-uuid

Body

{
  "updateAtPersonOfAtDingTalkEndpoint": {
    "endpointUuid": "d7be4980da0a308380b761afd3f36687",
    "phoneNumber": "13062689903",
    "remark": "jack"
  },
  "systemTags": [],
  "userTags": []
}

In the preceding example, the systemTags and userTags fields are optional. They are listed to indicate that the body can contain these two fields.

Curl Example

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/actions

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
uuidStringurlThe UUID of the resource, uniquely identifying this resource 4.2.0
endpointUuidStringbody (Contained in the updateAtPersonOfAtDingTalkEndpoint structure)DingTalk endpoint UUID 4.2.0
phoneNumber (Optional)Stringbody (Contained in the updateAtPersonOfAtDingTalkEndpoint structure)Mobile phone number 4.2.0
systemTags (Optional)ListbodySystem tags 4.2.0
userTags (Optional)ListbodyUser tags 4.2.0
remarkStringbody (Contained in the updateAtPersonOfAtDingTalkEndpoint structure)Remark 4.2.0

API Response

Response example

{
  "inventory": {
    "uuid": "905f0806f0e64bd5b8dcedcb64e7987d",
    "phoneNumber": "18988887777",
    "endpointUuid": "70cc64ef75e3432d9851dc4fa767972b",
    "createDate": "Mar 26, 2024 2:45:35 AM",
    "lastOpDate": "Mar 26, 2024 2:45:35 AM",
    "remark": "jack"
  }
}
NameTypeDescriptionStarting Version
successboolean 4.2.0
inventorySNSDingTalkAtPersonInventoryFor details, see inventory4.2.0
errorErrorCodeError code. If not null, the operation failed. This field is null when the operation succeeds. For details, see error4.2.0

inventory

NameTypeDescriptionStarting Version
uuidStringThe UUID of the resource, uniquely identifying this resource4.2.0
phoneNumberStringMobile phone number4.2.0
endpointUuidStringDingTalk endpoint UUID4.2.0

error

NameTypeDescriptionStarting Version
codeStringThe error code number, a globally unique identifier for the error, for example, SYS.1000 or HOST.10015.0.0
descriptionStringA brief description of the error5.0.0
detailsStringDetailed information about the error5.0.0
elaborationStringReserved field. Defaults to null5.0.0
opaqueLinkedHashMapReserved field. Defaults to null5.0.0
causeErrorCodeThe root error that caused the current error. This field is null if there is no root cause5.0.0

SDK Examples

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()