# Enable or disable a website

> Turns a website on or off for this line without losing its crawled content. ACTIVE on a website of the team's library that this line does not use yet adds it…

`PATCH /v2/api/numbers/{number}/agent/knowledge/websites/{id}`

<Note>
**Required scope:** `AGENTS_WRITE`
</Note>

## Behavior

Turns a website on or off for this line. `DISABLED` stops this line's receptionist answering from it and keeps the website and its crawled text, so you can put it back with `ACTIVE` without crawling it again. Other lines of your team are not affected.

Sending `ACTIVE` for a website of your team's library that this line does not use yet adds it to this line.

The `{id}` path parameter is a website id from [Get configuration](/docs/agent/get-agent), under `knowledge.websites`. Ids from before the move to knowledge libraries are no longer valid: read them again from Get configuration.

## Errors

- `404 AGENT_KNOWLEDGE_NOT_FOUND`: no website with that id in your team's library. A file id sent here answers the same way.
- `404 PHONE_NUMBER_NOT_FOUND`: the number is not one you have access to.
