updateOrganizationMembershipMetadata()
Updates the metadata associated with a user's organization membership.
- Name
organizationId
- Type
string
- Description
The ID of the organization this membership belongs to.
- Name
userId
- Type
string
- Description
The user ID associated with the metadata being updated.
- Name
publicMetadata?
- Type
Record<string, unknown>
- Description
Metadata saved on the organization, that is visible to both your Frontend and Backend APIs.
- Name
privateMetadata?
- Type
Record<string, unknown>
- Description
Metadata saved on the organization that is only visible to your Backend API.
updateOrganizationMembershipMetadata()
example
In this example, you can see that the returned OrganizationMembership
object has its publicMetadata
property updated with the new metadata provided.
Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint PATCH/organizations/{organization_id}/memberships/{user_id}/metadata
. See the BAPI reference for more details.