---
updatedAt: 2026-05-11T06:52:42.000Z
agentTools:
  projectIndex: https://platform.simpplr.com/llms.txt
---

# Manage site membership

This API allows us to manage the memberships for a site

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "version": "1.0.0",
    "title": "Simpplr User API Documentation",
    "description": ""
  },
  "x-proxy-enabled": true,
  "tags": [
    {
      "name": "Sites",
      "description": "Everything about Sites"
    }
  ],
  "servers": [
    {
      "url": "https://{endpoint}/v1",
      "variables": {
        "env": {
          "default": "app"
        },
        "endpoint": {
          "default": "platform.app.simpplr.com"
        }
      }
    }
  ],
  "paths": {
    "/content/sites/{site_id}/membership/manage": {
      "parameters": [
        {
          "name": "site_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "example": "eb4a3545-05f7-46e8-b17d-107339b6aae6"
          },
          "description": "Unique identifier of the site"
        }
      ],
      "post": {
        "tags": [
          "Sites"
        ],
        "summary": "Manage site membership",
        "description": "This API allows us to manage the memberships for a site",
        "operationId": "manageSiteMembershipUser",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "title": "Add People to Site",
                    "description": "Add a user to the site as a member or follower.",
                    "required": [
                      "userId",
                      "action",
                      "permission"
                    ],
                    "properties": {
                      "userId": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID of the user to add to the site",
                        "example": "123e4567-e89b-12d3-a456-426614174000"
                      },
                      "action": {
                        "type": "string",
                        "enum": [
                          "addPeople"
                        ],
                        "description": "Action to add a person to the site",
                        "example": "addPeople"
                      },
                      "permission": {
                        "type": "string",
                        "enum": [
                          "member",
                          "follower"
                        ],
                        "description": "Permission level to assign to the user",
                        "example": "member"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "title": "Set People Permission",
                    "description": "Set a user's permission on the site.",
                    "required": [
                      "userId",
                      "action",
                      "permission"
                    ],
                    "properties": {
                      "userId": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID of the user whose permission is being set",
                        "example": "123e4567-e89b-12d3-a456-426614174000"
                      },
                      "action": {
                        "type": "string",
                        "enum": [
                          "setPeoplePermission"
                        ],
                        "description": "Action to set a person's permission",
                        "example": "setPeoplePermission"
                      },
                      "permission": {
                        "type": "string",
                        "enum": [
                          "owner",
                          "manager",
                          "contentManager",
                          "member",
                          "follower"
                        ],
                        "description": "New permission level for the user",
                        "example": "manager"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "title": "Remove People from Site",
                    "description": "Remove a user from the site.",
                    "required": [
                      "userId",
                      "action"
                    ],
                    "properties": {
                      "userId": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID of the user to remove from the site",
                        "example": "123e4567-e89b-12d3-a456-426614174000"
                      },
                      "action": {
                        "type": "string",
                        "enum": [
                          "removePeople"
                        ],
                        "description": "Action to remove a person from the site",
                        "example": "removePeople"
                      },
                      "permission": {
                        "type": "string",
                        "enum": [
                          "all",
                          "owner",
                          "manager",
                          "contentManager",
                          "member",
                          "follower"
                        ],
                        "description": "Deselect permission level to remove all permissions (Keep me empty for this action)",
                        "example": "all"
                      }
                    },
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success",
                      "description": "Response status",
                      "enum": [
                        "success",
                        "error"
                      ]
                    },
                    "result": {
                      "type": "object",
                      "description": "Result object (empty for this operation)",
                      "example": {}
                    },
                    "message": {
                      "type": "string",
                      "example": "Operation completed successfully",
                      "description": "Descriptive message about the operation result"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error",
                      "description": "Response status",
                      "enum": [
                        "success",
                        "error"
                      ]
                    },
                    "errors": {
                      "type": "array",
                      "description": "List of validation or processing errors",
                      "items": {
                        "type": "object",
                        "properties": {
                          "seq_id": {
                            "type": "integer",
                            "example": 0,
                            "description": "Sequence identifier for the error"
                          },
                          "field_name": {
                            "type": "string",
                            "example": "userId",
                            "description": "Name of the field that caused the error"
                          },
                          "error_code": {
                            "type": "integer",
                            "example": 1001,
                            "description": "Numeric code identifying the type of error"
                          },
                          "message": {
                            "type": "string",
                            "example": "The 'userId' field is required and must not be empty",
                            "description": "Human-readable error message"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "Unauthorized": {
        "description": "Authorize error",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "example": "Missing/Invalid authentication token"
                }
              }
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden error",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error_code": {
                  "type": "integer",
                  "example": 2001
                },
                "message": {
                  "type": "string",
                  "example": "Something went wrong, please try again"
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "apiAuthSecurity": {
        "type": "oauth2",
        "description": "This API uses OAuth 2 with the implicit grant flow.",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://platform.test.simpplr.xyz/v1",
            "scopes": {
              "read": "read data",
              "write": "create/update data",
              "everything": "allow full access"
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "apiAuthSecurity": []
    }
  ]
}
```