---
title: "Upsert Lyro data source"
method: PUT
path: "/lyro/data-sources/website"
tags: ["Lyro"]
---

# Upsert Lyro data source

`PUT /lyro/data-sources/website`

This API endpoint allows you to upload or update a data source for the Lyro AI Agent.
Data sources provide knowledge that Lyro uses to answer customer questions.

If a data source with the same URL already exists, it will be updated with the new content and title.
Otherwise, a new data source will be created.

The content should be provided as HTML and will be processed by the Lyro AI Agent.

## Response `201`

Entity was created and their id is returned

## Other responses

- `409` — URL conflict only during concurrent requests
- `422` — Validation error

---

[API](https://skmtc.dev/tidio/apis/tidio-openapi.md) · [All operations](https://skmtc.dev/tidio/apis/tidio-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tidio/tidio-openapi/revisions/60b2d5edc91f/schema)
