Retrieve the names of the previous opponents for this team
GET {{baseUrl}}/v1/events/opponent/teams/{{team_id}}?name=Warr
This endpoint returns the list of previously used opponent names to ease creating a new event.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
name | string | required |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | A JWT token |
RESPONSES
status: OK
{"error":false,"code":200,"message":"List of previous opponents.","result":[{"event_opponent":"West Herts Warriors 2"},{"event_opponent":"West Herts Warriors"},{"event_opponent":"West Herts Warriors 1"}]}