PUT
/
clan
/
{handle}
/
members
curl --request PUT \
  --url https://codecombat.com/api/clan/{handle}/members \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "userId": "<string>"
}'
{
  "_id": "<string>",
  "name": "<string>",
  "displayName": "<string>",
  "members": [
    "<string>"
  ],
  "ownerID": "<string>",
  "description": "<string>",
  "type": "<string>",
  "kind": "<string>",
  "metadata": {}
}

Authorizations

Authorization
string
headerrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

handle
string
required

The document's _id or slug.

Body

application/json
userId
string
required

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

Response

200 - application/json
_id
string | null
name
string | null
displayName
string | null
members
string[] | null
ownerID
string | null
description
string | null
type
string | null
kind
string | null
metadata
object | null