Leave
Requires current non-owner membership. The Owner must transfer ownership first. Non-owners may leave an archived workspace; accounts and other memberships remain intact.
POST /api/v1/workspaces/{id}/leaveOperation: leaveWorkspace · Download OpenAPI
Access
Section titled “Access”Requires an authenticated Localisync panel session. The API checks current membership and permissions for workspace operations. See authentication and request rules.
sessionCookie
{ "type": "apiKey", "in": "cookie", "name": "__Host-localisync-session"}Parameters
Section titled “Parameters”| Name | Location | Required | Description |
|---|---|---|---|
id |
path | Yes | See constraints below. |
X-CSRF-Token |
header | Yes | See constraints below. |
Origin |
header | Yes | See constraints below. |
{ "type": "string", "format": "uuid"}X-CSRF-Token
Section titled “X-CSRF-Token”{ "type": "string"}Origin
Section titled “Origin”{ "type": "string", "format": "uri"}Request body
Section titled “Request body”Required: Yes.
application/json
Section titled “application/json”| Field | Type | Required | Constraints / description |
|---|---|---|---|
version |
integer | Yes | minimum: 1 |
{ "type": "object", "properties": { "version": { "type": "integer", "minimum": 1 } }, "required": [ "version" ], "additionalProperties": false}Responses
Section titled “Responses”Completed.
Content type: application/json
Schema reference: Success.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
success |
boolean | Yes | — |
{ "$ref": "#/components/schemas/Success"}Invalid request fields, identifier, pagination or idempotency key.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
{ "$ref": "#/components/schemas/Error"}An authenticated, verified customer session is required.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
{ "$ref": "#/components/schemas/Error"}The current member lacks permission or CSRF/Origin validation failed.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
{ "$ref": "#/components/schemas/Error"}The resource is missing or not visible to the current customer.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
{ "$ref": "#/components/schemas/Error"}Stale version, conflicting idempotency key or unavailable invitation/workspace state.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
{ "$ref": "#/components/schemas/Error"}Request or invitation send limit reached. Respect Retry-After in seconds; route limits return the remaining window, invitation limits return 60.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
{ "$ref": "#/components/schemas/Error"}A required database, identity or email service is unavailable; no successful send is claimed.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
{ "$ref": "#/components/schemas/Error"}Related guidance
Section titled “Related guidance”Choose whether we remember appearance preferences and use Google Analytics on Localisync and its documentation. Optional storage stays off until you accept.
Read our cookie policy