# Update organization invitation status **PUT /api/organization-invitations/{id}/status** Update the status of an organization invitation by ID. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters ### Path parameters - **id** (string) The unique identifier of the organization invitation. ### Body: application/json (object) The organization invitation status to update. - **acceptedUserId** (string | null) The ID of the user who accepted the organization invitation. Required if the status is "Accepted". - **status** (string) The status of the organization invitation. ## Responses ### 200 The organization invitation status was updated successfully. #### Body: application/json (object) - **tenantId** (string) - **id** (string) - **inviterId** (string | null) - **invitee** (string) - **acceptedUserId** (string | null) - **organizationId** (string) - **status** (string) - **createdAt** (number) - **updatedAt** (number) - **expiresAt** (number) - **organizationRoles** (array[object]) ### 400 Bad Request ### 401 Unauthorized ### 403 Forbidden ### 422 The organization invitation status could not be updated. This can happen if the current status is not "Pending" or if the status is "Accepted" and the accepted user ID is not provided. [Powered by Bump.sh](https://bump.sh)