Endpoint
Authentication
This endpoint requires an admin JWT token. The token must:- Be valid and not expired
- Contain a
userTypefield with value"admin" - Be signed with the application’s secret key
Request
Unique identifier for the team. This will be used as the primary key.
Full name of the team (max 100 characters)
Team’s nationality (max 50 characters)
URL to the team’s official page (max 255 characters)
URL to the team’s logo image (max 255 characters)
JWT authentication token with admin privileges
Response
Success (200)
Returns an object containing the status and created team data.HTTP status code (200 for success)
JSON stringified team object containing:
Error responses
400 - Bad Request
Returned when no token is provided in the request body
401 - Unauthorized
Returned when:or
- JWT verification fails
- Token has expired
403 - Forbidden
Returned when the authenticated user does not have admin privileges