Clans

将用户添加到部落

PUT
在部落中加入一个用户

Path parameters

handlestringRequired

文件中的 _id 或者 slug.

Request

This endpoint expects an object.
userId
stringRequired

使用字符串 _idslug 来识别要加入部落的用户.

Response

This endpoint returns an object
_id
stringOptional
name
stringOptional
displayName
stringOptional
members
list of stringsOptional
ownerID
stringOptional
description
stringOptional
type
stringOptional
kind
stringOptional
metadata
map from strings to anyOptional
PUT
$curl -X PUT https://koudashijie.com/api/clan/%3Ahandle/members \
> -H "Content-Type: application/json" \
> -u "<username>:<password>" \
> -d '{
> "userId": "string"
>}'
Response
1{
2 "_id": "string",
3 "name": "string",
4 "displayName": "string",
5 "members": [
6 "string"
7 ],
8 "ownerID": "string",
9 "description": "string",
10 "type": "string",
11 "kind": "string",
12 "metadata": {
13 "string": {}
14 }
15}