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

# Update site

This API allows us to update an existing site

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "version": "1.0.0",
    "title": "Simpplr B2B API Documentation",
    "description": "API documentation for Simpplr B2B integration services",
    "contact": {
      "name": "Simpplr Support"
    }
  },
  "x-proxy-enabled": true,
  "tags": [
    {
      "name": "Feed",
      "description": "Everything about Feed"
    },
    {
      "name": "Sites",
      "description": "Everything about Sites"
    }
  ],
  "servers": [
    {
      "url": "https://{endpoint}/v1",
      "variables": {
        "env": {
          "default": "app"
        },
        "endpoint": {
          "default": "platform.app.simpplr.com"
        }
      }
    }
  ],
  "paths": {
    "/b2b/content/sites/{siteId}": {
      "put": {
        "summary": "Update site",
        "operationId": "updateSiteB2b",
        "tags": [
          "Sites"
        ],
        "description": "This API allows us to update an existing site",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "eb4a3545-05f7-46e8-b17d-107339b6aae6"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "description",
                  "category",
                  "access",
                  "isBroadcast",
                  "hasPages",
                  "hasEvents",
                  "hasAlbums",
                  "landingPage",
                  "isContentSubmissionsEnabled",
                  "isContentFeedEnabled",
                  "isContentUnfurlEnabled",
                  "modifiedBy"
                ],
                "properties": {
                  "modifiedBy": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the user updating the site",
                    "example": "02369949-cfc1-49a7-a2a7-d03afa9af84a"
                  },
                  "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",
                    "description": "List of target audiences",
                    "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
                    }
                  },
                  "subscription": {
                    "type": "array",
                    "description": "List of subscription configurations",
                    "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
                    }
                  },
                  "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": "#/paths/~1b2b~1rfeed~1feeds/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/403"
          }
        }
      }
    },
    "/b2b/rfeed/feeds": {
      "get": {
        "operationId": "getFeedsUser",
        "tags": [
          "Feed"
        ],
        "summary": "Get feeds",
        "description": "This API allows you to retrieve all feeds",
        "parameters": [
          {
            "name": "nextPageToken",
            "in": "query",
            "required": true,
            "description": "Token for pagination. \n- For initial request, send empty string \"\"\n- For subsequent requests, use the nextPageToken returned as integer from previous response\n",
            "schema": {
              "type": "string",
              "example": "1759911721822"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": true,
            "description": "The number of feeds to return per page",
            "schema": {
              "type": "string",
              "example": "16"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "createdAt",
                "lastActivityAt"
              ],
              "default": "createdAt"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all"
              ],
              "default": "all"
            },
            "description": "The filter to apply to the feeds"
          },
          {
            "name": "feedContext",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "home",
                "site",
                "content"
              ],
              "default": "home"
            },
            "description": "The context of the feeds. \n- When set to \"site\", siteId parameter is required\n- When set to \"content\", both siteId and contentId parameters are required\n"
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "post",
                "question"
              ],
              "example": "post",
              "description": "The type of feed to return"
            }
          },
          {
            "name": "siteId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
            },
            "description": "The ID of the site. \nRequired when feedContext is \"site\" or \"content\"\n"
          },
          {
            "name": "contentId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
            },
            "description": "The ID of the content.\nRequired when feedContext is \"content\"\n"
          },
          {
            "name": "feedIds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "97576a5d-4362-40cb-b8ac-5418b64bf84f,6d54cb3d-da29-461b-8019-3dfb8aa8afe2"
            },
            "description": "The IDs of the feeds to return (send comma-separated list of feed IDs without spaces)"
          },
          {
            "name": "exemptFeedIds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "97576a5d-4362-40cb-b8ac-5418b64bf84f,6d54cb3d-da29-461b-8019-3dfb8aa8afe2"
            },
            "description": "The IDs of the feeds to exempt from the search (send comma-separated list of feed IDs without spaces)"
          },
          {
            "name": "isSearchForMarkDuplicate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "example": false
            },
            "description": "Whether to search for mark duplicate feeds(questions)"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "nextPageToken": {
                          "type": "integer",
                          "example": 1759911721822
                        },
                        "size": {
                          "type": "integer",
                          "example": 10
                        },
                        "total": {
                          "type": "integer",
                          "example": 11
                        },
                        "listOfItems": {
                          "type": "array",
                          "items": {
                            "$ref": "#/paths/~1b2b~1rfeed~1feeds~1{feedId}/get/responses/200/content/application~1json/schema/properties/result"
                          }
                        },
                        "sortBy": {
                          "type": "string",
                          "example": "lastActivityAt"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error"
                    },
                    "message": {
                      "type": "string",
                      "example": "Failed to get feeds"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "example": "INVALID_INPUT"
                          },
                          "message": {
                            "type": "string",
                            "example": "An error occurred while processing the request"
                          },
                          "cause": {
                            "type": "string",
                            "example": "size is required"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authorize error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Missing/Invalid authentication token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "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"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2ClientCredentials": {
        "type": "oauth2",
        "description": "This API uses OAuth 2 with the implicit grant flow.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://platform.{env}.simpplr.xyz/v1/identity/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "OAuth2ClientCredentials": []
    }
  ]
}
```