Skip to main content
PATCH
/
v1
/
workspace
/
website
/
update
Update website information
curl --request PATCH \
  --url https://apidev.lindo.ai/v1/workspace/website/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "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
}
EOF
{
  "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
  }
}

Authorizations

Authorization
string
header
required

Enter your API key (starts with lindo_sk_)

Body

application/json
website_id
string
required

Unique identifier of the website to update

Example:

"website_abc123"

business_name
string | null

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

Example:

"My Business"

business_description
string | null

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

Example:

"A great business providing excellent services"

custom_code_header
string | null

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

Example:

"<script>console.log('header');</script>"

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

Example:

"<script>console.log('footer');</script>"

robots
string | null

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

Example:

"User-agent: *\nAllow: /"

language
string | null

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

Example:

"en"

activated
boolean

Whether the website is activated

Example:

true

Response

Website updated successfully

success
enum<boolean>
required

Indicates the operation was successful

Available options:
true,
false
Example:

true

result
object
required