# Generate Coverage Matrix

This call generates the coverage matrix from the business rules. &#x20;

{% hint style="warning" %}
If you do not have any business rules set, this call will not return any data.
{% endhint %}

This is sent as a POST call.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FvicCpvbmx2QN5DHMJ0wr%2Fimage.png?alt=media&#x26;token=b9f3f284-d085-4b85-8f94-668c9c7b56d1" alt=""><figcaption><p>Generate Coverage Matrix API call</p></figcaption></figure>

The body of the call is simple; it contains the user credentials, project, and coverage set information.

```postman_json
{
	"context": {
		"user": "user_id",
		"password": "xxxx",
		"project": {
			"name": "imp_payments_demo",
			"version": "1.0"
		},
		"coverage" : {
		  "name": "api_demo_coverage",
		  "version": "1.9"
		}
	}
}
```

The results of this call will display information on the generated coverage matrix.  The body contains information on each row generated as part of the coverage matrix.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FYTWMToqcAbCeRqGCTPVA%2Fimage.png?alt=media&#x26;token=59857582-dfb5-4d23-a57b-a3c9e569270b" alt=""><figcaption><p>Coverage generation return messagel</p></figcaption></figure>

In TDO, the generate coverage matrix can be viewed from the Coverage Matrix section of the menu.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2Fwnse7hIvgcdGyBA9ZjYQ%2Fimage.png?alt=media&#x26;token=88412b9c-6a42-4270-bbc4-e8c080228fc5" alt=""><figcaption><p>Generated coverage matrix</p></figcaption></figure>
