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 = “{}" resource_group_name = "{}”
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?