Skip to main content
PUT
/
v1
/
workspace
/
website
/
{website_id}
/
settings
Update website settings
curl --request PUT \
  --url https://apidev.lindo.ai/v1/workspace/website/{website_id}/settings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "business_name": "My Business",
  "business_description": "A great business providing excellent services",
  "language": "en",
  "theme": {
    "primaryColor": "#007bff"
  },
  "robots": "User-agent: *\nAllow: /",
  "custom_code_header": "<script>console.log('header');</script>",
  "custom_code_footer": "<script>console.log('footer');</script>",
  "socials": {
    "twitter": "https://twitter.com/mybusiness"
  },
  "fonts": {
    "heading": "Roboto",
    "body": "Open Sans"
  }
}
EOF
{
  "success": true,
  "result": {
    "message": "Website settings updated successfully",
    "website_id": "website_abc123",
    "business_name": "My Business",
    "business_description": "A great business providing excellent services",
    "language": "en",
    "theme": {
      "primaryColor": "#007bff"
    },
    "robots": "User-agent: *\nAllow: /",
    "custom_code_header": "<script>console.log('header');</script>",
    "custom_code_footer": "<script>console.log('footer');</script>",
    "socials": {
      "twitter": "https://twitter.com/mybusiness"
    },
    "fonts": {
      "heading": "Roboto",
      "body": "Open Sans"
    }
  }
}

Authorizations

Authorization
string
header
required

Enter your API key (starts with lindo_sk_)

Path Parameters

website_id
string
required

Unique identifier of the website

Example:

"website_abc123"

Body

application/json
business_name
string

Business name for the website

Example:

"My Business"

business_description
string

Business description

Example:

"A great business providing excellent services"

language
string

Language of the website

Example:

"en"

theme
object

Theme configuration for the website

Example:
{ "primaryColor": "#007bff" }
robots
string

Robots.txt content for the website

Example:

"User-agent: *\nAllow: /"

custom_code_header
string

Custom code to inject in the header

Example:

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

Custom code to inject in the footer

Example:

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

socials
object

Social media links for the website

Example:
{
"twitter": "https://twitter.com/mybusiness"
}
fonts
object

Font configuration for the website

Example:
{ "heading": "Roboto", "body": "Open Sans" }

Response

Website settings updated successfully

success
enum<boolean>
required

Indicates the operation was successful

Available options:
true,
false
Example:

true

result
object
required