PUT

/api/clan/{handle}/members

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

Authorizations

Authenticationheaderrequired
string

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

Path Parameters

handlerequired
string

The document's _id or slug.

Body

application/json
userIdrequired
string

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

Response

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