Skip to main content
Approve Member
Sets a pending member’s status to "active". Requires the caller to be a moderator or admin.

Path Parameters

string
required
UUID of the space.
string
required
UUID of the membership record to approve.

Body Parameters

string
Required with a service key: the user this request acts as. The request has exactly that user’s permissions, so it is refused unless they are a moderator or admin of the space, and it is recorded as theirs. A user token always acts as its own user and must not send it (400 space/acting-user-not-allowed).

Response

string
Confirmation message.
object
Updated membership with id, status: "active", and joinedAt.

Errors

Returned when spaceId or memberId isn’t a valid UUID. Checked before sign-in, permissions and the endpoint’s other checks.
A service key sent no actingUserId.
actingUserId is not a user id.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
actingUserId was sent in the query string. On this endpoint every field, actingUserId included, goes in the request body.
Returned when a service key names an actingUserId that isn’t a user in this project.
The caller (or the user named by actingUserId) is not a moderator or admin of the space.
The request is no longer pending: it was already approved, declined or banned. The message names the current status, or says the request is no longer pending if it changed while the request was being handled.
The member is banned in a parent of this space; bannedSpaceIds lists where.
See also: useApproveMember