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

# Update comment

Use this API to update a feed comment via B2B integration

# 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"
    }
  ],
  "servers": [
    {
      "url": "https://{endpoint}/v1",
      "variables": {
        "env": {
          "default": "app"
        },
        "endpoint": {
          "default": "platform.app.simpplr.com"
        }
      }
    }
  ],
  "paths": {
    "/b2b/wfeed/feeds": {
      "post": {
        "operationId": "createFeedB2b",
        "tags": [
          "Feed"
        ],
        "summary": "Create a new feed",
        "description": "This API allows us to create a new feed",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "textHtml": {
                    "type": "string",
                    "description": "The HTML content of the feed item"
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "public",
                      "site",
                      "accessible_audience",
                      "site_target_audience",
                      "site_members",
                      "content"
                    ],
                    "description": "The scope of the feed item.\nNon-ABAC scopes: public, site\nABAC scopes: accessible_audience (like public scope in ABAC), site_target_audience (when site is public in ABAC), site_members (only for private site), content (for content feed post in ABAC scenarios)\n"
                  },
                  "siteId": {
                    "type": "string",
                    "format": "uuid",
                    "nullable": true,
                    "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                    "description": "The ID of the site (required when scope is 'site', null for public scope)"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "post",
                      "question"
                    ],
                    "description": "The type of feed item"
                  },
                  "title": {
                    "type": "string",
                    "nullable": true,
                    "maxLength": 255,
                    "description": "The title of the feed item (required when type is 'question')"
                  },
                  "listOfAttachedFiles": {
                    "type": "array",
                    "items": {
                      "title": "Files",
                      "type": "object",
                      "description": "File object with provider-specific properties",
                      "properties": {
                        "fileId": {
                          "type": "string",
                          "description": "File identifier"
                        },
                        "provider": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string",
                          "nullable": true,
                          "description": "File name"
                        },
                        "type": {
                          "type": "string",
                          "nullable": true,
                          "description": "File type/MIME type"
                        },
                        "size": {
                          "type": "integer",
                          "minimum": 0,
                          "nullable": true,
                          "description": "File size in bytes"
                        },
                        "thumbnail": {
                          "type": "string",
                          "nullable": true,
                          "description": "Thumbnail URL"
                        }
                      },
                      "required": [
                        "fileId",
                        "provider"
                      ],
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "type": "object",
                              "title": "Intranet File",
                              "description": "File stored in intranet with UUID fileId",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "intranet"
                                  ]
                                },
                                "fileId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "name": {
                                  "type": "string",
                                  "nullable": true,
                                  "description": "File name"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "nullable": true,
                                  "description": "File size in bytes"
                                },
                                "type": {
                                  "type": "string",
                                  "nullable": true,
                                  "description": "File type/MIME type"
                                },
                                "thumbnail": {
                                  "type": "string",
                                  "nullable": true,
                                  "description": "Thumbnail URL"
                                }
                              },
                              "required": [
                                "provider",
                                "fileId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "title": "Google Drive File",
                              "description": "File stored in Google Drive with required metadata",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "googledrive"
                                  ]
                                },
                                "fileId": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "type": {
                                  "type": "string",
                                  "nullable": true
                                },
                                "thumbnail": {
                                  "type": "string",
                                  "nullable": true,
                                  "description": "Thumbnail URL"
                                }
                              },
                              "required": [
                                "provider",
                                "fileId",
                                "name",
                                "size",
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "title": "Box File",
                              "description": "File stored in Box with required metadata",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "box"
                                  ]
                                },
                                "fileId": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "type": {
                                  "type": "string",
                                  "nullable": true
                                },
                                "thumbnail": {
                                  "type": "string",
                                  "nullable": true,
                                  "description": "Thumbnail URL"
                                }
                              },
                              "required": [
                                "provider",
                                "fileId",
                                "name",
                                "size",
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "title": "OneDrive File",
                              "description": "File stored in OneDrive with required metadata",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "onedrive"
                                  ]
                                },
                                "fileId": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "type": {
                                  "type": "string",
                                  "nullable": true
                                },
                                "thumbnail": {
                                  "type": "string",
                                  "nullable": true,
                                  "description": "Thumbnail URL"
                                }
                              },
                              "required": [
                                "provider",
                                "fileId",
                                "name",
                                "size",
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "title": "SharePoint File",
                              "description": "File stored in SharePoint with required metadata",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "sharepoint"
                                  ]
                                },
                                "fileId": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "type": {
                                  "type": "string",
                                  "nullable": true
                                },
                                "thumbnail": {
                                  "type": "string",
                                  "nullable": true,
                                  "description": "Thumbnail URL"
                                }
                              },
                              "required": [
                                "provider",
                                "fileId",
                                "name",
                                "size",
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "title": "Dropbox File",
                              "description": "File stored in Dropbox with required metadata",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "dropbox"
                                  ]
                                },
                                "fileId": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "type": {
                                  "type": "string",
                                  "nullable": true
                                },
                                "thumbnail": {
                                  "type": "string",
                                  "nullable": true,
                                  "description": "Thumbnail URL"
                                }
                              },
                              "required": [
                                "provider",
                                "fileId",
                                "name",
                                "size",
                                "type"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      ]
                    },
                    "default": [],
                    "description": "Array of attached files"
                  },
                  "createdBy": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the user creating the feed (B2B specific field)"
                  },
                  "contentId": {
                    "type": "string",
                    "format": "uuid",
                    "nullable": true,
                    "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                    "description": "The ID of the content (required for content feed posts)"
                  }
                },
                "oneOf": [
                  {
                    "description": "Public post (siteId: null)",
                    "properties": {
                      "textHtml": {
                        "type": "string",
                        "description": "The HTML content of the feed item"
                      },
                      "scope": {
                        "type": "string",
                        "enum": [
                          "public"
                        ],
                        "description": "The scope of the feed item - public"
                      },
                      "siteId": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": true,
                        "example": null,
                        "description": "The ID of the site (null for public scope)"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "post"
                        ],
                        "description": "The type of feed item"
                      },
                      "title": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255,
                        "description": "The title of the feed item (optional for posts)"
                      },
                      "listOfAttachedFiles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/paths/~1b2b~1wfeed~1feeds/post/requestBody/content/application~1json/schema/properties/listOfAttachedFiles/items"
                        },
                        "default": [],
                        "description": "Array of attached files"
                      },
                      "createdBy": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID of the user creating the feed (B2B specific field)"
                      }
                    },
                    "required": [
                      "textHtml",
                      "scope",
                      "type",
                      "createdBy"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "description": "Public question (siteId: null, title required)",
                    "properties": {
                      "textHtml": {
                        "type": "string",
                        "description": "The HTML content of the feed item"
                      },
                      "scope": {
                        "type": "string",
                        "enum": [
                          "public"
                        ],
                        "description": "The scope of the feed item - public"
                      },
                      "siteId": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": true,
                        "example": null,
                        "description": "The ID of the site (null for public scope)"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "question"
                        ],
                        "description": "The type of feed item"
                      },
                      "title": {
                        "type": "string",
                        "nullable": false,
                        "maxLength": 255,
                        "description": "The title of the feed item (required for questions)"
                      },
                      "listOfAttachedFiles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/paths/~1b2b~1wfeed~1feeds/post/requestBody/content/application~1json/schema/properties/listOfAttachedFiles/items"
                        },
                        "default": [],
                        "description": "Array of attached files"
                      },
                      "createdBy": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID of the user creating the feed (B2B specific field)"
                      }
                    },
                    "required": [
                      "textHtml",
                      "scope",
                      "type",
                      "title",
                      "createdBy"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "description": "Site post (siteId required)",
                    "properties": {
                      "textHtml": {
                        "type": "string",
                        "description": "The HTML content of the feed item"
                      },
                      "scope": {
                        "type": "string",
                        "enum": [
                          "site"
                        ],
                        "description": "The scope of the feed item - site-specific"
                      },
                      "siteId": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": false,
                        "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "description": "The ID of the site (required for site scope)"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "post"
                        ],
                        "description": "The type of feed item"
                      },
                      "title": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255,
                        "description": "The title of the feed item (optional for posts)"
                      },
                      "listOfAttachedFiles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/paths/~1b2b~1wfeed~1feeds/post/requestBody/content/application~1json/schema/properties/listOfAttachedFiles/items"
                        },
                        "default": [],
                        "description": "Array of attached files"
                      },
                      "createdBy": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID of the user creating the feed (B2B specific field)"
                      }
                    },
                    "required": [
                      "textHtml",
                      "scope",
                      "siteId",
                      "type",
                      "createdBy"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "description": "Site question (siteId and title required)",
                    "properties": {
                      "textHtml": {
                        "type": "string",
                        "description": "The HTML content of the feed item"
                      },
                      "scope": {
                        "type": "string",
                        "enum": [
                          "site"
                        ],
                        "description": "The scope of the feed item - site-specific"
                      },
                      "siteId": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": false,
                        "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "description": "The ID of the site (required for site scope)"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "question"
                        ],
                        "description": "The type of feed item"
                      },
                      "title": {
                        "type": "string",
                        "nullable": false,
                        "maxLength": 255,
                        "description": "The title of the feed item (required for questions)"
                      },
                      "listOfAttachedFiles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/paths/~1b2b~1wfeed~1feeds/post/requestBody/content/application~1json/schema/properties/listOfAttachedFiles/items"
                        },
                        "default": [],
                        "description": "Array of attached files"
                      },
                      "createdBy": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID of the user creating the feed (B2B specific field)"
                      }
                    },
                    "required": [
                      "textHtml",
                      "scope",
                      "siteId",
                      "type",
                      "title",
                      "createdBy"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "description": "ABAC accessible audience post (siteId: null)",
                    "properties": {
                      "textHtml": {
                        "type": "string",
                        "description": "The HTML content of the feed item"
                      },
                      "scope": {
                        "type": "string",
                        "enum": [
                          "accessible_audience"
                        ],
                        "description": "The scope of the feed item - accessible_audience (ABAC, like public scope)"
                      },
                      "siteId": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": true,
                        "example": null,
                        "description": "The ID of the site (null for accessible_audience scope in ABAC)"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "post"
                        ],
                        "description": "The type of feed item"
                      },
                      "title": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255,
                        "description": "The title of the feed item (optional for posts)"
                      },
                      "listOfAttachedFiles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/paths/~1b2b~1wfeed~1feeds/post/requestBody/content/application~1json/schema/properties/listOfAttachedFiles/items"
                        },
                        "default": [],
                        "description": "Array of attached files"
                      },
                      "createdBy": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID of the user creating the feed (B2B specific field)"
                      }
                    },
                    "required": [
                      "textHtml",
                      "scope",
                      "type",
                      "createdBy"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "description": "ABAC site target audience post (siteId required)",
                    "properties": {
                      "textHtml": {
                        "type": "string",
                        "description": "The HTML content of the feed item"
                      },
                      "scope": {
                        "type": "string",
                        "enum": [
                          "site_target_audience"
                        ],
                        "description": "The scope of the feed item - site_target_audience (ABAC, when site is public)"
                      },
                      "siteId": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": false,
                        "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "description": "The ID of the site (required for site_target_audience scope in ABAC)"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "post"
                        ],
                        "description": "The type of feed item"
                      },
                      "title": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255,
                        "description": "The title of the feed item (optional for posts, required for questions)"
                      },
                      "listOfAttachedFiles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/paths/~1b2b~1wfeed~1feeds/post/requestBody/content/application~1json/schema/properties/listOfAttachedFiles/items"
                        },
                        "default": [],
                        "description": "Array of attached files"
                      },
                      "createdBy": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID of the user creating the feed (B2B specific field)"
                      }
                    },
                    "required": [
                      "textHtml",
                      "scope",
                      "siteId",
                      "type",
                      "createdBy"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "description": "ABAC site members post (siteId required, private sites only)",
                    "properties": {
                      "textHtml": {
                        "type": "string",
                        "description": "The HTML content of the feed item"
                      },
                      "scope": {
                        "type": "string",
                        "enum": [
                          "site_members"
                        ],
                        "description": "The scope of the feed item - site_members (ABAC, only for private site)"
                      },
                      "siteId": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": false,
                        "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "description": "The ID of the site (required for site_members scope in ABAC, only for private site)"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "post"
                        ],
                        "description": "The type of feed item"
                      },
                      "title": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255,
                        "description": "The title of the feed item (optional for posts, required for questions)"
                      },
                      "listOfAttachedFiles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/paths/~1b2b~1wfeed~1feeds/post/requestBody/content/application~1json/schema/properties/listOfAttachedFiles/items"
                        },
                        "default": [],
                        "description": "Array of attached files"
                      },
                      "createdBy": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID of the user creating the feed (B2B specific field)"
                      }
                    },
                    "required": [
                      "textHtml",
                      "scope",
                      "siteId",
                      "type",
                      "createdBy"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "description": "Content feed post (siteId and contentId required)",
                    "properties": {
                      "textHtml": {
                        "type": "string",
                        "description": "The HTML content of the feed item"
                      },
                      "scope": {
                        "type": "string",
                        "enum": [
                          "site"
                        ],
                        "description": "The scope of the feed item - site-specific"
                      },
                      "siteId": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": false,
                        "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "description": "The ID of the site (required for site scope)"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "post"
                        ],
                        "description": "The type of feed item"
                      },
                      "title": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255,
                        "description": "The title of the feed item (optional for posts)"
                      },
                      "listOfAttachedFiles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/paths/~1b2b~1wfeed~1feeds/post/requestBody/content/application~1json/schema/properties/listOfAttachedFiles/items"
                        },
                        "default": [],
                        "description": "Array of attached files"
                      },
                      "createdBy": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID of the user creating the feed (B2B specific field)"
                      },
                      "contentId": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": false,
                        "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "description": "The ID of the content (required for content feed posts)"
                      }
                    },
                    "required": [
                      "textHtml",
                      "scope",
                      "siteId",
                      "type",
                      "contentId",
                      "createdBy"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "description": "ABAC content feed post (siteId and contentId required)",
                    "properties": {
                      "textHtml": {
                        "type": "string",
                        "description": "The HTML content of the feed item"
                      },
                      "scope": {
                        "type": "string",
                        "enum": [
                          "content"
                        ],
                        "description": "The scope of the feed item - content (ABAC, for content feed post)"
                      },
                      "siteId": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": false,
                        "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "description": "The ID of the site (required for content scope in ABAC)"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "post"
                        ],
                        "description": "The type of feed item"
                      },
                      "title": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255,
                        "description": "The title of the feed item (optional for posts, required for questions)"
                      },
                      "listOfAttachedFiles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/paths/~1b2b~1wfeed~1feeds/post/requestBody/content/application~1json/schema/properties/listOfAttachedFiles/items"
                        },
                        "default": [],
                        "description": "Array of attached files"
                      },
                      "createdBy": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID of the user creating the feed (B2B specific field)"
                      },
                      "contentId": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": false,
                        "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "description": "The ID of the content (required for content feed posts)"
                      }
                    },
                    "required": [
                      "textHtml",
                      "scope",
                      "siteId",
                      "type",
                      "contentId",
                      "createdBy"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response for B2B feed creation",
            "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 newly created feed",
                      "properties": {
                        "feedId": {
                          "type": "string",
                          "example": "49502e9f-a6e6-4773-a0b4-64be9388b7b1",
                          "description": "Unique identifier of the newly created feed"
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "example": "Feed created successfully",
                      "description": "Descriptive message about the operation result"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error response for B2B feed creation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error",
                      "description": "Response status",
                      "enum": [
                        "success",
                        "error"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "example": "Failed to create feed",
                      "description": "Descriptive error message about the operation failure"
                    },
                    "errors": {
                      "type": "array",
                      "description": "List of validation or processing errors",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "example": "textHtml",
                            "description": "Field that caused the error"
                          },
                          "message": {
                            "type": "string",
                            "example": "textHtml is required",
                            "description": "Error message for the specific field"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "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"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/b2b/wfeed/feeds/{feedId}/comments/{commentId}": {
      "put": {
        "operationId": "updateCommentB2B",
        "tags": [
          "Feed"
        ],
        "summary": "Update comment",
        "description": "Use this API to update a feed comment via B2B integration",
        "parameters": [
          {
            "name": "feedId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "ff411eea-55b7-41ac-87d8-572f80fdf79a"
            },
            "description": "The ID of the feed containing the comment"
          },
          {
            "name": "commentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "550e8400-e29b-41d4-a716-446655440000"
            },
            "description": "The ID of the comment to update or delete"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "textHtml": {
                    "type": "string",
                    "example": "<p>Updated B2B comment content</p>",
                    "description": "Updated HTML content of the comment"
                  },
                  "modifiedBy": {
                    "type": "string",
                    "format": "uuid",
                    "example": "e5149282-2b89-4588-8b70-590ea3218e83",
                    "description": "ID of the user modifying the comment"
                  },
                  "listOfAttachedFiles": {
                    "type": "array",
                    "items": {
                      "$ref": "#/paths/~1b2b~1wfeed~1feeds/post/requestBody/content/application~1json/schema/properties/listOfAttachedFiles/items"
                    },
                    "default": [],
                    "description": "Array of attached files"
                  }
                },
                "required": [
                  "textHtml",
                  "modifiedBy"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "SUCCESS"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "commentId": {
                          "type": "string",
                          "example": "44fa7711-407a-4305-9dff-a01660068238"
                        },
                        "feedId": {
                          "type": "string",
                          "example": "ff411eea-55b7-41ac-87d8-572f80fdf79a"
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "example": "Comment updated successfully."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error",
                      "description": "Response status",
                      "enum": [
                        "success",
                        "error"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "example": "Failed to update comment",
                      "description": "Descriptive error message about the operation failure"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "example": "INVALID_INPUT",
                            "description": "Error code for invalid input"
                          },
                          "message": {
                            "type": "string",
                            "example": "The input provided is invalid.",
                            "description": "Error message for invalid input"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/403"
          }
        }
      }
    }
  },
  "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": []
    }
  ]
}
```