cURL
curl --request POST \ --url https://api.youappz.dev/teams \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "slug": "a-random-team", "name": "A Random Team" } '
{ "id": "<string>", "slug": "<string>", "name": "<string>", "avatar": "<string>", "createdBy": 123, "createdAt": 123, "updatedAt": 123 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The desired slug for the Team
48
"a-random-team"
The desired name for the Team. It will be generated from the provided slug if nothing is provided
256
"A Random Team"
The team was created successfully