RedRover Logo

Knowledge Base

Update Company Information

Replaces a knowledge document's content, saved as a new version. Earlier versions are kept.

PUT/knowledge-documents/{slug}
Scope: knowledge:writeAI Connector Tool: redrover_update_company_information

Send the version you read as expectedVersion. If someone saved a newer version since, the request fails with 409 instead of overwriting it: read the document again, merge, and save.

Headers

  • AuthorizationstringRequired

    Bearer followed by an rr_live_ API key or a connected app's access token. See Authentication.

  • X-Workspace-IdstringRequired

    The workspace to act on, from List Workspaces.

    UUID

Path Parameters

  • slugstringRequired

    The document. Available today: company-information.

Body

  • contentstringRequired

    The whole document, in Markdown. Replaces the current text

    1 to 200000 characters

  • expectedVersioninteger

    The version you read. The save is refused if a newer one exists

Response

200 The document after the save.

  • dataobjectRequired
    Show 6 Child Fields
    • slugstringRequired

      The document, like company-information

    • titlestringRequired

      The document's name

    • contentstringRequired

      The document text, in Markdown

    • versionintegerRequired

      The current version. 0 until the document is first saved

    • updatedAtstringRequired

      When it was last saved

      nullable

    • statusstringRequired

      unchanged when the content matched the current version, so no version was added

      one of saved, unchanged

Errors

Every error uses the error envelope.

  • 400content is empty or too long
  • 404The slug is not one of company-information
  • 409A newer version was saved after expectedVersion
  • 401The Authorization header is missing, or the key is invalid or revoked
  • 403The key lacks the endpoint's scope, or cannot reach the workspace
  • 429More than 120 requests in a minute. Wait for Retry-After seconds
  • 500Something went wrong on our side
curl -X PUT "https://app.tryredrover.com/api/public/v1/knowledge-documents/company-information" \
  -H "Authorization: Bearer $REDROVER_API_KEY" \
  -H "X-Workspace-Id: $REDROVER_WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "content": "# Acme Analytics\n\nProduct analytics for small SaaS teams. We help founders see which features drive retention...",
  "expectedVersion": 4
}'
200 Response
{
  "data": {
    "slug": "company-information",
    "title": "Company Information",
    "content": "# Acme Analytics\n\nProduct analytics for small SaaS teams. We help founders see which features drive retention...",
    "version": 5,
    "updatedAt": "2026-11-14T16:20:00Z",
    "status": "saved"
  }
}