> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mileapp.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Source

> The Data source could help you simplify the process of filling in task information based on existing...

## What is Data Source?

The Data source could help you simplify the process of filling in task information based on existing data at MileApp. This data could consist of information such as name, number, date, coordinate, and multiple options. The Data typically represents entities such as customers, products, employees, suppliers, or any other critical data elements that are used across the application.

**To see the details of data source object, please follow [this link](/api-reference/objects/data-source-object)**

## Key Features

<CardGroup cols={2}>
  <Card title="Read data source" icon="list" href="/api-reference/data/data-source/read-data-source">
    GET /data
  </Card>

  <Card title="Create data source" icon="plus" href="/api-reference/data/data-source/create-data-source">
    POST /data
  </Card>

  <Card title="Read data source by ID" icon="list" href="/api-reference/data/data-source/read-data-source-by-id">
    GET /data/{dataId}
  </Card>

  <Card title="Read data source by dataTypeName and dataId" icon="list" href="/api-reference/data/data-source/read-data-source-by-datatypename-and-dataid">
    GET /data/type/{dataTypeName}/{dataId}
  </Card>
</CardGroup>

## Field Accessibility

If the requesting user's role has field accessibility configured (via `permissionDetails` with `permissionName: view/data`), certain data source fields may be restricted based on the data type.

* **GET endpoints without `fields` parameter**: Hidden fields are automatically excluded from the response.
* **GET endpoints with `fields` parameter**: If a requested field is restricted, the API returns a `403 Forbidden` error listing the restricted field names.
* **POST/PUT/PATCH endpoints**: Write operations are not affected.

Field accessibility is configured per role in the [Permission Settings](/pages/setting/role-and-permission-management/field-accessibility). Refer to the [Role API](/api-reference/setting/role-overview) for details on `permissionDetails`.

## Related Resources

* [Data Source Object](/api-reference/objects/data-source-object) - Data Source data structure
