---
schema_version: "1"
id: 8b47118c58906b08e89e8f589eeb7fb70c6a7adefd2c3eace70bb63d622f28ae
title: Transforming a RAML OData v2 API to a CSDL OData v4 API
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/apikit/latest/apikit-odatav4-migrating-api.md
canonical_url: https://docs.mulesoft.com/apikit/latest/apikit-odatav4-migrating-api
source_site: docs.mulesoft.com
content_type: documentation
content_hash: cd17e9e5e17deff29fc2a3418ff1ba61efe86788d4e9b596f253cd3631716df8
description: MuleSoft Documentation Site
release: 4.x
latest: true
---
---
product: APIkit
version: 4.x
is-latest-version: true
---

# Transforming a RAML OData v2 API to a CSDL OData v4 API

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Migrate from APIkit for OData v2 to OData v4 by reusing your RAML entity model: Studio converts
`odata.raml` into `odata.csdl.xml` (Common Schema Definition Language) so you can scaffold OData v4
flows from the same types. The new file lands under the `api` folder next to your existing assets.

In Studio, right-click your `odata.raml` file and select **Mule** > **Generate CSDL file**.

![\*Generate CSDL file\* option highlighted in the Mule section when right-clicking the OData file in the Package Explorer](/mulesoft/current/en-us/apikit/latest/_images/generate-csdl-file.png)

APIkit generates an `odata.csdl.xml` file in the **api** folder.

![\*odata.csdl.xml\* new file highlighted in the \*api\* folder, in the \*Package Explorer\*, and the XML code of the \*odata.csdl.xml\* file after its transformation](/mulesoft/current/en-us/apikit/latest/_images/csdl-xml.png)
