Invitation already pending

Moses SkodaEngineer1 min read

The API answers 409 Conflict with this problem. Its type is https://lingo.dev/docs/api/errors/invite-already-exists. See Errors and status codes for the shape every error shares.

Organization <organizationId> already has a pending invitation for ada@example.com. Cancel that invitation before sending a new one.

Fields#

Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.

FieldType
organizationIdstring
emailstring

Example#

json
{
  "detail": "Organization <organizationId> already has a pending invitation for ada@example.com. Cancel that invitation before sending a new one.",
  "organizationId": "<organizationId>",
  "email": "ada@example.com",
  "type": "https://lingo.dev/docs/api/errors/invite-already-exists",
  "status": 409,
  "title": "Invitation already pending"
}

Returned by#

  • POST /v2/organizations/{orgId}/invites