> For the complete documentation index, see [llms.txt](https://openapi.logto.io/dev/llms.txt)

# 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. <br/>- `organization.invitation_status_not_changeable`: The current status is not "Pending". <br/>- `organization.accepted_user_id_required`: The status is "Accepted" but `acceptedUserId` is not provided. <br/>- `organization.accepted_user_email_mismatch`: The primary email of the accepted user does not match the invitee.


[Powered by Bump.sh](https://bump.sh)
