Clans

Upsert User Into Clan

PUT
Upserts a user into the clan.

Path parameters

handlestringRequired

The document’s _id or slug.

Request

This endpoint expects an object.
userId
stringRequired

The _id or slug of the user to add to the clan.

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://codecombat.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}