Space Memberships
Group Space Memberships
Space memberships represent the relationship between a single Contentful user and a space within your organization. In other words, they are the data object that defines explicitly who is a member of which space.
Get all space memberships in a space
Get all space memberships in a space
This endpoint returns a paginated list of all the space memberships in a space.
All space members can access this endopint.
Query Parameters
Response
Get all space memberships in an organization
Get all space memberships in an organization
This endpoint returns a paginated list of all space memberships across all spaces in the organization.
Only organization admins and owners can access this endpoint.
Query Parameters
Filter Parameters
See Filtering Results for details about how to use attributes and operators to construct query filters.
Response
Get a single space membership
Get a single space membership (space-scoped)
Get a single space membership (organization-scoped)
These endpoints return details about an existing space membership.
The first endpoint (scoped to a space) is accessible to all space members; the second (scoped to an organization) is accessible only to organization admin and owners.
Response
Create a space membership
Use this endpoint to create a space membership. A user can either be designated as an admin or assigned to one or more roles. The user must already exist in the organization.
Only organization admins, owners, and space admins can access this endpoint.
Note: For legacy reasons, the user you are creating a space membership for needs to be identified by their email address. This email address must match the email address of the user associated with an existing organization membership in your organization.
Request Body
Response
Update a space membership
This endpoint updates a space membership. Use this to change the roles for a user or make them an admin within the space.
Only organization admins, owners, and space admins can access this endpoint.
Request Body
Response
Delete a space membership
This endpoint deletes a space membership.
Only organization admins, owners, and space admins can access this endpoint. The user associated with the space membership also has access to this endpoint (so that they have permission to remove themselves from an organization).