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
| Property | Type | Description |
|---|---|---|
slug | string | Team post slug (cp_team post_name). |
url | string | Full 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.
| Property | Type | Description |
|---|---|---|
id required | integer | |
title required | string | |
slug required | string | |
permalink | string | |
logoUrl | string | |
motto | string | |
country | string | |
description | string |
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