Pozvaná osoba už je členem
Při tomto problému API vrací 409 Conflict. Hodnota type je https://lingo.dev/docs/api/errors/invitee-already-member. Společnou strukturu všech chyb najdete v části Chyby a stavové kódy.
Na adresu ada@example.com nelze poslat pozvánku. Tato adresa už patří členovi organizace <organizationId> a pozvánka by jeho roli nezměnila. Roli změňte ve správě členů organizace.
Pole#
Kromě standardních položek type, status, title a detail obsahuje tělo odpovědi následující pole. Z nich se sestavuje text detail, takže klient může místo něj zobrazit vlastní text.
| Pole | Typ |
|---|---|
organizationId | string |
email | string |
Příklad#
json
{
"detail": "Cannot invite ada@example.com. That address already belongs to a member of organization <organizationId>, and an invitation would not change their role. Change their role through the organization members instead.",
"organizationId": "<organizationId>",
"email": "ada@example.com",
"type": "https://lingo.dev/docs/api/errors/invitee-already-member",
"status": 409,
"title": "Invitee already a member"
}Koncové body vracející tuto chybu#
POST /v2/organizations/{orgId}/invites