> For the complete documentation index, see [llms.txt](https://docs.truedat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.truedat.io/v8.8/api-integrations/data-quality-apis/quality-events.md).

# Quality Events

## Create quality event

> Creates a quality event for the specified execution.

```json
{"openapi":"3.0.0","info":{"title":"td-dq","version":"Truedat 8.8.2"},"paths":{"/api/executions/{execution_id}/quality_events":{"post":{"description":"Creates a quality event for the specified execution.","operationId":"TdDqWeb.QualityEventController.create","parameters":[{"description":"Execution ID","in":"path","name":"execution_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualityEventCreateRequest"}}},"description":"Quality event creation request","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualityEventCreateResponse"}}},"description":"Quality event response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdDqUnauthorizedResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdDqForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdDqNotFoundResponse"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdDqUnprocessableEntityResponse"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdDqInternalServerErrorResponse"}}},"description":"Internal Server Error"}},"summary":"Create quality event","tags":["Quality Events"]}}},"components":{"schemas":{"QualityEventCreateRequest":{"additionalProperties":false,"properties":{"quality_event":{"additionalProperties":false,"properties":{"message":{"description":"Optional message","nullable":true,"type":"string"},"type":{"description":"Event type (e.g., SUCCESS, ERROR)","type":"string"}},"required":["type"],"type":"object"}},"required":["quality_event"],"title":"QualityEventCreateRequest","type":"object"},"QualityEventCreateResponse":{"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/QualityEvent"}},"required":["data"],"title":"QualityEventCreateResponse","type":"object"},"QualityEvent":{"additionalProperties":false,"properties":{"execution_id":{"type":"integer"},"id":{"type":"integer"},"inserted_at":{"format":"date-time","type":"string"},"message":{"nullable":true,"type":"string"},"type":{"type":"string"}},"required":["id","inserted_at","execution_id","type"],"title":"QualityEvent","type":"object"},"TdDqUnauthorizedResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdDqUnauthorizedResponse","type":"object"},"TdDqForbiddenResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdDqForbiddenResponse","type":"object"},"TdDqNotFoundResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdDqNotFoundResponse","type":"object"},"TdDqUnprocessableEntityResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdDqUnprocessableEntityResponse","type":"object"},"TdDqInternalServerErrorResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdDqInternalServerErrorResponse","type":"object"}}}}
```
