# Send parent portal invitations `POST /api/v1/teams/{id}/parent-portal-invites` Sends or resends parent portal invitations to primary contacts for athletes assigned to the team. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Teams → Write and Parents → Write**. ## Headers - `X-Sport-Id` (integer, required) — The sport ID from [List sports](/api/sports/list.md). Use the sport the team belongs to. ## Path parameters - `id` (integer, required) — The team ID returned by [List teams](/api/teams/list.md). ## Request Set ASDINCLOUD_API_KEY, SPORT_ID, and TEAM_ID before running. Running the request sends emails. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/teams/${TEAM_ID:?Set TEAM_ID}/parent-portal-invites" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: $SPORT_ID" ``` ## Response **200 OK** Returns counts for contacts considered, invited, skipped, and failed. Check `failed` even when the request succeeds. Example with fictional data and selected fields. ```json { "status": "success", "data": { "total": 4, "invited": 3, "skipped": 1, "failed": 0 } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks one or more required permissions. - `404` — The team was not found in the selected sport. Requests with missing or unavailable sport context can also return this status. - `500` — The invitation batch could not be processed.