DocumentationAPI reference

Rust · 0.1.0

Delete Space Member

DELETE /api/v1/spaces/{space}/members/{member}

SpaceService · SpaceService_DeleteSpaceMember

Protocol-derived reference. Authorization and instance policy still apply. Schema descriptions are inherited from the MIT-licensed application contract; examples here are not executed against a live server.

Access

A member may remove their own membership to leave; removing anyone else requires space ADMIN. The last active administrator cannot leave or be removed until another active administrator exists.

Successful response

This operation has no resource to return. The Rust REST transport serializes protobuf Empty as HTTP 200 with JSON {}. The empty success-schema area in the generated contract is intentional, not missing request instructions.

Request

DeleteSpaceMember removes a member. A member may delete their own membership to leave the space.

DELETE/api/v1/spaces/{space}/members/{member}

Parameters

Name / locationType / requirementDescription
space
path
string
Required
The space id.
member
path
string
Required
The member id.

Request body

No request body is declared.

Responses

200 · OK

default · Default error response

application/json · Status

Complete operation definition

All declared constraints, media types and response details are retained below. Schema references link to their complete definitions.

Open JSON definition
{
  "tags": [
    "SpaceService"
  ],
  "description": "DeleteSpaceMember removes a member. A member may delete their own\n membership to leave the space.",
  "operationId": "SpaceService_DeleteSpaceMember",
  "parameters": [
    {
      "name": "space",
      "in": "path",
      "description": "The space id.",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "member",
      "in": "path",
      "description": "The member id.",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "OK",
      "content": {}
    },
    "default": {
      "description": "Default error response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Status"
          }
        }
      }
    }
  }
}