Clanbite Abilities

Returns public metadata for a published team given its slug or an absolute team profile URL.

Ability
clanbite/public-team
Label
Public team metadata
Category
Clanbite
Access
Public

Input

PropertyTypeDescription
slugstringTeam post slug (cp_team post_name).
urlstringFull URL to a team profile page on this site.
JSON Schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Team post slug (`cp_team` post_name)."
        },
        "url": {
            "type": "string",
            "description": "Full URL to a team profile page on this site."
        }
    }
}

Output

Public team fields.

PropertyTypeDescription
id requiredinteger
title requiredstring
slug requiredstring
permalinkstring
logoUrlstring
mottostring
countrystring
descriptionstring
JSON Schema
{
    "type": "object",
    "description": "Public team fields.",
    "properties": {
        "id": {
            "type": "integer"
        },
        "title": {
            "type": "string"
        },
        "slug": {
            "type": "string"
        },
        "permalink": {
            "type": "string"
        },
        "logoUrl": {
            "type": "string"
        },
        "motto": {
            "type": "string"
        },
        "country": {
            "type": "string"
        },
        "description": {
            "type": "string"
        }
    },
    "required": [
        "id",
        "title",
        "slug"
    ]
}

Defined in inc/Abilities_Api.php