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

# Add site

This API allows us to add a new site user

# 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": {
      "post": {
        "summary": "Add site",
        "operationId": "addSiteUser",
        "tags": [
          "Sites"
        ],
        "description": "This API allows us to add a new site user",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "access",
                  "category",
                  "isContentSubmissionsEnabled",
                  "isOwner",
                  "hasPages",
                  "hasEvents",
                  "hasAlbums",
                  "hasDashboard",
                  "landingPage",
                  "isBroadcast",
                  "isContentFeedEnabled"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40,
                    "description": "Name of the site",
                    "example": "Sample Site"
                  },
                  "access": {
                    "type": "string",
                    "enum": [
                      "public",
                      "private",
                      "unlisted"
                    ],
                    "description": "Site access level",
                    "example": "public"
                  },
                  "category": {
                    "type": "object",
                    "required": [
                      "name",
                      "categoryId"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "description": "Name of the category",
                        "example": "Education"
                      },
                      "categoryId": {
                        "type": "string",
                        "nullable": true,
                        "description": "UUID of the category or null",
                        "example": "cc3af825-6801-4197-88f3-268e351fcba2"
                      }
                    },
                    "additionalProperties": false
                  },
                  "isContentSubmissionsEnabled": {
                    "type": "boolean",
                    "description": "Whether content submissions are enabled",
                    "example": true
                  },
                  "isContentFeedEnabled": {
                    "type": "boolean",
                    "description": "Whether content feed is enabled",
                    "example": true
                  },
                  "isOwner": {
                    "type": "boolean",
                    "description": "Whether the user is the owner of the site",
                    "example": true
                  },
                  "hasPages": {
                    "type": "boolean",
                    "description": "Whether the site supports pages",
                    "example": true
                  },
                  "hasEvents": {
                    "type": "boolean",
                    "description": "Whether the site supports events",
                    "example": true
                  },
                  "hasAlbums": {
                    "type": "boolean",
                    "description": "Whether the site supports albums",
                    "example": true
                  },
                  "hasDashboard": {
                    "type": "boolean",
                    "description": "Whether the site includes a dashboard",
                    "example": true
                  },
                  "landingPage": {
                    "type": "string",
                    "enum": [
                      "feed",
                      "dashboard",
                      "content",
                      "files",
                      "about"
                    ],
                    "description": "Default landing page for the site",
                    "example": "dashboard"
                  },
                  "isBroadcast": {
                    "type": "boolean",
                    "description": "Whether the site is broadcast-only",
                    "example": false
                  },
                  "isMembershipAutoApproved": {
                    "type": "boolean",
                    "description": "Whether membership requests are auto-approved",
                    "example": false
                  },
                  "isQuestionAnswerEnabled": {
                    "type": "boolean",
                    "description": "Whether Q&A is enabled for the site",
                    "example": true
                  },
                  "pageAiSummaryEnabledFor": {
                    "type": "string",
                    "enum": [
                      "none",
                      "standard",
                      "must_read",
                      "all"
                    ],
                    "description": "Controls which pages in the site can show AI summaries",
                    "example": "all"
                  },
                  "targetAudience": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "description": "List of UUIDs identifying the target audiences"
                  },
                  "subscription": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "audienceId",
                        "accessType",
                        "isMandatory"
                      ],
                      "properties": {
                        "audienceId": {
                          "type": "string",
                          "format": "uuid",
                          "description": "UUID of the audience"
                        },
                        "accessType": {
                          "type": "string",
                          "enum": [
                            "viewer",
                            "member",
                            "follower",
                            "manager"
                          ],
                          "description": "Access type for the subscription"
                        },
                        "isMandatory": {
                          "type": "boolean",
                          "description": "Whether the subscription is mandatory"
                        }
                      },
                      "additionalProperties": false
                    },
                    "description": "List of subscription configurations"
                  }
                },
                "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": "Contains the ID of the newly created site",
                      "properties": {
                        "siteId": {
                          "type": "string",
                          "example": "49502e9f-a6e6-4773-a0b4-64be9388b7b1",
                          "description": "Unique identifier of the newly created site"
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "example": "Site created 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": "name",
                            "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 'name' 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": []
    }
  ]
}
```