---
title: "Assign website to client"
method: POST
path: "/v1/workspace/website/assign"
tags: ["Website Management"]
---

# Assign website to client

`POST /v1/workspace/website/assign`

## Request

- Base URL: `https://api.lindo.ai`
- URL: `https://api.lindo.ai/v1/workspace/website/assign`
- Auth: HTTP bearer

Assigns a website to a client

## Request body

- WebsiteAssignRequest
  - `website_id` string, required: Unique identifier of the website to assign
  - `client_id` string, required: Unique identifier of the client to assign the website to

## Response `200`

Website assigned to client successfully

- WebsiteAssignResponse
  - `success` true, required: Indicates the operation was successful
  - `result` WebsiteAssignResult, required
    - `message` string, required: Success message
    - `website_id` string, required: Unique identifier of the assigned website
    - `client_id` string, required: Unique identifier of the client

## Other responses

- `400`: Bad request - website or client not found in workspace
- `401`: Unauthorized - invalid or missing API key

---

[API](https://skmtc.dev/lindo/apis/lindo-unified-api.md) · [All operations](https://skmtc.dev/lindo/apis/lindo-unified-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lindo/apis/lindo-unified-api/revisions/2672f34525a4?raw)
