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

# Update site

This API allows us to update an existing 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/{site_id}": {
      "put": {
        "summary": "Update site",
        "operationId": "updateSiteUser",
        "tags": [
          "Sites"
        ],
        "description": "This API allows us to update an existing site user",
        "parameters": [
          {
            "name": "site_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The ID of the site user to update"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "description",
                  "category",
                  "access",
                  "isBroadcast",
                  "hasPages",
                  "hasEvents",
                  "hasAlbums",
                  "landingPage",
                  "isContentSubmissionsEnabled",
                  "isContentFeedEnabled",
                  "isContentUnfurlEnabled"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40,
                    "description": "Name of the site",
                    "example": "Updated Site Name"
                  },
                  "description": {
                    "type": "string",
                    "nullable": true,
                    "minLength": 1,
                    "maxLength": 1000,
                    "description": "Description of the site",
                    "example": "This is an updated site description"
                  },
                  "category": {
                    "type": "object",
                    "required": [
                      "id",
                      "name"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "nullable": true,
                        "format": "uuid",
                        "description": "UUID of the category",
                        "example": "cc3af825-6801-4197-88f3-268e351fcba2"
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "description": "Name of the category",
                        "example": "Education"
                      }
                    },
                    "additionalProperties": false
                  },
                  "access": {
                    "type": "string",
                    "enum": [
                      "public",
                      "private",
                      "unlisted"
                    ],
                    "description": "Site access level",
                    "example": "public"
                  },
                  "isBroadcast": {
                    "type": "boolean",
                    "description": "Whether the site is broadcast-only",
                    "example": false
                  },
                  "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
                  },
                  "landingPage": {
                    "type": "string",
                    "enum": [
                      "feed",
                      "dashboard",
                      "content",
                      "files",
                      "about"
                    ],
                    "description": "Default landing page for the site",
                    "example": "dashboard"
                  },
                  "isContentSubmissionsEnabled": {
                    "type": "boolean",
                    "description": "Whether content submissions are enabled",
                    "example": true
                  },
                  "isContentFeedEnabled": {
                    "type": "boolean",
                    "description": "Whether content feed is enabled",
                    "example": true
                  },
                  "isContentUnfurlEnabled": {
                    "type": "boolean",
                    "description": "Whether content unfurl is enabled",
                    "example": true
                  },
                  "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": "object",
                      "required": [
                        "audienceId"
                      ],
                      "properties": {
                        "entityAudienceId": {
                          "type": "string",
                          "format": "uuid",
                          "description": "UUID of the entity audience"
                        },
                        "audienceId": {
                          "type": "string",
                          "format": "uuid",
                          "description": "UUID of the audience"
                        }
                      },
                      "additionalProperties": false
                    },
                    "description": "List of target audiences"
                  },
                  "subscription": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "audienceId",
                        "accessType",
                        "isMandatory"
                      ],
                      "properties": {
                        "entityAudienceId": {
                          "type": "string",
                          "format": "uuid",
                          "description": "UUID of the entity audience"
                        },
                        "audienceId": {
                          "type": "string",
                          "format": "uuid",
                          "description": "UUID of the audience"
                        },
                        "accessType": {
                          "type": "string",
                          "enum": [
                            "viewer",
                            "member",
                            "follower"
                          ],
                          "description": "Access type for the subscription"
                        },
                        "isMandatory": {
                          "type": "boolean",
                          "description": "Whether the subscription is mandatory"
                        }
                      },
                      "additionalProperties": false
                    },
                    "description": "List of subscription configurations"
                  },
                  "targetAudienceDeleted": {
                    "type": "array",
                    "description": "List of target audience UUIDs to delete",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "subscriptionDeleted": {
                    "type": "array",
                    "description": "List of subscriptions to delete",
                    "items": {
                      "type": "object",
                      "required": [
                        "entityAudienceId",
                        "shouldUnfollowAudience"
                      ],
                      "properties": {
                        "entityAudienceId": {
                          "type": "string",
                          "format": "uuid",
                          "description": "UUID of the entity audience to delete"
                        },
                        "shouldUnfollowAudience": {
                          "type": "boolean",
                          "description": "Whether to unfollow the audience"
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Site updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "message",
                    "result"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "success"
                      ],
                      "example": "success"
                    },
                    "message": {
                      "type": "string",
                      "example": "Site updated successfully"
                    },
                    "result": {
                      "type": "object",
                      "required": [
                        "siteId"
                      ],
                      "properties": {
                        "siteId": {
                          "type": "string",
                          "format": "uuid",
                          "example": "02369949-cfc1-49a7-a2a7-d03afa9af84a"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error updating site",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "message",
                    "errors"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "error"
                      ],
                      "example": "error"
                    },
                    "message": {
                      "type": "string",
                      "example": "Error updating site"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "code",
                          "message"
                        ],
                        "properties": {
                          "code": {
                            "type": "string",
                            "example": "INVALID_REQUEST"
                          },
                          "message": {
                            "type": "string",
                            "example": "Invalid request parameters"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "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": []
    }
  ]
}
```