CreateRelationship

POST /clans/{clanid}/relationships/

To create new relationships

Query parameters

  • typed integer Required

    Type of relationship. 0 PNA, 1 Ally, 2 Enemy, 30 False PNA, 31 False Ally, 32 False War

    Values are NAP, ALLY, WAR, FALSE_NAP, FALSE_ALLY, FALSE_WAR, 0, 1, 2, 30, 31, or 32.

  • clanflag string

    Shows the colour of the clan in hexadecimal

  • nameotherclan string Required

    Clan name

  • symbol string

    Image of the flag

Responses

  • 201 application/json

    Default Response

    Hide response attribute Show response attribute object
  • 400 application/json

    Bad Request

    Bad Request

  • 401 application/json

    Unauthorized

    Unauthorized

  • 405 application/json

    Method Not Allowed

    Method Not Allowed

  • 503 application/json

    Service Unavailable

    Service Unavailable

POST /clans/{clanid}/relationships/
curl \
 --request POST 'http://api.example.com/clans/{clanid}/relationships/?typed=NAP&nameotherclan=string' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (201)
{
  "message": "string"
}
Response examples (400)
string
Response examples (401)
string
Response examples (405)
string
Response examples (503)
string