Add Feishu @ User

POST/zstack/v1/sns/application-endpoints/feishu/at-persons

Headers

Authorization: OAuth the-session-uuid

Body

{
  "params": {
    "userId": "18099997777",
    "endpointUuid": "9214e9f129783370bea45388a1734073",
    "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 POST -d '{"params":{"userId":"18099997777","endpointUuid":"9214e9f129783370bea45388a1734073","remark":"jack"}}' \
http://localhost:8080/zstack/v1/sns/application-endpoints/feishu/at-persons

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
userIdStringbody (Contained in the params structure)Feishu user ID 4.2.0
endpointUuidStringbody (Contained in the params structure)Feishu endpoint UUID 4.2.0
resourceUuid (Optional)Stringbody (Contained in the params structure)Resource UUID 4.2.0
systemTags (Optional)ListbodySystem tags 4.2.0
userTags (Optional)ListbodyUser tags 4.2.0
tagUuid (Optional)Listbody (Contained in the params structure)Tag UUID list 4.2.0
remark (Optional)Stringbody (Contained in the params structure)Remark 4.2.0

API Response

Response example

{
  "inventory": {
    "uuid": "554e2a66f6124d4c89e5c27179364681",
    "userId": "18988887777",
    "endpointUuid": "76b5f7a29a3a403fa8e3701902135bcf",
    "createDate": "Mar 26, 2024 2:47:17 AM",
    "lastOpDate": "Mar 26, 2024 2:47:17 AM",
    "remark": "jack"
  }
}
NameTypeDescriptionStarting Version
successboolean 4.2.0
errorErrorCodeError code. If not null, the operation failed. This field is null when the operation succeeds. For details, see error4.2.0
inventorySNSFeiShuAtPersonInventoryFor details, see inventory4.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

inventory

NameTypeDescriptionStarting Version
uuidStringThe UUID of the resource, uniquely identifying this resource4.2.0
userIdStringFeishu user ID4.2.0
endpointUuidStringFeishu Endpoint UUID4.2.0

SDK Examples

Java SDK

AddSNSFeiShuAtPersonAction action = new AddSNSFeiShuAtPersonAction();
action.userId = "18099997777";
action.endpointUuid = "9214e9f129783370bea45388a1734073";
action.remark = "jack";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
AddSNSFeiShuAtPersonAction.Result res = action.call();

Python SDK

AddSNSFeiShuAtPersonAction action = AddSNSFeiShuAtPersonAction()
action.userId = "18099997777"
action.endpointUuid = "9214e9f129783370bea45388a1734073"
action.remark = "jack"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
AddSNSFeiShuAtPersonAction.Result res = action.call()