# Create Workset

This is sent as a POST call.

&#x20;

<figure><img src="/files/a0yfBNp11KvSjL7zvp9j" alt=""><figcaption><p>Create workset API</p></figcaption></figure>

&#x20;The body of the call to create a workset with two data views is shown below. Note that the ‘data views’ section of the entity portion of the body is an array and needs to follow JSON formatting rules for an entity.

&#x20;

```
{
    "context": {
        "user": "mbj_test",
        "password": "xxxx",
        "project": {
            "name": "imp_payments_demo",
            "version": "1.0"
        }
    },
    "entity": {
        "name": "api_workset",
        "scenario": {
            "name": "imp_make_payment",
            "version": "1.0"
        },
        "primary": {
            "view": {
                "name": "format_cov_view",
                "version": "1.0"
            },
            "dataSet": {
                "name": "api_demo_coverage",
                "version": "1.0.0"
            }
        },
        "dataViews": [
            {
              "view": {
                "name": "cust_data_view",
                "version": "1.0"
            },
            "dataSet": {
                "name": "imp_customers",
                "version": "1.0.0"
            }
            },
            {
              "view": {
                "name": "acts_view",
                "version": "1.0"
            },
            "dataSet": {
                "name": "imp_accounts",
                "version": "1.0.0"
            }            
            }            
        ]
    }
}
```

&#x20;

The return message shows the status of the call as well as the details of the workset that has been created.

&#x20;

<figure><img src="/files/5cEvAZE6UKIvIiMudV4k" alt=""><figcaption><p>Create workset return message (successful)</p></figcaption></figure>

&#x20;

The created workset can now be viewed in the worksets page of TDO.  When you enter edit mode for this workset you can see the workset details in this page match the parameters sent in the body of the call.

&#x20;

<figure><img src="/files/2z5h6FzVRuS8hp38HBlm" alt=""><figcaption><p>New workset shown in TDO</p></figcaption></figure>


---

# 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://docs.apica.io/platform-docs/test-data-orchestrator-tdo/user-documentation/api-guide/workset-apis/create-workset.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.
