Azure APIM Create New definitions in schema

It´s not quite clear according to Terraform Modules documentation, how to create new definitions and Headers for an Azure API operation.

I know that I need to create a representation first? which points to a schema:

resource “azurerm_api_management_api_schema” “schema” {
api_name = “{azurerm_api_management_api.api.name}" resource_group_name = "{data.azurerm_resource_group.rg.name}”
api_management_name = “{azurerm_api_management.api_management.name}" schema_id = "foo" content_type = "application/json" value = "{file(”${path.module}/schemas/cdm.json")}"
}

resource “azurerm_api_management_api_operation” “post_new_profile” {
representation = [{
content_type = “application/json”
type_name = “cdm”
schema_id = “foo”
}]
}

but how would be an example of a schema that include the definitions and headers and how should I be calling it from operations module?

HI! Did you find any solution to creating schema definition?