Skip to content

Remove a member

POST
/v1/org/remove-member
curl --request POST \
--url https://your-tenant-host/v1/org/remove-member \
--header 'Content-Type: application/json' \
--header 'x-edgekit-site-id: site_example' \
--cookie ek.session_token=<ek.session_token> \
--data '{ "memberIdOrEmail": "ada@example.com", "organizationId": "01926f3a-8b4e-7b33-a944-5e6f7a8b9c0d" }'

Frees the seat. The removed user keeps their own record and every grant that is theirs rather than the organization’s. They keep organization access until their cookie refreshes, up to about 15 minutes. A retry after success is refused: the member is gone.

x-edgekit-site-id
required

The site this request is for, within this tenant. Every official EdgeKit SDK sets it from the client you configured; set it yourself only when calling this API directly.

string
>= 1 characters <= 128 characters

Example

site_example

The site this request is for, within this tenant. Every official EdgeKit SDK sets it from the client you configured; set it yourself only when calling this API directly.

Media typeapplication/json
object
memberIdOrEmail
required
string
>= 1 characters <= 254 characters

Example

ada@example.com
organizationId
string format: uuid
>= 1 characters <= 128 characters

Example

01926f3a-8b4e-7b33-a944-5e6f7a8b9c0d

The seat is free.

Media typeapplication/json
object
success
required
boolean

Example

{
"success": true
}

Invalid request.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Missing or invalid credential.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Not allowed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Resource not found.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Request validation failed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Unexpected error.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}