Website Management

Update website information

Updates website details using PATCH semantics. Undefined fields are not modified, null values clear the field. Supports business_name, business_description, custom_code_header, custom_code_footer, robots, language, and activated fields.

patch/v1/workspace/website/update

Request

  • Base URL: https://api.lindo.ai
  • URL: https://api.lindo.ai/v1/workspace/website/update
  • Auth: HTTP bearer

Request body

website_idstring required

Unique identifier of the website to update

business_namestring nullable

Business name for the website. Set to null to clear.

business_descriptionstring nullable

Business description for the website. Set to null to clear.

custom_code_headerstring nullable

Custom code to inject in the header. Set to null to clear.

custom_code_footerstring nullable

Custom code to inject in the footer. Set to null to clear.

robotsstring nullable

Robots.txt content for the website. Set to null to clear.

languagestring nullable

Language code for the website (e.g., 'en', 'es'). Set to null to clear.

activatedboolean

Whether the website is activated

Example request

{
  "website_id": "website_abc123",
  "business_name": "My Business",
  "business_description": "A great business providing excellent services",
  "custom_code_header": "<script>console.log('header');</script>",
  "custom_code_footer": "<script>console.log('footer');</script>",
  "robots": "User-agent: *\nAllow: /",
  "language": "en",
  "activated": true
}

Response

Website updated successfully

successtrue required

Indicates the operation was successful

Example response

{
  "success": true,
  "result": {
    "message": "Website updated successfully",
    "website_id": "website_abc123",
    "business_name": "My Business",
    "business_description": "A great business providing excellent services",
    "custom_code_header": "<script>console.log('header');</script>",
    "custom_code_footer": "<script>console.log('footer');</script>",
    "robots": "User-agent: *\nAllow: /",
    "language": "en",
    "activated": true
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.