Document navigation

UpdateAtPersonOfAtFeiShuEndpoint

API Request

URLs

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

Headers

Authorization: OAuth the-session-uuid

Body

{
  "updateAtPersonOfAtFeiShuEndpoint": {
    "endpointUuid": "60274b11ffdc3ea080be205b964848d2",
    "userId": "zhang.san",
    "remark": "jack"
  },
  "systemTags": [],
  "userTags": []
}

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 '{"updateAtPersonOfAtFeiShuEndpoint":{"endpointUuid":"60274b11ffdc3ea080be205b964848d2","userId":"zhang.san","remark":"jack"}}' \
http://localhost:8080/zstack/v1/sns/application-endpoints/feishu/at-persons/399ba943200638c2a63b65f002b6e180/actions

Request Parameters

Name Type Location Description Optional Value Starting Version
uuid String url The resource UUID. 5.0.0
endpointUuid String body (contained in the updateAtPersonOfAtFeiShuEndpoint structure) The FeiShu endpoint uuid. 5.0.0
userId String body (contained in the updateAtPersonOfAtFeiShuEndpoint structure) Optional. The FeiShu 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 updateAtPersonOfAtFeiShuEndpoint structure) Optional. The remark. 5.0.0

API Response

Sample Response

{
  "inventory": {
    "uuid": "cd642af04dc14443a61693c5ed9f055f",
    "userId": "18988887777",
    "endpointUuid": "edb3de87e9014eb9b1903739f3e8ec05",
    "createDate": "Dec 25, 2023 2:06:56 PM",
    "lastOpDate": "Dec 25, 2023 2:06:56 PM",
    "remark": "jack"
  }
}
Name Type Description Starting Version
success boolean Whether the operation succeeded. 5.0.0
error ErrorCode The error code. If not null, the operation fails, or vice versa. For more information, see error. 5.0.0
inventory SNSFeiShuAtPersonInventory See inventory. 5.0.0

#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 FeiShu user id. 5.0.0
endpointUuid String The FeiShu endpoint uuid. 5.0.0

SDK Sample

Java SDK

UpdateAtPersonOfAtFeiShuEndpointAction action = new UpdateAtPersonOfAtFeiShuEndpointAction();
action.uuid = "399ba943200638c2a63b65f002b6e180";
action.endpointUuid = "60274b11ffdc3ea080be205b964848d2";
action.userId = "zhang.san";
action.remark = "jack";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateAtPersonOfAtFeiShuEndpointAction.Result res = action.call();

Python SDK

action = UpdateAtPersonOfAtFeiShuEndpointAction()
action.uuid = "399ba943200638c2a63b65f002b6e180"
action.endpointUuid = "60274b11ffdc3ea080be205b964848d2"
action.userId = "zhang.san"
action.remark = "jack"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
res = action.call()