# Demo Data Service

All services related to Demo Data are listed in this page.

### `POST` Load Data

This service is used to load demo data into OMS. When you run this service, it will execute a Django command to load fixture data to OMS.

**Path:** `/api/v1/oms/demo/load-data/`

**Example Request**

To run this service, a `POST` request should be sent to the `/api/v1/oms/demo/load-data/` endpoint. No payload is required. In the headers, set the `Authorization` header to include the token for authentication.

Here's an example of how to make the request in python:

```python
import requests
import json
url = "https://{domain_url}/api/v1/oms/demo/load-data/"
token = "11111XXXXXXXXXXXXXXXXX201XXXXX9332d"

headers = {
    'Content-Type': 'application/json',
    'Authorization': f'Token {token}'
}

response = requests.request('POST', url, headers=headers)
print(response.json())
```

**Example Response (200 OK)**

This service returns a successful response with a status code of `200 OK`. The response body does not contain any objects or messages.

**Example Response (401 Unauthorized)**

If the authorization token is missing or incorrect in the request headers, the service will return a response with status code of `401 Unauthorized`. The response body does not contain any objects or messages.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidocs.akinon.com/oms/demo-data-service.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
