{"openapi":"3.0.0","servers":[{"url":"https://api.production.balance.network"}],"info":{"title":"Balance API","description":"# Introduction\n\nThe Apio Balance API is based on HTTP and [REST](https://en.wikipedia.org/wiki/Representational_state_transfer), it exposes resource-oriented URLs, accepts [JSON-encoded](https://www.json.org/json-en.html) bodies (with a few documented exceptions), returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs, such as `POST`, `GET` and `PUT`.\n\nThis means you can use any HTTP/REST client or library to interact with it, as long as you provide the correct parameters described in this documentation.\n\n# Authentication\n\nMost of the functionalities requires authentication, which comes in two forms:\n\n- **Bearer Tokens**: Users can provide their credentials at the [authenticate endpoint](/api#tag/Accounts/operation/authenticateAccount) and, if those credentials are correct, the API will provide in return a bearer token which can be used to authenticate further requests.\n- **API Keys**: applications and devices can provide API Keys created by users.\n- **Access Tokens**: user-scoped credential to be used with application. See api keys for usage .\n\n### Bearer Token\n\nOnce an authentication token was obtained by the [authenticate endpoint](/api#tag/Accounts/operation/authenticateAccount), the token can be used to authenticate subsequent requests.\n\nThe token must be provided in the Authorization header using the following syntax and replacing `<mytoken>` with the actual token.\n\n```http\nAuthorization: bearer <token>\n```\n\n### API Key\n\nAPI Keys can be created using the [API Key endpoint](/api#tag/API-Keys/operation/createAPIKey), remember that the value of the apikey is showed to you only in the response of this endpoint, after that you have no way to retrieve it, since we do not store its value in clear.\n\nThe API key must be provided in the Authorization header using the following syntax and replacing `<mykey>` with the actual api key.\n\n```http\nAuthorization: apikey <mykey>\n```\n\n# Errors\nErrors are reported using conventional HTTP status codes, hence any response with a HTTP status in the `4xx` or `5xx` range is an error response, while responses in the `2xx` range indicate success.\n\nError responses also include a response body with the following form:\n\n```json\n{\n  \"status\":false,\n  \"error\":{\n    \"name\":\"Unauthorized\",\n    \"statusCode\":401,\n    \"message\":\"Missing authorization header.\",\n    \"type\":\"Unauthorized\"\n  }\n}\n```\n\nSome errors might provide additional context in the form of a `code` attribute, in the `error` struct.\n\n# Pagination\n\nAll API resources have methods for fetching lists of items, for example you can list devices, list plants and so on. All these endpoints allow to paginate the results by using two parameters: `skip` and `limit`.\n\n`limit` is used to set the number of items that should be returned in the response, while `skip` tells the API how many items should be skipped in the result set.\n\nFor example, passing `skip=20` and `limit=20` returns the items from number 21 to 40 in the collection (depending on the chosen sorting).\n\n# Sorting\n\nAs for pagination parameters, all list methods support sorting by arbitrary attributes.\n\nThe `sortby` parameter tells the api which field should be used for sorting, while `sortorder` can have only two possible values: `ASC` for ascending sorting and `DESC` for descending sorting.\n\n# Request IDs\n\nEach API response has a request identifier. This identifier can be found in the response headers under the header `X-Request-Id`. This can be useful when contacting support for easier issue identification.","version":"1.5.0"},"components":{"securitySchemes":{"apiKey":{"type":"apiKey","name":"apiKey","in":"header"},"bearer":{"type":"apiKey","name":"bearer","in":"header"}},"schemas":{}},"paths":{"/v1/projects/{projectId}/flexibleAssets":{"get":{"tags":["flexibleAssets"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"status":{"description":"Status of the resource","anyOf":[{"type":"string","enum":["active"]},{"type":"string","enum":["pending"]},{"type":"string","enum":["development"]},{"type":"string","enum":["suspended"]},{"type":"string","enum":["removed"]}]},"type":{"default":"demandSideResponse:residential","anyOf":[{"type":"string","enum":["storage:battery"]},{"type":"string","enum":["storage:fuelCell"]},{"type":"string","enum":["storage:liquidAir"]},{"type":"string","enum":["storage:compressedAir"]},{"type":"string","enum":["storage:pumpedHydro"]},{"type":"string","enum":["storage:vehicleToGrid"]},{"type":"string","enum":["storage:batteryWithGeneration"]},{"type":"string","enum":["demandSideResponse:evCharging"]},{"type":"string","enum":["demandSideResponse:residential"]},{"type":"string","enum":["demandSideResponse:commercial"]},{"type":"string","enum":["demandSideResponse:industrial"]},{"type":"string","enum":["programmableGeneration:ccgt"]},{"type":"string","enum":["programmableGeneration:fossilChp"]},{"type":"string","enum":["programmableGeneration:gasReciprocatingEngine"]},{"type":"string","enum":["programmableGeneration:ocgt"]},{"type":"string","enum":["programmableGeneration:dieselEngine"]},{"type":"string","enum":["programmableGeneration:fossilBoiler"]},{"type":"string","enum":["programmableGeneration:nonFossilChp"]},{"type":"string","enum":["programmableGeneration:nonFossilBoiler"]},{"type":"string","enum":["programmableGeneration:reservoirHydro"]},{"type":"string","enum":["nonProgrammableGeneration:runOfRiverHydro"]},{"type":"string","enum":["nonProgrammableGeneration:wind"]},{"type":"string","enum":["nonProgrammableGeneration:solarPv"]}]},"plantId":{"type":"string"},"dsoId":{"type":"string"},"aggregatorId":{"type":"string"},"category":{"enum":["load","generation","loadAndGeneration"],"description":"Type of the asset","type":"string"},"name":{"type":"string"},"pod":{"type":"string"},"countryCode":{"type":"string"},"address":{"type":"string"},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]},"activatedAt":{"format":"date-time","description":"Resource activation timestamp","type":"string"},"podVoltage":{"description":"Grid Voltage at connection point","anyOf":[{"type":"number","enum":[0.22]},{"type":"number","enum":[0.38]},{"type":"number","enum":[8]},{"type":"number","enum":[20]}]},"cosphi":{"description":"Copshi","default":0.9,"type":"number"},"organizationId":{"description":"ID of the owner of the asset","type":"string"},"priority":{"description":"Priority of the asset","default":1,"minimum":1,"maximum":100,"type":"number"},"owner":{"description":"Flexible Asset Owner","type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["fullName","email","phone"]},"contacts":{"type":"array","items":{"description":"Contacts are persons that might need to receive notifications","type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["fullName","email","phone"]}},"marketIds":{"description":"Markets in which the asset participates","type":"array","items":{"anyOf":[{"type":"string","enum":["RomeFlex"]},{"type":"string","enum":["CER"]},{"type":"string","enum":["Terna"]},{"type":"string","enum":["HedgeIoT"]}]}},"defaultBaselines":{"type":"object","properties":{"ACTIVE_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"REACTIVE_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"APPARENT_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"POWER_FACTOR":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"SELF_CONSUMED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"SHARED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"ABSORBED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"GENERATED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"INJECTED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"STORAGE_SOC":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"VOLTAGE":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"FREQUENCY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"AVAILABILITY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"C02":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]}}},"capabilities":{"description":"List of asset capabilities","default":[],"type":"array","items":{"type":"object","properties":{"profileType":{"anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"serviceType":{"anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"quantity":{"description":"Maximum capacity for the given profile and service type, in the specified measurement unit","type":"number"}},"required":["profileType","serviceType","measurementUnit","quantity"]}},"maxAvailableAbsorbedActivePower":{"description":"Maximum active power available for absorption","type":"number"},"maxAvailableInjectedActivePower":{"description":"Maximum active power available for injection","type":"number"},"maxAvailableAbsorbedReactivePower":{"description":"Maximum reactive power available for absorption","type":"number"},"maxAvailableInjectedReactivePower":{"description":"Maximum active power available for injection","type":"number"},"upperP":{"description":"How much active power the asset can move, by increasing injection (e.g. production or discharging storage) or by decreasing absorption. (DELTA VALUE)","type":"number"},"downP":{"description":"How much active power the asset can move, by decreasing injection (e.g. production or discharging storage) or by increasing absorption. (DELTA VALUE)","type":"number"},"upperQ":{"description":"@see upperP","type":"number"},"downQ":{"description":"Vedere downP","type":"number"},"technicalRanking":{"description":"Quanto bene applica il setpoint","minimum":0,"maximum":1,"default":1,"type":"number"},"timePower":{"minimum":0,"description":"Tempo massimo necessario alla Risorsa Distribuita per attivare il servizio con oggetto la potenza attiva in risposta al comando di attivazione. [h]","type":"number"},"maxTimePower":{"minimum":0,"description":"Durata massima per cui può essere erogato il servizio con oggetto la potenza attiva. [h]","type":"number"},"minTimePower":{"description":"Durata minima per cui può essere erogato il servizio con oggetto la potenza attiva. [h]","type":"number"},"startTimePower":{"minimum":0,"description":"Tempo necessario per completare una variazione pari alla Potenza attiva a salire/a scendere (definita in Potenza disponibile ai servizi ancillari). [h]","type":"number"},"endTimePower":{"minimum":0,"description":"Tempo necessario per completare in senso inverso una variazione pari alla Potenza attiva a salire/a scendere (definita in Potenza disponibile ai servizi ancillari). [h]","type":"number"},"recoveryTimePower":{"minimum":0,"description":"Durata minima del periodo tra la conclusione dell’erogazione del servizio ancillare con oggetto la potenza attiva e la successiva erogazione. [h]","type":"number"}}}]},{"type":"object","properties":{"aggregates":{}}}]}}}}}}},"post":{"tags":["flexibleAssets"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"status":{"description":"Status of the resource","anyOf":[{"type":"string","enum":["active"]},{"type":"string","enum":["pending"]},{"type":"string","enum":["development"]},{"type":"string","enum":["suspended"]},{"type":"string","enum":["removed"]}]},"type":{"default":"demandSideResponse:residential","anyOf":[{"type":"string","enum":["storage:battery"]},{"type":"string","enum":["storage:fuelCell"]},{"type":"string","enum":["storage:liquidAir"]},{"type":"string","enum":["storage:compressedAir"]},{"type":"string","enum":["storage:pumpedHydro"]},{"type":"string","enum":["storage:vehicleToGrid"]},{"type":"string","enum":["storage:batteryWithGeneration"]},{"type":"string","enum":["demandSideResponse:evCharging"]},{"type":"string","enum":["demandSideResponse:residential"]},{"type":"string","enum":["demandSideResponse:commercial"]},{"type":"string","enum":["demandSideResponse:industrial"]},{"type":"string","enum":["programmableGeneration:ccgt"]},{"type":"string","enum":["programmableGeneration:fossilChp"]},{"type":"string","enum":["programmableGeneration:gasReciprocatingEngine"]},{"type":"string","enum":["programmableGeneration:ocgt"]},{"type":"string","enum":["programmableGeneration:dieselEngine"]},{"type":"string","enum":["programmableGeneration:fossilBoiler"]},{"type":"string","enum":["programmableGeneration:nonFossilChp"]},{"type":"string","enum":["programmableGeneration:nonFossilBoiler"]},{"type":"string","enum":["programmableGeneration:reservoirHydro"]},{"type":"string","enum":["nonProgrammableGeneration:runOfRiverHydro"]},{"type":"string","enum":["nonProgrammableGeneration:wind"]},{"type":"string","enum":["nonProgrammableGeneration:solarPv"]}]},"plantId":{"type":"string"},"dsoId":{"type":"string"},"aggregatorId":{"type":"string"},"category":{"enum":["load","generation","loadAndGeneration"],"description":"Type of the asset","type":"string"},"name":{"type":"string"},"pod":{"type":"string"},"countryCode":{"type":"string"},"address":{"type":"string"},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]},"activatedAt":{"format":"date-time","description":"Resource activation timestamp","type":"string"},"podVoltage":{"description":"Grid Voltage at connection point","anyOf":[{"type":"number","enum":[0.22]},{"type":"number","enum":[0.38]},{"type":"number","enum":[8]},{"type":"number","enum":[20]}]},"cosphi":{"description":"Copshi","default":0.9,"type":"number"},"organizationId":{"description":"ID of the owner of the asset","type":"string"},"priority":{"description":"Priority of the asset","default":1,"minimum":1,"maximum":100,"type":"number"},"owner":{"description":"Flexible Asset Owner","type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["fullName","email","phone"]},"contacts":{"type":"array","items":{"description":"Contacts are persons that might need to receive notifications","type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["fullName","email","phone"]}},"marketIds":{"description":"Markets in which the asset participates","type":"array","items":{"anyOf":[{"type":"string","enum":["RomeFlex"]},{"type":"string","enum":["CER"]},{"type":"string","enum":["Terna"]},{"type":"string","enum":["HedgeIoT"]}]}},"defaultBaselines":{"type":"object","properties":{"ACTIVE_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"REACTIVE_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"APPARENT_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"POWER_FACTOR":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"SELF_CONSUMED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"SHARED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"ABSORBED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"GENERATED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"INJECTED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"STORAGE_SOC":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"VOLTAGE":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"FREQUENCY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"AVAILABILITY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"C02":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]}}},"capabilities":{"description":"List of asset capabilities","default":[],"type":"array","items":{"type":"object","properties":{"profileType":{"anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"serviceType":{"anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"quantity":{"description":"Maximum capacity for the given profile and service type, in the specified measurement unit","type":"number"}},"required":["profileType","serviceType","measurementUnit","quantity"]}},"maxAvailableAbsorbedActivePower":{"description":"Maximum active power available for absorption","type":"number"},"maxAvailableInjectedActivePower":{"description":"Maximum active power available for injection","type":"number"},"maxAvailableAbsorbedReactivePower":{"description":"Maximum reactive power available for absorption","type":"number"},"maxAvailableInjectedReactivePower":{"description":"Maximum active power available for injection","type":"number"},"upperP":{"description":"How much active power the asset can move, by increasing injection (e.g. production or discharging storage) or by decreasing absorption. (DELTA VALUE)","type":"number"},"downP":{"description":"How much active power the asset can move, by decreasing injection (e.g. production or discharging storage) or by increasing absorption. (DELTA VALUE)","type":"number"},"upperQ":{"description":"@see upperP","type":"number"},"downQ":{"description":"Vedere downP","type":"number"},"technicalRanking":{"description":"Quanto bene applica il setpoint","minimum":0,"maximum":1,"default":1,"type":"number"},"timePower":{"minimum":0,"description":"Tempo massimo necessario alla Risorsa Distribuita per attivare il servizio con oggetto la potenza attiva in risposta al comando di attivazione. [h]","type":"number"},"maxTimePower":{"minimum":0,"description":"Durata massima per cui può essere erogato il servizio con oggetto la potenza attiva. [h]","type":"number"},"minTimePower":{"description":"Durata minima per cui può essere erogato il servizio con oggetto la potenza attiva. [h]","type":"number"},"startTimePower":{"minimum":0,"description":"Tempo necessario per completare una variazione pari alla Potenza attiva a salire/a scendere (definita in Potenza disponibile ai servizi ancillari). [h]","type":"number"},"endTimePower":{"minimum":0,"description":"Tempo necessario per completare in senso inverso una variazione pari alla Potenza attiva a salire/a scendere (definita in Potenza disponibile ai servizi ancillari). [h]","type":"number"},"recoveryTimePower":{"minimum":0,"description":"Durata minima del periodo tra la conclusione dell’erogazione del servizio ancillare con oggetto la potenza attiva e la successiva erogazione. [h]","type":"number"}},"required":["status","type","dsoId","aggregatorId","category","name","pod","countryCode","address","activatedAt","podVoltage","cosphi","priority","owner","contacts","marketIds","defaultBaselines","capabilities","maxAvailableAbsorbedActivePower","maxAvailableInjectedActivePower","maxAvailableAbsorbedReactivePower","maxAvailableInjectedReactivePower","upperP","downP","upperQ","downQ","technicalRanking"]}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a physical or virtual flexible asset","type":"object","properties":{"status":{"description":"Status of the resource","anyOf":[{"type":"string","enum":["active"]},{"type":"string","enum":["pending"]},{"type":"string","enum":["development"]},{"type":"string","enum":["suspended"]},{"type":"string","enum":["removed"]}]},"type":{"default":"demandSideResponse:residential","anyOf":[{"type":"string","enum":["storage:battery"]},{"type":"string","enum":["storage:fuelCell"]},{"type":"string","enum":["storage:liquidAir"]},{"type":"string","enum":["storage:compressedAir"]},{"type":"string","enum":["storage:pumpedHydro"]},{"type":"string","enum":["storage:vehicleToGrid"]},{"type":"string","enum":["storage:batteryWithGeneration"]},{"type":"string","enum":["demandSideResponse:evCharging"]},{"type":"string","enum":["demandSideResponse:residential"]},{"type":"string","enum":["demandSideResponse:commercial"]},{"type":"string","enum":["demandSideResponse:industrial"]},{"type":"string","enum":["programmableGeneration:ccgt"]},{"type":"string","enum":["programmableGeneration:fossilChp"]},{"type":"string","enum":["programmableGeneration:gasReciprocatingEngine"]},{"type":"string","enum":["programmableGeneration:ocgt"]},{"type":"string","enum":["programmableGeneration:dieselEngine"]},{"type":"string","enum":["programmableGeneration:fossilBoiler"]},{"type":"string","enum":["programmableGeneration:nonFossilChp"]},{"type":"string","enum":["programmableGeneration:nonFossilBoiler"]},{"type":"string","enum":["programmableGeneration:reservoirHydro"]},{"type":"string","enum":["nonProgrammableGeneration:runOfRiverHydro"]},{"type":"string","enum":["nonProgrammableGeneration:wind"]},{"type":"string","enum":["nonProgrammableGeneration:solarPv"]}]},"plantId":{"type":"string"},"dsoId":{"type":"string"},"aggregatorId":{"type":"string"},"category":{"enum":["load","generation","loadAndGeneration"],"description":"Type of the asset","type":"string"},"name":{"type":"string"},"pod":{"type":"string"},"countryCode":{"type":"string"},"address":{"type":"string"},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]},"activatedAt":{"format":"date-time","description":"Resource activation timestamp","type":"string"},"podVoltage":{"description":"Grid Voltage at connection point","anyOf":[{"type":"number","enum":[0.22]},{"type":"number","enum":[0.38]},{"type":"number","enum":[8]},{"type":"number","enum":[20]}]},"cosphi":{"description":"Copshi","default":0.9,"type":"number"},"organizationId":{"description":"ID of the owner of the asset","type":"string"},"priority":{"description":"Priority of the asset","default":1,"minimum":1,"maximum":100,"type":"number"},"owner":{"description":"Flexible Asset Owner","type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["fullName","email","phone"]},"contacts":{"type":"array","items":{"description":"Contacts are persons that might need to receive notifications","type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["fullName","email","phone"]}},"marketIds":{"description":"Markets in which the asset participates","type":"array","items":{"anyOf":[{"type":"string","enum":["RomeFlex"]},{"type":"string","enum":["CER"]},{"type":"string","enum":["Terna"]},{"type":"string","enum":["HedgeIoT"]}]}},"defaultBaselines":{"type":"object","properties":{"ACTIVE_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"REACTIVE_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"APPARENT_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"POWER_FACTOR":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"SELF_CONSUMED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"SHARED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"ABSORBED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"GENERATED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"INJECTED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"STORAGE_SOC":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"VOLTAGE":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"FREQUENCY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"AVAILABILITY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"C02":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]}}},"capabilities":{"description":"List of asset capabilities","default":[],"type":"array","items":{"type":"object","properties":{"profileType":{"anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"serviceType":{"anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"quantity":{"description":"Maximum capacity for the given profile and service type, in the specified measurement unit","type":"number"}},"required":["profileType","serviceType","measurementUnit","quantity"]}},"maxAvailableAbsorbedActivePower":{"description":"Maximum active power available for absorption","type":"number"},"maxAvailableInjectedActivePower":{"description":"Maximum active power available for injection","type":"number"},"maxAvailableAbsorbedReactivePower":{"description":"Maximum reactive power available for absorption","type":"number"},"maxAvailableInjectedReactivePower":{"description":"Maximum active power available for injection","type":"number"},"upperP":{"description":"How much active power the asset can move, by increasing injection (e.g. production or discharging storage) or by decreasing absorption. (DELTA VALUE)","type":"number"},"downP":{"description":"How much active power the asset can move, by decreasing injection (e.g. production or discharging storage) or by increasing absorption. (DELTA VALUE)","type":"number"},"upperQ":{"description":"@see upperP","type":"number"},"downQ":{"description":"Vedere downP","type":"number"},"technicalRanking":{"description":"Quanto bene applica il setpoint","minimum":0,"maximum":1,"default":1,"type":"number"},"timePower":{"minimum":0,"description":"Tempo massimo necessario alla Risorsa Distribuita per attivare il servizio con oggetto la potenza attiva in risposta al comando di attivazione. [h]","type":"number"},"maxTimePower":{"minimum":0,"description":"Durata massima per cui può essere erogato il servizio con oggetto la potenza attiva. [h]","type":"number"},"minTimePower":{"description":"Durata minima per cui può essere erogato il servizio con oggetto la potenza attiva. [h]","type":"number"},"startTimePower":{"minimum":0,"description":"Tempo necessario per completare una variazione pari alla Potenza attiva a salire/a scendere (definita in Potenza disponibile ai servizi ancillari). [h]","type":"number"},"endTimePower":{"minimum":0,"description":"Tempo necessario per completare in senso inverso una variazione pari alla Potenza attiva a salire/a scendere (definita in Potenza disponibile ai servizi ancillari). [h]","type":"number"},"recoveryTimePower":{"minimum":0,"description":"Durata minima del periodo tra la conclusione dell’erogazione del servizio ancillare con oggetto la potenza attiva e la successiva erogazione. [h]","type":"number"}},"required":["status","type","dsoId","aggregatorId","category","name","pod","countryCode","address","activatedAt","podVoltage","cosphi","priority","owner","contacts","marketIds","defaultBaselines","capabilities","maxAvailableAbsorbedActivePower","maxAvailableInjectedActivePower","maxAvailableAbsorbedReactivePower","maxAvailableInjectedReactivePower","upperP","downP","upperQ","downQ","technicalRanking"]}]},{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a physical or virtual flexible asset","type":"object","properties":{"status":{"description":"Status of the resource","anyOf":[{"type":"string","enum":["active"]},{"type":"string","enum":["pending"]},{"type":"string","enum":["development"]},{"type":"string","enum":["suspended"]},{"type":"string","enum":["removed"]}]},"type":{"default":"demandSideResponse:residential","anyOf":[{"type":"string","enum":["storage:battery"]},{"type":"string","enum":["storage:fuelCell"]},{"type":"string","enum":["storage:liquidAir"]},{"type":"string","enum":["storage:compressedAir"]},{"type":"string","enum":["storage:pumpedHydro"]},{"type":"string","enum":["storage:vehicleToGrid"]},{"type":"string","enum":["storage:batteryWithGeneration"]},{"type":"string","enum":["demandSideResponse:evCharging"]},{"type":"string","enum":["demandSideResponse:residential"]},{"type":"string","enum":["demandSideResponse:commercial"]},{"type":"string","enum":["demandSideResponse:industrial"]},{"type":"string","enum":["programmableGeneration:ccgt"]},{"type":"string","enum":["programmableGeneration:fossilChp"]},{"type":"string","enum":["programmableGeneration:gasReciprocatingEngine"]},{"type":"string","enum":["programmableGeneration:ocgt"]},{"type":"string","enum":["programmableGeneration:dieselEngine"]},{"type":"string","enum":["programmableGeneration:fossilBoiler"]},{"type":"string","enum":["programmableGeneration:nonFossilChp"]},{"type":"string","enum":["programmableGeneration:nonFossilBoiler"]},{"type":"string","enum":["programmableGeneration:reservoirHydro"]},{"type":"string","enum":["nonProgrammableGeneration:runOfRiverHydro"]},{"type":"string","enum":["nonProgrammableGeneration:wind"]},{"type":"string","enum":["nonProgrammableGeneration:solarPv"]}]},"plantId":{"type":"string"},"dsoId":{"type":"string"},"aggregatorId":{"type":"string"},"category":{"enum":["load","generation","loadAndGeneration"],"description":"Type of the asset","type":"string"},"name":{"type":"string"},"pod":{"type":"string"},"countryCode":{"type":"string"},"address":{"type":"string"},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]},"activatedAt":{"format":"date-time","description":"Resource activation timestamp","type":"string"},"podVoltage":{"description":"Grid Voltage at connection point","anyOf":[{"type":"number","enum":[0.22]},{"type":"number","enum":[0.38]},{"type":"number","enum":[8]},{"type":"number","enum":[20]}]},"cosphi":{"description":"Copshi","default":0.9,"type":"number"},"organizationId":{"description":"ID of the owner of the asset","type":"string"},"priority":{"description":"Priority of the asset","default":1,"minimum":1,"maximum":100,"type":"number"},"owner":{"description":"Flexible Asset Owner","type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["fullName","email","phone"]},"contacts":{"type":"array","items":{"description":"Contacts are persons that might need to receive notifications","type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["fullName","email","phone"]}},"marketIds":{"description":"Markets in which the asset participates","type":"array","items":{"anyOf":[{"type":"string","enum":["RomeFlex"]},{"type":"string","enum":["CER"]},{"type":"string","enum":["Terna"]},{"type":"string","enum":["HedgeIoT"]}]}},"defaultBaselines":{"type":"object","properties":{"ACTIVE_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"REACTIVE_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"APPARENT_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"POWER_FACTOR":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"SELF_CONSUMED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"SHARED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"ABSORBED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"GENERATED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"INJECTED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"STORAGE_SOC":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"VOLTAGE":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"FREQUENCY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"AVAILABILITY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"C02":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]}}},"capabilities":{"description":"List of asset capabilities","default":[],"type":"array","items":{"type":"object","properties":{"profileType":{"anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"serviceType":{"anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"quantity":{"description":"Maximum capacity for the given profile and service type, in the specified measurement unit","type":"number"}},"required":["profileType","serviceType","measurementUnit","quantity"]}},"maxAvailableAbsorbedActivePower":{"description":"Maximum active power available for absorption","type":"number"},"maxAvailableInjectedActivePower":{"description":"Maximum active power available for injection","type":"number"},"maxAvailableAbsorbedReactivePower":{"description":"Maximum reactive power available for absorption","type":"number"},"maxAvailableInjectedReactivePower":{"description":"Maximum active power available for injection","type":"number"},"upperP":{"description":"How much active power the asset can move, by increasing injection (e.g. production or discharging storage) or by decreasing absorption. (DELTA VALUE)","type":"number"},"downP":{"description":"How much active power the asset can move, by decreasing injection (e.g. production or discharging storage) or by increasing absorption. (DELTA VALUE)","type":"number"},"upperQ":{"description":"@see upperP","type":"number"},"downQ":{"description":"Vedere downP","type":"number"},"technicalRanking":{"description":"Quanto bene applica il setpoint","minimum":0,"maximum":1,"default":1,"type":"number"},"timePower":{"minimum":0,"description":"Tempo massimo necessario alla Risorsa Distribuita per attivare il servizio con oggetto la potenza attiva in risposta al comando di attivazione. [h]","type":"number"},"maxTimePower":{"minimum":0,"description":"Durata massima per cui può essere erogato il servizio con oggetto la potenza attiva. [h]","type":"number"},"minTimePower":{"description":"Durata minima per cui può essere erogato il servizio con oggetto la potenza attiva. [h]","type":"number"},"startTimePower":{"minimum":0,"description":"Tempo necessario per completare una variazione pari alla Potenza attiva a salire/a scendere (definita in Potenza disponibile ai servizi ancillari). [h]","type":"number"},"endTimePower":{"minimum":0,"description":"Tempo necessario per completare in senso inverso una variazione pari alla Potenza attiva a salire/a scendere (definita in Potenza disponibile ai servizi ancillari). [h]","type":"number"},"recoveryTimePower":{"minimum":0,"description":"Durata minima del periodo tra la conclusione dell’erogazione del servizio ancillare con oggetto la potenza attiva e la successiva erogazione. [h]","type":"number"}},"required":["status","type","dsoId","aggregatorId","category","name","pod","countryCode","address","activatedAt","podVoltage","cosphi","priority","owner","contacts","marketIds","defaultBaselines","capabilities","maxAvailableAbsorbedActivePower","maxAvailableInjectedActivePower","maxAvailableAbsorbedReactivePower","maxAvailableInjectedReactivePower","upperP","downP","upperQ","downQ","technicalRanking"]}]}}]}}}}}}},"/v1/projects/{projectId}/flexibleAssets/count":{"get":{"tags":["flexibleAssets"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}}}}}}}}},"/v1/projects/{projectId}/flexibleAssets/{uuid}":{"get":{"tags":["flexibleAssets"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"fields","required":false},{"schema":{"type":"string"},"in":"query","name":"include","required":false},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"status":{"description":"Status of the resource","anyOf":[{"type":"string","enum":["active"]},{"type":"string","enum":["pending"]},{"type":"string","enum":["development"]},{"type":"string","enum":["suspended"]},{"type":"string","enum":["removed"]}]},"type":{"default":"demandSideResponse:residential","anyOf":[{"type":"string","enum":["storage:battery"]},{"type":"string","enum":["storage:fuelCell"]},{"type":"string","enum":["storage:liquidAir"]},{"type":"string","enum":["storage:compressedAir"]},{"type":"string","enum":["storage:pumpedHydro"]},{"type":"string","enum":["storage:vehicleToGrid"]},{"type":"string","enum":["storage:batteryWithGeneration"]},{"type":"string","enum":["demandSideResponse:evCharging"]},{"type":"string","enum":["demandSideResponse:residential"]},{"type":"string","enum":["demandSideResponse:commercial"]},{"type":"string","enum":["demandSideResponse:industrial"]},{"type":"string","enum":["programmableGeneration:ccgt"]},{"type":"string","enum":["programmableGeneration:fossilChp"]},{"type":"string","enum":["programmableGeneration:gasReciprocatingEngine"]},{"type":"string","enum":["programmableGeneration:ocgt"]},{"type":"string","enum":["programmableGeneration:dieselEngine"]},{"type":"string","enum":["programmableGeneration:fossilBoiler"]},{"type":"string","enum":["programmableGeneration:nonFossilChp"]},{"type":"string","enum":["programmableGeneration:nonFossilBoiler"]},{"type":"string","enum":["programmableGeneration:reservoirHydro"]},{"type":"string","enum":["nonProgrammableGeneration:runOfRiverHydro"]},{"type":"string","enum":["nonProgrammableGeneration:wind"]},{"type":"string","enum":["nonProgrammableGeneration:solarPv"]}]},"plantId":{"type":"string"},"dsoId":{"type":"string"},"aggregatorId":{"type":"string"},"category":{"enum":["load","generation","loadAndGeneration"],"description":"Type of the asset","type":"string"},"name":{"type":"string"},"pod":{"type":"string"},"countryCode":{"type":"string"},"address":{"type":"string"},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]},"activatedAt":{"format":"date-time","description":"Resource activation timestamp","type":"string"},"podVoltage":{"description":"Grid Voltage at connection point","anyOf":[{"type":"number","enum":[0.22]},{"type":"number","enum":[0.38]},{"type":"number","enum":[8]},{"type":"number","enum":[20]}]},"cosphi":{"description":"Copshi","default":0.9,"type":"number"},"organizationId":{"description":"ID of the owner of the asset","type":"string"},"priority":{"description":"Priority of the asset","default":1,"minimum":1,"maximum":100,"type":"number"},"owner":{"description":"Flexible Asset Owner","type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["fullName","email","phone"]},"contacts":{"type":"array","items":{"description":"Contacts are persons that might need to receive notifications","type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["fullName","email","phone"]}},"marketIds":{"description":"Markets in which the asset participates","type":"array","items":{"anyOf":[{"type":"string","enum":["RomeFlex"]},{"type":"string","enum":["CER"]},{"type":"string","enum":["Terna"]},{"type":"string","enum":["HedgeIoT"]}]}},"defaultBaselines":{"type":"object","properties":{"ACTIVE_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"REACTIVE_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"APPARENT_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"POWER_FACTOR":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"SELF_CONSUMED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"SHARED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"ABSORBED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"GENERATED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"INJECTED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"STORAGE_SOC":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"VOLTAGE":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"FREQUENCY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"AVAILABILITY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"C02":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]}}},"capabilities":{"description":"List of asset capabilities","default":[],"type":"array","items":{"type":"object","properties":{"profileType":{"anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"serviceType":{"anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"quantity":{"description":"Maximum capacity for the given profile and service type, in the specified measurement unit","type":"number"}},"required":["profileType","serviceType","measurementUnit","quantity"]}},"maxAvailableAbsorbedActivePower":{"description":"Maximum active power available for absorption","type":"number"},"maxAvailableInjectedActivePower":{"description":"Maximum active power available for injection","type":"number"},"maxAvailableAbsorbedReactivePower":{"description":"Maximum reactive power available for absorption","type":"number"},"maxAvailableInjectedReactivePower":{"description":"Maximum active power available for injection","type":"number"},"upperP":{"description":"How much active power the asset can move, by increasing injection (e.g. production or discharging storage) or by decreasing absorption. (DELTA VALUE)","type":"number"},"downP":{"description":"How much active power the asset can move, by decreasing injection (e.g. production or discharging storage) or by increasing absorption. (DELTA VALUE)","type":"number"},"upperQ":{"description":"@see upperP","type":"number"},"downQ":{"description":"Vedere downP","type":"number"},"technicalRanking":{"description":"Quanto bene applica il setpoint","minimum":0,"maximum":1,"default":1,"type":"number"},"timePower":{"minimum":0,"description":"Tempo massimo necessario alla Risorsa Distribuita per attivare il servizio con oggetto la potenza attiva in risposta al comando di attivazione. [h]","type":"number"},"maxTimePower":{"minimum":0,"description":"Durata massima per cui può essere erogato il servizio con oggetto la potenza attiva. [h]","type":"number"},"minTimePower":{"description":"Durata minima per cui può essere erogato il servizio con oggetto la potenza attiva. [h]","type":"number"},"startTimePower":{"minimum":0,"description":"Tempo necessario per completare una variazione pari alla Potenza attiva a salire/a scendere (definita in Potenza disponibile ai servizi ancillari). [h]","type":"number"},"endTimePower":{"minimum":0,"description":"Tempo necessario per completare in senso inverso una variazione pari alla Potenza attiva a salire/a scendere (definita in Potenza disponibile ai servizi ancillari). [h]","type":"number"},"recoveryTimePower":{"minimum":0,"description":"Durata minima del periodo tra la conclusione dell’erogazione del servizio ancillare con oggetto la potenza attiva e la successiva erogazione. [h]","type":"number"}}}]},{"type":"object","properties":{"aggregates":{}}}]}}}}}},"delete":{"tags":["flexibleAssets"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["flexibleAssets"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"status":{"description":"Status of the resource","anyOf":[{"type":"string","enum":["active"]},{"type":"string","enum":["pending"]},{"type":"string","enum":["development"]},{"type":"string","enum":["suspended"]},{"type":"string","enum":["removed"]}]},"type":{"default":"demandSideResponse:residential","anyOf":[{"type":"string","enum":["storage:battery"]},{"type":"string","enum":["storage:fuelCell"]},{"type":"string","enum":["storage:liquidAir"]},{"type":"string","enum":["storage:compressedAir"]},{"type":"string","enum":["storage:pumpedHydro"]},{"type":"string","enum":["storage:vehicleToGrid"]},{"type":"string","enum":["storage:batteryWithGeneration"]},{"type":"string","enum":["demandSideResponse:evCharging"]},{"type":"string","enum":["demandSideResponse:residential"]},{"type":"string","enum":["demandSideResponse:commercial"]},{"type":"string","enum":["demandSideResponse:industrial"]},{"type":"string","enum":["programmableGeneration:ccgt"]},{"type":"string","enum":["programmableGeneration:fossilChp"]},{"type":"string","enum":["programmableGeneration:gasReciprocatingEngine"]},{"type":"string","enum":["programmableGeneration:ocgt"]},{"type":"string","enum":["programmableGeneration:dieselEngine"]},{"type":"string","enum":["programmableGeneration:fossilBoiler"]},{"type":"string","enum":["programmableGeneration:nonFossilChp"]},{"type":"string","enum":["programmableGeneration:nonFossilBoiler"]},{"type":"string","enum":["programmableGeneration:reservoirHydro"]},{"type":"string","enum":["nonProgrammableGeneration:runOfRiverHydro"]},{"type":"string","enum":["nonProgrammableGeneration:wind"]},{"type":"string","enum":["nonProgrammableGeneration:solarPv"]}]},"plantId":{"type":"string"},"dsoId":{"type":"string"},"aggregatorId":{"type":"string"},"category":{"enum":["load","generation","loadAndGeneration"],"description":"Type of the asset","type":"string"},"name":{"type":"string"},"pod":{"type":"string"},"countryCode":{"type":"string"},"address":{"type":"string"},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]},"activatedAt":{"format":"date-time","description":"Resource activation timestamp","type":"string"},"podVoltage":{"description":"Grid Voltage at connection point","anyOf":[{"type":"number","enum":[0.22]},{"type":"number","enum":[0.38]},{"type":"number","enum":[8]},{"type":"number","enum":[20]}]},"cosphi":{"description":"Copshi","default":0.9,"type":"number"},"organizationId":{"description":"ID of the owner of the asset","type":"string"},"priority":{"description":"Priority of the asset","default":1,"minimum":1,"maximum":100,"type":"number"},"owner":{"description":"Flexible Asset Owner","type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["fullName","email","phone"]},"contacts":{"type":"array","items":{"description":"Contacts are persons that might need to receive notifications","type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["fullName","email","phone"]}},"marketIds":{"description":"Markets in which the asset participates","type":"array","items":{"anyOf":[{"type":"string","enum":["RomeFlex"]},{"type":"string","enum":["CER"]},{"type":"string","enum":["Terna"]},{"type":"string","enum":["HedgeIoT"]}]}},"defaultBaselines":{"type":"object","properties":{"ACTIVE_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"REACTIVE_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"APPARENT_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"POWER_FACTOR":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"SELF_CONSUMED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"SHARED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"ABSORBED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"GENERATED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"INJECTED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"STORAGE_SOC":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"VOLTAGE":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"FREQUENCY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"AVAILABILITY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"C02":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]}}},"capabilities":{"description":"List of asset capabilities","default":[],"type":"array","items":{"type":"object","properties":{"profileType":{"anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"serviceType":{"anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"quantity":{"description":"Maximum capacity for the given profile and service type, in the specified measurement unit","type":"number"}},"required":["profileType","serviceType","measurementUnit","quantity"]}},"maxAvailableAbsorbedActivePower":{"description":"Maximum active power available for absorption","type":"number"},"maxAvailableInjectedActivePower":{"description":"Maximum active power available for injection","type":"number"},"maxAvailableAbsorbedReactivePower":{"description":"Maximum reactive power available for absorption","type":"number"},"maxAvailableInjectedReactivePower":{"description":"Maximum active power available for injection","type":"number"},"upperP":{"description":"How much active power the asset can move, by increasing injection (e.g. production or discharging storage) or by decreasing absorption. (DELTA VALUE)","type":"number"},"downP":{"description":"How much active power the asset can move, by decreasing injection (e.g. production or discharging storage) or by increasing absorption. (DELTA VALUE)","type":"number"},"upperQ":{"description":"@see upperP","type":"number"},"downQ":{"description":"Vedere downP","type":"number"},"technicalRanking":{"description":"Quanto bene applica il setpoint","minimum":0,"maximum":1,"default":1,"type":"number"},"timePower":{"minimum":0,"description":"Tempo massimo necessario alla Risorsa Distribuita per attivare il servizio con oggetto la potenza attiva in risposta al comando di attivazione. [h]","type":"number"},"maxTimePower":{"minimum":0,"description":"Durata massima per cui può essere erogato il servizio con oggetto la potenza attiva. [h]","type":"number"},"minTimePower":{"description":"Durata minima per cui può essere erogato il servizio con oggetto la potenza attiva. [h]","type":"number"},"startTimePower":{"minimum":0,"description":"Tempo necessario per completare una variazione pari alla Potenza attiva a salire/a scendere (definita in Potenza disponibile ai servizi ancillari). [h]","type":"number"},"endTimePower":{"minimum":0,"description":"Tempo necessario per completare in senso inverso una variazione pari alla Potenza attiva a salire/a scendere (definita in Potenza disponibile ai servizi ancillari). [h]","type":"number"},"recoveryTimePower":{"minimum":0,"description":"Durata minima del periodo tra la conclusione dell’erogazione del servizio ancillare con oggetto la potenza attiva e la successiva erogazione. [h]","type":"number"}}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a physical or virtual flexible asset","type":"object","properties":{"status":{"description":"Status of the resource","anyOf":[{"type":"string","enum":["active"]},{"type":"string","enum":["pending"]},{"type":"string","enum":["development"]},{"type":"string","enum":["suspended"]},{"type":"string","enum":["removed"]}]},"type":{"default":"demandSideResponse:residential","anyOf":[{"type":"string","enum":["storage:battery"]},{"type":"string","enum":["storage:fuelCell"]},{"type":"string","enum":["storage:liquidAir"]},{"type":"string","enum":["storage:compressedAir"]},{"type":"string","enum":["storage:pumpedHydro"]},{"type":"string","enum":["storage:vehicleToGrid"]},{"type":"string","enum":["storage:batteryWithGeneration"]},{"type":"string","enum":["demandSideResponse:evCharging"]},{"type":"string","enum":["demandSideResponse:residential"]},{"type":"string","enum":["demandSideResponse:commercial"]},{"type":"string","enum":["demandSideResponse:industrial"]},{"type":"string","enum":["programmableGeneration:ccgt"]},{"type":"string","enum":["programmableGeneration:fossilChp"]},{"type":"string","enum":["programmableGeneration:gasReciprocatingEngine"]},{"type":"string","enum":["programmableGeneration:ocgt"]},{"type":"string","enum":["programmableGeneration:dieselEngine"]},{"type":"string","enum":["programmableGeneration:fossilBoiler"]},{"type":"string","enum":["programmableGeneration:nonFossilChp"]},{"type":"string","enum":["programmableGeneration:nonFossilBoiler"]},{"type":"string","enum":["programmableGeneration:reservoirHydro"]},{"type":"string","enum":["nonProgrammableGeneration:runOfRiverHydro"]},{"type":"string","enum":["nonProgrammableGeneration:wind"]},{"type":"string","enum":["nonProgrammableGeneration:solarPv"]}]},"plantId":{"type":"string"},"dsoId":{"type":"string"},"aggregatorId":{"type":"string"},"category":{"enum":["load","generation","loadAndGeneration"],"description":"Type of the asset","type":"string"},"name":{"type":"string"},"pod":{"type":"string"},"countryCode":{"type":"string"},"address":{"type":"string"},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]},"activatedAt":{"format":"date-time","description":"Resource activation timestamp","type":"string"},"podVoltage":{"description":"Grid Voltage at connection point","anyOf":[{"type":"number","enum":[0.22]},{"type":"number","enum":[0.38]},{"type":"number","enum":[8]},{"type":"number","enum":[20]}]},"cosphi":{"description":"Copshi","default":0.9,"type":"number"},"organizationId":{"description":"ID of the owner of the asset","type":"string"},"priority":{"description":"Priority of the asset","default":1,"minimum":1,"maximum":100,"type":"number"},"owner":{"description":"Flexible Asset Owner","type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["fullName","email","phone"]},"contacts":{"type":"array","items":{"description":"Contacts are persons that might need to receive notifications","type":"object","properties":{"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["fullName","email","phone"]}},"marketIds":{"description":"Markets in which the asset participates","type":"array","items":{"anyOf":[{"type":"string","enum":["RomeFlex"]},{"type":"string","enum":["CER"]},{"type":"string","enum":["Terna"]},{"type":"string","enum":["HedgeIoT"]}]}},"defaultBaselines":{"type":"object","properties":{"ACTIVE_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"REACTIVE_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"APPARENT_POWER":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"POWER_FACTOR":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"SELF_CONSUMED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"SHARED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"ABSORBED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"GENERATED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"INJECTED_ENERGY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"STORAGE_SOC":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"VOLTAGE":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"FREQUENCY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"AVAILABILITY":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]},"C02":{"type":"object","properties":{"workday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"holiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"preholiday":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}}},"required":["workday","holiday","preholiday"]}}},"capabilities":{"description":"List of asset capabilities","default":[],"type":"array","items":{"type":"object","properties":{"profileType":{"anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"serviceType":{"anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"quantity":{"description":"Maximum capacity for the given profile and service type, in the specified measurement unit","type":"number"}},"required":["profileType","serviceType","measurementUnit","quantity"]}},"maxAvailableAbsorbedActivePower":{"description":"Maximum active power available for absorption","type":"number"},"maxAvailableInjectedActivePower":{"description":"Maximum active power available for injection","type":"number"},"maxAvailableAbsorbedReactivePower":{"description":"Maximum reactive power available for absorption","type":"number"},"maxAvailableInjectedReactivePower":{"description":"Maximum active power available for injection","type":"number"},"upperP":{"description":"How much active power the asset can move, by increasing injection (e.g. production or discharging storage) or by decreasing absorption. (DELTA VALUE)","type":"number"},"downP":{"description":"How much active power the asset can move, by decreasing injection (e.g. production or discharging storage) or by increasing absorption. (DELTA VALUE)","type":"number"},"upperQ":{"description":"@see upperP","type":"number"},"downQ":{"description":"Vedere downP","type":"number"},"technicalRanking":{"description":"Quanto bene applica il setpoint","minimum":0,"maximum":1,"default":1,"type":"number"},"timePower":{"minimum":0,"description":"Tempo massimo necessario alla Risorsa Distribuita per attivare il servizio con oggetto la potenza attiva in risposta al comando di attivazione. [h]","type":"number"},"maxTimePower":{"minimum":0,"description":"Durata massima per cui può essere erogato il servizio con oggetto la potenza attiva. [h]","type":"number"},"minTimePower":{"description":"Durata minima per cui può essere erogato il servizio con oggetto la potenza attiva. [h]","type":"number"},"startTimePower":{"minimum":0,"description":"Tempo necessario per completare una variazione pari alla Potenza attiva a salire/a scendere (definita in Potenza disponibile ai servizi ancillari). [h]","type":"number"},"endTimePower":{"minimum":0,"description":"Tempo necessario per completare in senso inverso una variazione pari alla Potenza attiva a salire/a scendere (definita in Potenza disponibile ai servizi ancillari). [h]","type":"number"},"recoveryTimePower":{"minimum":0,"description":"Durata minima del periodo tra la conclusione dell’erogazione del servizio ancillare con oggetto la potenza attiva e la successiva erogazione. [h]","type":"number"}},"required":["status","type","dsoId","aggregatorId","category","name","pod","countryCode","address","activatedAt","podVoltage","cosphi","priority","owner","contacts","marketIds","defaultBaselines","capabilities","maxAvailableAbsorbedActivePower","maxAvailableInjectedActivePower","maxAvailableAbsorbedReactivePower","maxAvailableInjectedReactivePower","upperP","downP","upperQ","downQ","technicalRanking"]}]}}}}}}},"/v1/projects/{projectId}/aggregates":{"get":{"tags":["aggregates"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"assetIds":{"type":"array","items":{"type":"string"}},"address":{"type":"string"},"type":{"anyOf":[{"type":"string","enum":["CER"]},{"type":"string","enum":["VPP"]},{"type":"string","enum":["MARKET_AGGREGATE"]},{"type":"string","enum":["OTHER"]}]},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]}}}]},{"type":"object","properties":{"assets":{}}}]}}}}}}},"post":{"tags":["aggregates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"assetIds":{"type":"array","items":{"type":"string"}},"address":{"type":"string"},"type":{"anyOf":[{"type":"string","enum":["CER"]},{"type":"string","enum":["VPP"]},{"type":"string","enum":["MARKET_AGGREGATE"]},{"type":"string","enum":["OTHER"]}]},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]}},"required":["name","assetIds","type"]}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a group of energy assets, such as a Virtual Power Plant, or an Energy Community or just a logic aggregate. A single asset can belong to multiple aggregates, operations on aggregates such as simulations should warn of conflicting operations (e.g. cannot produce optimizations on two aggregates whereas there are overlapping assets)","type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"assetIds":{"type":"array","items":{"type":"string"}},"address":{"type":"string"},"type":{"anyOf":[{"type":"string","enum":["CER"]},{"type":"string","enum":["VPP"]},{"type":"string","enum":["MARKET_AGGREGATE"]},{"type":"string","enum":["OTHER"]}]},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]}},"required":["name","assetIds","type"]}]},{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a group of energy assets, such as a Virtual Power Plant, or an Energy Community or just a logic aggregate. A single asset can belong to multiple aggregates, operations on aggregates such as simulations should warn of conflicting operations (e.g. cannot produce optimizations on two aggregates whereas there are overlapping assets)","type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"assetIds":{"type":"array","items":{"type":"string"}},"address":{"type":"string"},"type":{"anyOf":[{"type":"string","enum":["CER"]},{"type":"string","enum":["VPP"]},{"type":"string","enum":["MARKET_AGGREGATE"]},{"type":"string","enum":["OTHER"]}]},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]}},"required":["name","assetIds","type"]}]}}]}}}}}}},"/v1/projects/{projectId}/aggregates/count":{"get":{"tags":["aggregates"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}}}}}}}}},"/v1/projects/{projectId}/aggregates/{uuid}":{"get":{"tags":["aggregates"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"fields","required":false},{"schema":{"type":"string"},"in":"query","name":"include","required":false},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"assetIds":{"type":"array","items":{"type":"string"}},"address":{"type":"string"},"type":{"anyOf":[{"type":"string","enum":["CER"]},{"type":"string","enum":["VPP"]},{"type":"string","enum":["MARKET_AGGREGATE"]},{"type":"string","enum":["OTHER"]}]},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]}}}]},{"type":"object","properties":{"assets":{}}}]}}}}}},"delete":{"tags":["aggregates"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["aggregates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"assetIds":{"type":"array","items":{"type":"string"}},"address":{"type":"string"},"type":{"anyOf":[{"type":"string","enum":["CER"]},{"type":"string","enum":["VPP"]},{"type":"string","enum":["MARKET_AGGREGATE"]},{"type":"string","enum":["OTHER"]}]},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]}}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a group of energy assets, such as a Virtual Power Plant, or an Energy Community or just a logic aggregate. A single asset can belong to multiple aggregates, operations on aggregates such as simulations should warn of conflicting operations (e.g. cannot produce optimizations on two aggregates whereas there are overlapping assets)","type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"assetIds":{"type":"array","items":{"type":"string"}},"address":{"type":"string"},"type":{"anyOf":[{"type":"string","enum":["CER"]},{"type":"string","enum":["VPP"]},{"type":"string","enum":["MARKET_AGGREGATE"]},{"type":"string","enum":["OTHER"]}]},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]}},"required":["name","assetIds","type"]}]}}}}}}},"/v1/projects/{projectId}/baselines":{"get":{"tags":["baselines"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"assetId":{"description":"Uuid of the energy asset","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the baseline (Makret Time Unit or MTU) expressed as hours. E.g. 0.25 is equivalent to 15 minutes, 1 is equivalent to 1 hour, 24 is equivalent to 1 day","type":"number"},"type":{"description":"Which kind of day is represented in the baseline","anyOf":[{"type":"string","enum":["WORKDAY"]},{"type":"string","enum":["HOLIDAY"]},{"type":"string","enum":["PREHOLIDAY"]}]},"season":{"description":"Season of the baseline","anyOf":[{"type":"string","enum":["WINTER"]},{"type":"string","enum":["SPRING"]},{"type":"string","enum":["SUMMER"]},{"type":"string","enum":["AUTUMN"]}]},"validFrom":{"description":"Start validity of the baseline","format":"date-time","type":"string"},"validTo":{"description":"End of the validity","format":"date-time","type":"string"},"computedFrom":{"description":"Beginning of the period of time used to compute the baseline","type":"string"},"computedTo":{"description":"End of the period of time used to compute the baseline","type":"string"},"profileType":{"description":"Which property of the energy asset is modeled by this baseline","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"description":"The profile of the baseline","type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]},"example":[-100,100,100,100]},"quality":{"minimum":0,"maximum":100,"description":"Quality of the profile","type":"number"}}}]},{"type":"object","properties":{}}]},"example":[{"assetId":"755c87c1-0f87-41b9-8145-bbfaccbf8ea0","interval":0.25,"type":"WORKDAY","season":"SPRING","validFrom":"2026-05-13T22:00:00Z","validTo":"2026-05-14T22:00:00Z","profileType":"ACTIVE_POWER","profile":[-495,-245,-69,-51,-49,-10,-53,-80,-33,-48,-79,-74,-68,-81,-73,-76,-70,-92,-101,-72,-72,-83,-78,-72,-79,-77,-72,-62,-68,-150,-110,-603,-502,-383,-537,-500,-492,-211,-111,-229,-276,-91,-105,-432,-526,-500,-121,-136,-446,-430,-543,-340,-285,-176,-191,-195,-184,-136,-219,-388,-290,-291,-504,-421,-199,-126,-269,-174,-263,-254,-130,-98,-117,-261,-390,-443,-438,-662,-287,-154,-134,-134,-123,-134,-167,-130,-111,-107,-110,-75,-85,-123,-144,-158,-354,-451],"quality":100,"projectId":"b9369b80-f098-4f5a-bd3e-a8ac13161f93","uuid":"ab197f3f-04fd-44f3-9124-f00ced90e3fa","createdAt":"2026-05-13T02:39:41.642Z","updatedAt":"2026-05-13T02:39:41.642Z"}]}}}}}},"post":{"tags":["baselines"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"assetId":{"description":"Uuid of the energy asset","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the baseline (Makret Time Unit or MTU) expressed as hours. E.g. 0.25 is equivalent to 15 minutes, 1 is equivalent to 1 hour, 24 is equivalent to 1 day","type":"number"},"type":{"description":"Which kind of day is represented in the baseline","anyOf":[{"type":"string","enum":["WORKDAY"]},{"type":"string","enum":["HOLIDAY"]},{"type":"string","enum":["PREHOLIDAY"]}]},"season":{"description":"Season of the baseline","anyOf":[{"type":"string","enum":["WINTER"]},{"type":"string","enum":["SPRING"]},{"type":"string","enum":["SUMMER"]},{"type":"string","enum":["AUTUMN"]}]},"validFrom":{"description":"Start validity of the baseline","format":"date-time","type":"string"},"validTo":{"description":"End of the validity","format":"date-time","type":"string"},"computedFrom":{"description":"Beginning of the period of time used to compute the baseline","type":"string"},"computedTo":{"description":"End of the period of time used to compute the baseline","type":"string"},"profileType":{"description":"Which property of the energy asset is modeled by this baseline","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"description":"The profile of the baseline","type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]},"example":[-100,100,100,100]},"quality":{"minimum":0,"maximum":100,"description":"Quality of the profile","type":"number"}},"required":["assetId","interval","type","season","validFrom","profileType","profile","quality"]}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a typical behaviour exhibited by a resource during a period of time","type":"object","properties":{"assetId":{"description":"Uuid of the energy asset","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the baseline (Makret Time Unit or MTU) expressed as hours. E.g. 0.25 is equivalent to 15 minutes, 1 is equivalent to 1 hour, 24 is equivalent to 1 day","type":"number"},"type":{"description":"Which kind of day is represented in the baseline","anyOf":[{"type":"string","enum":["WORKDAY"]},{"type":"string","enum":["HOLIDAY"]},{"type":"string","enum":["PREHOLIDAY"]}]},"season":{"description":"Season of the baseline","anyOf":[{"type":"string","enum":["WINTER"]},{"type":"string","enum":["SPRING"]},{"type":"string","enum":["SUMMER"]},{"type":"string","enum":["AUTUMN"]}]},"validFrom":{"description":"Start validity of the baseline","format":"date-time","type":"string"},"validTo":{"description":"End of the validity","format":"date-time","type":"string"},"computedFrom":{"description":"Beginning of the period of time used to compute the baseline","type":"string"},"computedTo":{"description":"End of the period of time used to compute the baseline","type":"string"},"profileType":{"description":"Which property of the energy asset is modeled by this baseline","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"description":"The profile of the baseline","type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]},"example":[-100,100,100,100]},"quality":{"minimum":0,"maximum":100,"description":"Quality of the profile","type":"number"}},"required":["assetId","interval","type","season","validFrom","profileType","profile","quality"]}]},{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a typical behaviour exhibited by a resource during a period of time","type":"object","properties":{"assetId":{"description":"Uuid of the energy asset","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the baseline (Makret Time Unit or MTU) expressed as hours. E.g. 0.25 is equivalent to 15 minutes, 1 is equivalent to 1 hour, 24 is equivalent to 1 day","type":"number"},"type":{"description":"Which kind of day is represented in the baseline","anyOf":[{"type":"string","enum":["WORKDAY"]},{"type":"string","enum":["HOLIDAY"]},{"type":"string","enum":["PREHOLIDAY"]}]},"season":{"description":"Season of the baseline","anyOf":[{"type":"string","enum":["WINTER"]},{"type":"string","enum":["SPRING"]},{"type":"string","enum":["SUMMER"]},{"type":"string","enum":["AUTUMN"]}]},"validFrom":{"description":"Start validity of the baseline","format":"date-time","type":"string"},"validTo":{"description":"End of the validity","format":"date-time","type":"string"},"computedFrom":{"description":"Beginning of the period of time used to compute the baseline","type":"string"},"computedTo":{"description":"End of the period of time used to compute the baseline","type":"string"},"profileType":{"description":"Which property of the energy asset is modeled by this baseline","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"description":"The profile of the baseline","type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]},"example":[-100,100,100,100]},"quality":{"minimum":0,"maximum":100,"description":"Quality of the profile","type":"number"}},"required":["assetId","interval","type","season","validFrom","profileType","profile","quality"]}]}}]}}}}}}},"/v1/projects/{projectId}/baselines/count":{"get":{"tags":["baselines"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}}}}}}}}},"/v1/projects/{projectId}/baselines/{uuid}":{"get":{"tags":["baselines"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"fields","required":false},{"schema":{"type":"string"},"in":"query","name":"include","required":false},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"assetId":{"description":"Uuid of the energy asset","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the baseline (Makret Time Unit or MTU) expressed as hours. E.g. 0.25 is equivalent to 15 minutes, 1 is equivalent to 1 hour, 24 is equivalent to 1 day","type":"number"},"type":{"description":"Which kind of day is represented in the baseline","anyOf":[{"type":"string","enum":["WORKDAY"]},{"type":"string","enum":["HOLIDAY"]},{"type":"string","enum":["PREHOLIDAY"]}]},"season":{"description":"Season of the baseline","anyOf":[{"type":"string","enum":["WINTER"]},{"type":"string","enum":["SPRING"]},{"type":"string","enum":["SUMMER"]},{"type":"string","enum":["AUTUMN"]}]},"validFrom":{"description":"Start validity of the baseline","format":"date-time","type":"string"},"validTo":{"description":"End of the validity","format":"date-time","type":"string"},"computedFrom":{"description":"Beginning of the period of time used to compute the baseline","type":"string"},"computedTo":{"description":"End of the period of time used to compute the baseline","type":"string"},"profileType":{"description":"Which property of the energy asset is modeled by this baseline","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"description":"The profile of the baseline","type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]},"example":[-100,100,100,100]},"quality":{"minimum":0,"maximum":100,"description":"Quality of the profile","type":"number"}}}]},{"type":"object","properties":{}}]}}}}}},"delete":{"tags":["baselines"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["baselines"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"assetId":{"description":"Uuid of the energy asset","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the baseline (Makret Time Unit or MTU) expressed as hours. E.g. 0.25 is equivalent to 15 minutes, 1 is equivalent to 1 hour, 24 is equivalent to 1 day","type":"number"},"type":{"description":"Which kind of day is represented in the baseline","anyOf":[{"type":"string","enum":["WORKDAY"]},{"type":"string","enum":["HOLIDAY"]},{"type":"string","enum":["PREHOLIDAY"]}]},"season":{"description":"Season of the baseline","anyOf":[{"type":"string","enum":["WINTER"]},{"type":"string","enum":["SPRING"]},{"type":"string","enum":["SUMMER"]},{"type":"string","enum":["AUTUMN"]}]},"validFrom":{"description":"Start validity of the baseline","format":"date-time","type":"string"},"validTo":{"description":"End of the validity","format":"date-time","type":"string"},"computedFrom":{"description":"Beginning of the period of time used to compute the baseline","type":"string"},"computedTo":{"description":"End of the period of time used to compute the baseline","type":"string"},"profileType":{"description":"Which property of the energy asset is modeled by this baseline","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"description":"The profile of the baseline","type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"quality":{"minimum":0,"maximum":100,"description":"Quality of the profile","type":"number"}}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a typical behaviour exhibited by a resource during a period of time","type":"object","properties":{"assetId":{"description":"Uuid of the energy asset","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the baseline (Makret Time Unit or MTU) expressed as hours. E.g. 0.25 is equivalent to 15 minutes, 1 is equivalent to 1 hour, 24 is equivalent to 1 day","type":"number"},"type":{"description":"Which kind of day is represented in the baseline","anyOf":[{"type":"string","enum":["WORKDAY"]},{"type":"string","enum":["HOLIDAY"]},{"type":"string","enum":["PREHOLIDAY"]}]},"season":{"description":"Season of the baseline","anyOf":[{"type":"string","enum":["WINTER"]},{"type":"string","enum":["SPRING"]},{"type":"string","enum":["SUMMER"]},{"type":"string","enum":["AUTUMN"]}]},"validFrom":{"description":"Start validity of the baseline","format":"date-time","type":"string"},"validTo":{"description":"End of the validity","format":"date-time","type":"string"},"computedFrom":{"description":"Beginning of the period of time used to compute the baseline","type":"string"},"computedTo":{"description":"End of the period of time used to compute the baseline","type":"string"},"profileType":{"description":"Which property of the energy asset is modeled by this baseline","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"description":"The profile of the baseline","type":"array","items":{"anyOf":[{"type":"null"},{"type":"number"}]}},"quality":{"minimum":0,"maximum":100,"description":"Quality of the profile","type":"number"}},"required":["assetId","interval","type","season","validFrom","profileType","profile","quality"]}]}}}}}}},"/v1/projects/{projectId}/flexibilityRequests":{"get":{"tags":["flexibilityRequests"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"source":{"description":"Which interface produced the request","type":"string"},"playerId":{"description":"Which player (e.g. DSO, TSO) produced the request","type":"string"},"marketId":{"enum":["RomeFlex","MindFlex","CER","HedgeIoT","GME_MI","GME_MGP","TernaMSD"],"description":"Which market produced the reques. E.g. CER","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"rawRequestId":{"description":"The id of the stored raw market request.","type":"string"},"assetIds":{"minItems":1,"description":"The list of assets that can be engaged in this flexibility request","type":"array","items":{"minLength":1,"type":"string"}},"productReferenceList":{"type":"array","items":{"type":"object","properties":{"assetId":{"description":"The id of the asset","type":"string"},"baselineId":{"description":"The id of the baseline used for the request","type":"string"},"list":{"description":"The identification of each product related to each index","type":"array","items":{"type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"productId":{"description":"The id of the product","type":"string"}},"required":["index","productId"]}}},"required":["assetId","baselineId"]}},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"validFrom":{"format":"date-time","description":"The time when the request is valid from","type":"string"},"validTo":{"format":"date-time","description":"The time when the request is valid to","type":"string"},"status":{"enum":["pending","expired","processed","delivered","partiallyDelivered","rejected","canceled"],"default":"pending","description":"The status of the request","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"flexibilityServices":{"description":"The list of requested services for each aggregate. Each service refers to a single aggregate and to a single dimension, for multiple indexes. The format is normalized while the original format is in the data property.","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}}}}]},{"type":"object","properties":{}}]}}}}}}},"post":{"tags":["flexibilityRequests"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"source":{"description":"Which interface produced the request","type":"string"},"playerId":{"description":"Which player (e.g. DSO, TSO) produced the request","type":"string"},"marketId":{"enum":["RomeFlex","MindFlex","CER","HedgeIoT","GME_MI","GME_MGP","TernaMSD"],"description":"Which market produced the reques. E.g. CER","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"rawRequestId":{"description":"The id of the stored raw market request.","type":"string"},"assetIds":{"minItems":1,"description":"The list of assets that can be engaged in this flexibility request","type":"array","items":{"minLength":1,"type":"string"}},"productReferenceList":{"type":"array","items":{"type":"object","properties":{"assetId":{"description":"The id of the asset","type":"string"},"baselineId":{"description":"The id of the baseline used for the request","type":"string"},"list":{"description":"The identification of each product related to each index","type":"array","items":{"type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"productId":{"description":"The id of the product","type":"string"}},"required":["index","productId"]}}},"required":["assetId","baselineId"]}},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"validFrom":{"format":"date-time","description":"The time when the request is valid from","type":"string"},"validTo":{"format":"date-time","description":"The time when the request is valid to","type":"string"},"status":{"enum":["pending","expired","processed","delivered","partiallyDelivered","rejected","canceled"],"default":"pending","description":"The status of the request","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"flexibilityServices":{"description":"The list of requested services for each aggregate. Each service refers to a single aggregate and to a single dimension, for multiple indexes. The format is normalized while the original format is in the data property.","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}}},"required":["source","playerId","marketId","marketRequestId","rawRequestId","assetIds","sessionType","startTime","validFrom","validTo","status","interval","flexibilityServices"]}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a request for flexibility services","type":"object","properties":{"source":{"description":"Which interface produced the request","type":"string"},"playerId":{"description":"Which player (e.g. DSO, TSO) produced the request","type":"string"},"marketId":{"enum":["RomeFlex","MindFlex","CER","HedgeIoT","GME_MI","GME_MGP","TernaMSD"],"description":"Which market produced the reques. E.g. CER","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"rawRequestId":{"description":"The id of the stored raw market request.","type":"string"},"assetIds":{"minItems":1,"description":"The list of assets that can be engaged in this flexibility request","type":"array","items":{"minLength":1,"type":"string"}},"productReferenceList":{"type":"array","items":{"type":"object","properties":{"assetId":{"description":"The id of the asset","type":"string"},"baselineId":{"description":"The id of the baseline used for the request","type":"string"},"list":{"description":"The identification of each product related to each index","type":"array","items":{"type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"productId":{"description":"The id of the product","type":"string"}},"required":["index","productId"]}}},"required":["assetId","baselineId"]}},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"validFrom":{"format":"date-time","description":"The time when the request is valid from","type":"string"},"validTo":{"format":"date-time","description":"The time when the request is valid to","type":"string"},"status":{"enum":["pending","expired","processed","delivered","partiallyDelivered","rejected","canceled"],"default":"pending","description":"The status of the request","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"flexibilityServices":{"description":"The list of requested services for each aggregate. Each service refers to a single aggregate and to a single dimension, for multiple indexes. The format is normalized while the original format is in the data property.","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}}},"required":["source","playerId","marketId","marketRequestId","rawRequestId","assetIds","sessionType","startTime","validFrom","validTo","status","interval","flexibilityServices"]}]},{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a request for flexibility services","type":"object","properties":{"source":{"description":"Which interface produced the request","type":"string"},"playerId":{"description":"Which player (e.g. DSO, TSO) produced the request","type":"string"},"marketId":{"enum":["RomeFlex","MindFlex","CER","HedgeIoT","GME_MI","GME_MGP","TernaMSD"],"description":"Which market produced the reques. E.g. CER","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"rawRequestId":{"description":"The id of the stored raw market request.","type":"string"},"assetIds":{"minItems":1,"description":"The list of assets that can be engaged in this flexibility request","type":"array","items":{"minLength":1,"type":"string"}},"productReferenceList":{"type":"array","items":{"type":"object","properties":{"assetId":{"description":"The id of the asset","type":"string"},"baselineId":{"description":"The id of the baseline used for the request","type":"string"},"list":{"description":"The identification of each product related to each index","type":"array","items":{"type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"productId":{"description":"The id of the product","type":"string"}},"required":["index","productId"]}}},"required":["assetId","baselineId"]}},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"validFrom":{"format":"date-time","description":"The time when the request is valid from","type":"string"},"validTo":{"format":"date-time","description":"The time when the request is valid to","type":"string"},"status":{"enum":["pending","expired","processed","delivered","partiallyDelivered","rejected","canceled"],"default":"pending","description":"The status of the request","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"flexibilityServices":{"description":"The list of requested services for each aggregate. Each service refers to a single aggregate and to a single dimension, for multiple indexes. The format is normalized while the original format is in the data property.","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}}},"required":["source","playerId","marketId","marketRequestId","rawRequestId","assetIds","sessionType","startTime","validFrom","validTo","status","interval","flexibilityServices"]}]}}]}}}}}}},"/v1/projects/{projectId}/flexibilityRequests/count":{"get":{"tags":["flexibilityRequests"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}}}}}}}}},"/v1/projects/{projectId}/flexibilityRequests/{uuid}":{"get":{"tags":["flexibilityRequests"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"fields","required":false},{"schema":{"type":"string"},"in":"query","name":"include","required":false},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"source":{"description":"Which interface produced the request","type":"string"},"playerId":{"description":"Which player (e.g. DSO, TSO) produced the request","type":"string"},"marketId":{"enum":["RomeFlex","MindFlex","CER","HedgeIoT","GME_MI","GME_MGP","TernaMSD"],"description":"Which market produced the reques. E.g. CER","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"rawRequestId":{"description":"The id of the stored raw market request.","type":"string"},"assetIds":{"minItems":1,"description":"The list of assets that can be engaged in this flexibility request","type":"array","items":{"minLength":1,"type":"string"}},"productReferenceList":{"type":"array","items":{"type":"object","properties":{"assetId":{"description":"The id of the asset","type":"string"},"baselineId":{"description":"The id of the baseline used for the request","type":"string"},"list":{"description":"The identification of each product related to each index","type":"array","items":{"type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"productId":{"description":"The id of the product","type":"string"}},"required":["index","productId"]}}},"required":["assetId","baselineId"]}},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"validFrom":{"format":"date-time","description":"The time when the request is valid from","type":"string"},"validTo":{"format":"date-time","description":"The time when the request is valid to","type":"string"},"status":{"enum":["pending","expired","processed","delivered","partiallyDelivered","rejected","canceled"],"default":"pending","description":"The status of the request","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"flexibilityServices":{"description":"The list of requested services for each aggregate. Each service refers to a single aggregate and to a single dimension, for multiple indexes. The format is normalized while the original format is in the data property.","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}}}}]},{"type":"object","properties":{}}]}}}}}},"delete":{"tags":["flexibilityRequests"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["flexibilityRequests"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"source":{"description":"Which interface produced the request","type":"string"},"playerId":{"description":"Which player (e.g. DSO, TSO) produced the request","type":"string"},"marketId":{"enum":["RomeFlex","MindFlex","CER","HedgeIoT","GME_MI","GME_MGP","TernaMSD"],"description":"Which market produced the reques. E.g. CER","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"rawRequestId":{"description":"The id of the stored raw market request.","type":"string"},"assetIds":{"minItems":1,"description":"The list of assets that can be engaged in this flexibility request","type":"array","items":{"minLength":1,"type":"string"}},"productReferenceList":{"type":"array","items":{"type":"object","properties":{"assetId":{"description":"The id of the asset","type":"string"},"baselineId":{"description":"The id of the baseline used for the request","type":"string"},"list":{"description":"The identification of each product related to each index","type":"array","items":{"type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"productId":{"description":"The id of the product","type":"string"}},"required":["index","productId"]}}},"required":["assetId","baselineId"]}},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"validFrom":{"format":"date-time","description":"The time when the request is valid from","type":"string"},"validTo":{"format":"date-time","description":"The time when the request is valid to","type":"string"},"status":{"enum":["pending","expired","processed","delivered","partiallyDelivered","rejected","canceled"],"default":"pending","description":"The status of the request","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"flexibilityServices":{"description":"The list of requested services for each aggregate. Each service refers to a single aggregate and to a single dimension, for multiple indexes. The format is normalized while the original format is in the data property.","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}}}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a request for flexibility services","type":"object","properties":{"source":{"description":"Which interface produced the request","type":"string"},"playerId":{"description":"Which player (e.g. DSO, TSO) produced the request","type":"string"},"marketId":{"enum":["RomeFlex","MindFlex","CER","HedgeIoT","GME_MI","GME_MGP","TernaMSD"],"description":"Which market produced the reques. E.g. CER","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"rawRequestId":{"description":"The id of the stored raw market request.","type":"string"},"assetIds":{"minItems":1,"description":"The list of assets that can be engaged in this flexibility request","type":"array","items":{"minLength":1,"type":"string"}},"productReferenceList":{"type":"array","items":{"type":"object","properties":{"assetId":{"description":"The id of the asset","type":"string"},"baselineId":{"description":"The id of the baseline used for the request","type":"string"},"list":{"description":"The identification of each product related to each index","type":"array","items":{"type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"productId":{"description":"The id of the product","type":"string"}},"required":["index","productId"]}}},"required":["assetId","baselineId"]}},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"validFrom":{"format":"date-time","description":"The time when the request is valid from","type":"string"},"validTo":{"format":"date-time","description":"The time when the request is valid to","type":"string"},"status":{"enum":["pending","expired","processed","delivered","partiallyDelivered","rejected","canceled"],"default":"pending","description":"The status of the request","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"flexibilityServices":{"description":"The list of requested services for each aggregate. Each service refers to a single aggregate and to a single dimension, for multiple indexes. The format is normalized while the original format is in the data property.","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}}},"required":["source","playerId","marketId","marketRequestId","rawRequestId","assetIds","sessionType","startTime","validFrom","validTo","status","interval","flexibilityServices"]}]}}}}}}},"/v1/projects/{projectId}/flexibilityOffers":{"get":{"tags":["flexibilityOffers"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"playerId":{"description":"Which player (e.g. DSO, TSO) produced the request","type":"string"},"marketId":{"enum":["RomeFlex","MindFlex","CER","HedgeIoT","GME_MI","GME_MGP","TernaMSD"],"description":"Which market produced the reques. E.g. CER","type":"string"},"requestId":{"description":"The uuid of the FlexibilityRequest which prompted this offer","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"rawRequestId":{"description":"The id of the stored raw market request.","type":"string"},"rawOfferId":{"description":"The id of the stored raw market offer. Might be empty if the offer raw offer was not created yet.","type":"string"},"assetIds":{"description":"The list of assets that can be engaged in this flexibility offer","type":"array","items":{"type":"string"}},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the offer (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the offer","type":"string"},"status":{"enum":["pending","expired","submitted","accepted","delivered","partiallyDelivered","rejected","failed"],"default":"pending","description":"The status of the offer","type":"string"},"flexibilityServices":{"description":"The list of offered services. Each service refers to a group of assets and to a single dimension (pUp, pDown, qUp, qDown, etc...)","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}}}}]},{"type":"object","properties":{}}]}}}}}}},"post":{"tags":["flexibilityOffers"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"playerId":{"description":"Which player (e.g. DSO, TSO) produced the request","type":"string"},"marketId":{"enum":["RomeFlex","MindFlex","CER","HedgeIoT","GME_MI","GME_MGP","TernaMSD"],"description":"Which market produced the reques. E.g. CER","type":"string"},"requestId":{"description":"The uuid of the FlexibilityRequest which prompted this offer","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"rawRequestId":{"description":"The id of the stored raw market request.","type":"string"},"rawOfferId":{"description":"The id of the stored raw market offer. Might be empty if the offer raw offer was not created yet.","type":"string"},"assetIds":{"description":"The list of assets that can be engaged in this flexibility offer","type":"array","items":{"type":"string"}},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the offer (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the offer","type":"string"},"status":{"enum":["pending","expired","submitted","accepted","delivered","partiallyDelivered","rejected","failed"],"default":"pending","description":"The status of the offer","type":"string"},"flexibilityServices":{"description":"The list of offered services. Each service refers to a group of assets and to a single dimension (pUp, pDown, qUp, qDown, etc...)","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}}},"required":["playerId","marketId","requestId","marketRequestId","rawRequestId","assetIds","sessionType","interval","startTime","status","flexibilityServices"]}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents an offer in response to a flexibility request","type":"object","properties":{"playerId":{"description":"Which player (e.g. DSO, TSO) produced the request","type":"string"},"marketId":{"enum":["RomeFlex","MindFlex","CER","HedgeIoT","GME_MI","GME_MGP","TernaMSD"],"description":"Which market produced the reques. E.g. CER","type":"string"},"requestId":{"description":"The uuid of the FlexibilityRequest which prompted this offer","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"rawRequestId":{"description":"The id of the stored raw market request.","type":"string"},"rawOfferId":{"description":"The id of the stored raw market offer. Might be empty if the offer raw offer was not created yet.","type":"string"},"assetIds":{"description":"The list of assets that can be engaged in this flexibility offer","type":"array","items":{"type":"string"}},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the offer (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the offer","type":"string"},"status":{"enum":["pending","expired","submitted","accepted","delivered","partiallyDelivered","rejected","failed"],"default":"pending","description":"The status of the offer","type":"string"},"flexibilityServices":{"description":"The list of offered services. Each service refers to a group of assets and to a single dimension (pUp, pDown, qUp, qDown, etc...)","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}}},"required":["playerId","marketId","requestId","marketRequestId","rawRequestId","assetIds","sessionType","interval","startTime","status","flexibilityServices"]}]},{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents an offer in response to a flexibility request","type":"object","properties":{"playerId":{"description":"Which player (e.g. DSO, TSO) produced the request","type":"string"},"marketId":{"enum":["RomeFlex","MindFlex","CER","HedgeIoT","GME_MI","GME_MGP","TernaMSD"],"description":"Which market produced the reques. E.g. CER","type":"string"},"requestId":{"description":"The uuid of the FlexibilityRequest which prompted this offer","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"rawRequestId":{"description":"The id of the stored raw market request.","type":"string"},"rawOfferId":{"description":"The id of the stored raw market offer. Might be empty if the offer raw offer was not created yet.","type":"string"},"assetIds":{"description":"The list of assets that can be engaged in this flexibility offer","type":"array","items":{"type":"string"}},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the offer (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the offer","type":"string"},"status":{"enum":["pending","expired","submitted","accepted","delivered","partiallyDelivered","rejected","failed"],"default":"pending","description":"The status of the offer","type":"string"},"flexibilityServices":{"description":"The list of offered services. Each service refers to a group of assets and to a single dimension (pUp, pDown, qUp, qDown, etc...)","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}}},"required":["playerId","marketId","requestId","marketRequestId","rawRequestId","assetIds","sessionType","interval","startTime","status","flexibilityServices"]}]}}]}}}}}}},"/v1/projects/{projectId}/flexibilityOffers/count":{"get":{"tags":["flexibilityOffers"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}}}}}}}}},"/v1/projects/{projectId}/flexibilityOffers/{uuid}":{"get":{"tags":["flexibilityOffers"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"fields","required":false},{"schema":{"type":"string"},"in":"query","name":"include","required":false},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"playerId":{"description":"Which player (e.g. DSO, TSO) produced the request","type":"string"},"marketId":{"enum":["RomeFlex","MindFlex","CER","HedgeIoT","GME_MI","GME_MGP","TernaMSD"],"description":"Which market produced the reques. E.g. CER","type":"string"},"requestId":{"description":"The uuid of the FlexibilityRequest which prompted this offer","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"rawRequestId":{"description":"The id of the stored raw market request.","type":"string"},"rawOfferId":{"description":"The id of the stored raw market offer. Might be empty if the offer raw offer was not created yet.","type":"string"},"assetIds":{"description":"The list of assets that can be engaged in this flexibility offer","type":"array","items":{"type":"string"}},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the offer (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the offer","type":"string"},"status":{"enum":["pending","expired","submitted","accepted","delivered","partiallyDelivered","rejected","failed"],"default":"pending","description":"The status of the offer","type":"string"},"flexibilityServices":{"description":"The list of offered services. Each service refers to a group of assets and to a single dimension (pUp, pDown, qUp, qDown, etc...)","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}}}}]},{"type":"object","properties":{}}]}}}}}},"delete":{"tags":["flexibilityOffers"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["flexibilityOffers"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"playerId":{"description":"Which player (e.g. DSO, TSO) produced the request","type":"string"},"marketId":{"enum":["RomeFlex","MindFlex","CER","HedgeIoT","GME_MI","GME_MGP","TernaMSD"],"description":"Which market produced the reques. E.g. CER","type":"string"},"requestId":{"description":"The uuid of the FlexibilityRequest which prompted this offer","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"rawRequestId":{"description":"The id of the stored raw market request.","type":"string"},"rawOfferId":{"description":"The id of the stored raw market offer. Might be empty if the offer raw offer was not created yet.","type":"string"},"assetIds":{"description":"The list of assets that can be engaged in this flexibility offer","type":"array","items":{"type":"string"}},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the offer (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the offer","type":"string"},"status":{"enum":["pending","expired","submitted","accepted","delivered","partiallyDelivered","rejected","failed"],"default":"pending","description":"The status of the offer","type":"string"},"flexibilityServices":{"description":"The list of offered services. Each service refers to a group of assets and to a single dimension (pUp, pDown, qUp, qDown, etc...)","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}}}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents an offer in response to a flexibility request","type":"object","properties":{"playerId":{"description":"Which player (e.g. DSO, TSO) produced the request","type":"string"},"marketId":{"enum":["RomeFlex","MindFlex","CER","HedgeIoT","GME_MI","GME_MGP","TernaMSD"],"description":"Which market produced the reques. E.g. CER","type":"string"},"requestId":{"description":"The uuid of the FlexibilityRequest which prompted this offer","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"rawRequestId":{"description":"The id of the stored raw market request.","type":"string"},"rawOfferId":{"description":"The id of the stored raw market offer. Might be empty if the offer raw offer was not created yet.","type":"string"},"assetIds":{"description":"The list of assets that can be engaged in this flexibility offer","type":"array","items":{"type":"string"}},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the offer (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the offer","type":"string"},"status":{"enum":["pending","expired","submitted","accepted","delivered","partiallyDelivered","rejected","failed"],"default":"pending","description":"The status of the offer","type":"string"},"flexibilityServices":{"description":"The list of offered services. Each service refers to a group of assets and to a single dimension (pUp, pDown, qUp, qDown, etc...)","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}}},"required":["playerId","marketId","requestId","marketRequestId","rawRequestId","assetIds","sessionType","interval","startTime","status","flexibilityServices"]}]}}}}}}},"/v1/projects/{projectId}/marketOutcomes":{"get":{"tags":["marketOutcomes"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"source":{"description":"Which interface produced the outcome","type":"string"},"marketId":{"description":"Which market produced the outcome","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"marketOutcomeId":{"description":"Unique identifier for the market outcome. As communicated by the market","type":"string"},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"services":{"type":"array","items":{"allOf":[{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]},{"type":"object","properties":{"assetId":{"description":"The asset related to this service","type":"string"},"baselineId":{"description":"The id of the baseline used to compute the outcome. It is optional because not all outcomes are based on baselines. For instance in the case of SPOT markets, the baseline is not used by the market. In case of flexibility markets, the baseline is needed.","type":"string"}},"required":["assetId"]}]}}}}]},{"type":"object","properties":{}}]}}}}}}},"post":{"tags":["marketOutcomes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"source":{"description":"Which interface produced the outcome","type":"string"},"marketId":{"description":"Which market produced the outcome","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"marketOutcomeId":{"description":"Unique identifier for the market outcome. As communicated by the market","type":"string"},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"services":{"type":"array","items":{"allOf":[{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]},{"type":"object","properties":{"assetId":{"description":"The asset related to this service","type":"string"},"baselineId":{"description":"The id of the baseline used to compute the outcome. It is optional because not all outcomes are based on baselines. For instance in the case of SPOT markets, the baseline is not used by the market. In case of flexibility markets, the baseline is needed.","type":"string"}},"required":["assetId"]}]}}},"required":["source","marketId","marketRequestId","marketOutcomeId","startTime","interval","sessionType","services"]}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents the outcome of a market clearing process","type":"object","properties":{"source":{"description":"Which interface produced the outcome","type":"string"},"marketId":{"description":"Which market produced the outcome","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"marketOutcomeId":{"description":"Unique identifier for the market outcome. As communicated by the market","type":"string"},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"services":{"type":"array","items":{"allOf":[{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]},{"type":"object","properties":{"assetId":{"description":"The asset related to this service","type":"string"},"baselineId":{"description":"The id of the baseline used to compute the outcome. It is optional because not all outcomes are based on baselines. For instance in the case of SPOT markets, the baseline is not used by the market. In case of flexibility markets, the baseline is needed.","type":"string"}},"required":["assetId"]}]}}},"required":["source","marketId","marketRequestId","marketOutcomeId","startTime","interval","sessionType","services"]}]},{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents the outcome of a market clearing process","type":"object","properties":{"source":{"description":"Which interface produced the outcome","type":"string"},"marketId":{"description":"Which market produced the outcome","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"marketOutcomeId":{"description":"Unique identifier for the market outcome. As communicated by the market","type":"string"},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"services":{"type":"array","items":{"allOf":[{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]},{"type":"object","properties":{"assetId":{"description":"The asset related to this service","type":"string"},"baselineId":{"description":"The id of the baseline used to compute the outcome. It is optional because not all outcomes are based on baselines. For instance in the case of SPOT markets, the baseline is not used by the market. In case of flexibility markets, the baseline is needed.","type":"string"}},"required":["assetId"]}]}}},"required":["source","marketId","marketRequestId","marketOutcomeId","startTime","interval","sessionType","services"]}]}}]}}}}}}},"/v1/projects/{projectId}/marketOutcomes/count":{"get":{"tags":["marketOutcomes"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}}}}}}}}},"/v1/projects/{projectId}/marketOutcomes/{uuid}":{"get":{"tags":["marketOutcomes"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"fields","required":false},{"schema":{"type":"string"},"in":"query","name":"include","required":false},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"source":{"description":"Which interface produced the outcome","type":"string"},"marketId":{"description":"Which market produced the outcome","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"marketOutcomeId":{"description":"Unique identifier for the market outcome. As communicated by the market","type":"string"},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"services":{"type":"array","items":{"allOf":[{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]},{"type":"object","properties":{"assetId":{"description":"The asset related to this service","type":"string"},"baselineId":{"description":"The id of the baseline used to compute the outcome. It is optional because not all outcomes are based on baselines. For instance in the case of SPOT markets, the baseline is not used by the market. In case of flexibility markets, the baseline is needed.","type":"string"}},"required":["assetId"]}]}}}}]},{"type":"object","properties":{}}]}}}}}},"delete":{"tags":["marketOutcomes"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["marketOutcomes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"source":{"description":"Which interface produced the outcome","type":"string"},"marketId":{"description":"Which market produced the outcome","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"marketOutcomeId":{"description":"Unique identifier for the market outcome. As communicated by the market","type":"string"},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"services":{"type":"array","items":{"allOf":[{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]},{"type":"object","properties":{"assetId":{"description":"The asset related to this service","type":"string"},"baselineId":{"description":"The id of the baseline used to compute the outcome. It is optional because not all outcomes are based on baselines. For instance in the case of SPOT markets, the baseline is not used by the market. In case of flexibility markets, the baseline is needed.","type":"string"}},"required":["assetId"]}]}}}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents the outcome of a market clearing process","type":"object","properties":{"source":{"description":"Which interface produced the outcome","type":"string"},"marketId":{"description":"Which market produced the outcome","type":"string"},"marketRequestId":{"description":"The id of the request as received from the reference market.","type":"string"},"marketOutcomeId":{"description":"Unique identifier for the market outcome. As communicated by the market","type":"string"},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"services":{"type":"array","items":{"allOf":[{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]},{"type":"object","properties":{"assetId":{"description":"The asset related to this service","type":"string"},"baselineId":{"description":"The id of the baseline used to compute the outcome. It is optional because not all outcomes are based on baselines. For instance in the case of SPOT markets, the baseline is not used by the market. In case of flexibility markets, the baseline is needed.","type":"string"}},"required":["assetId"]}]}}},"required":["source","marketId","marketRequestId","marketOutcomeId","startTime","interval","sessionType","services"]}]}}}}}}},"/v1/projects/{projectId}/technicalOutcomes":{"get":{"tags":["technicalOutcomes"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"marketId":{"description":"Which market produced the outcome","type":"string"},"source":{"description":"Which interface produced the outcome","type":"string"},"marketOutcomeId":{"description":"Unique identifier for the market outcome. As communicated by the market","type":"string"},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"profiles":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"profile":{"description":"Array of constraint profiles","type":"array","items":{"description":"A single index of a constraint profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"},"constraintType":{"description":"Type of constraint","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["index","value","constraintType"]}}},"required":["profile"]}]},{"type":"object","properties":{"assetId":{"description":"The asset related to this service","type":"string"},"baselineId":{"description":"The baseline related to this TechnicalOutcomeProfile","type":"string"}},"required":["assetId","baselineId"]}]}}}}]},{"type":"object","properties":{}}]}}}}}}},"post":{"tags":["technicalOutcomes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"marketId":{"description":"Which market produced the outcome","type":"string"},"source":{"description":"Which interface produced the outcome","type":"string"},"marketOutcomeId":{"description":"Unique identifier for the market outcome. As communicated by the market","type":"string"},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"profiles":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"profile":{"description":"Array of constraint profiles","type":"array","items":{"description":"A single index of a constraint profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"},"constraintType":{"description":"Type of constraint","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["index","value","constraintType"]}}},"required":["profile"]}]},{"type":"object","properties":{"assetId":{"description":"The asset related to this service","type":"string"},"baselineId":{"description":"The baseline related to this TechnicalOutcomeProfile","type":"string"}},"required":["assetId","baselineId"]}]}}},"required":["marketId","source","marketOutcomeId","sessionType","interval","startTime","profiles"]}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents the outcome of a market clearing process","type":"object","properties":{"marketId":{"description":"Which market produced the outcome","type":"string"},"source":{"description":"Which interface produced the outcome","type":"string"},"marketOutcomeId":{"description":"Unique identifier for the market outcome. As communicated by the market","type":"string"},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"profiles":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"profile":{"description":"Array of constraint profiles","type":"array","items":{"description":"A single index of a constraint profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"},"constraintType":{"description":"Type of constraint","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["index","value","constraintType"]}}},"required":["profile"]}]},{"type":"object","properties":{"assetId":{"description":"The asset related to this service","type":"string"},"baselineId":{"description":"The baseline related to this TechnicalOutcomeProfile","type":"string"}},"required":["assetId","baselineId"]}]}}},"required":["marketId","source","marketOutcomeId","sessionType","interval","startTime","profiles"]}]},{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents the outcome of a market clearing process","type":"object","properties":{"marketId":{"description":"Which market produced the outcome","type":"string"},"source":{"description":"Which interface produced the outcome","type":"string"},"marketOutcomeId":{"description":"Unique identifier for the market outcome. As communicated by the market","type":"string"},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"profiles":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"profile":{"description":"Array of constraint profiles","type":"array","items":{"description":"A single index of a constraint profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"},"constraintType":{"description":"Type of constraint","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["index","value","constraintType"]}}},"required":["profile"]}]},{"type":"object","properties":{"assetId":{"description":"The asset related to this service","type":"string"},"baselineId":{"description":"The baseline related to this TechnicalOutcomeProfile","type":"string"}},"required":["assetId","baselineId"]}]}}},"required":["marketId","source","marketOutcomeId","sessionType","interval","startTime","profiles"]}]}}]}}}}}}},"/v1/projects/{projectId}/technicalOutcomes/count":{"get":{"tags":["technicalOutcomes"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}}}}}}}}},"/v1/projects/{projectId}/technicalOutcomes/{uuid}":{"get":{"tags":["technicalOutcomes"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"fields","required":false},{"schema":{"type":"string"},"in":"query","name":"include","required":false},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"marketId":{"description":"Which market produced the outcome","type":"string"},"source":{"description":"Which interface produced the outcome","type":"string"},"marketOutcomeId":{"description":"Unique identifier for the market outcome. As communicated by the market","type":"string"},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"profiles":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"profile":{"description":"Array of constraint profiles","type":"array","items":{"description":"A single index of a constraint profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"},"constraintType":{"description":"Type of constraint","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["index","value","constraintType"]}}},"required":["profile"]}]},{"type":"object","properties":{"assetId":{"description":"The asset related to this service","type":"string"},"baselineId":{"description":"The baseline related to this TechnicalOutcomeProfile","type":"string"}},"required":["assetId","baselineId"]}]}}}}]},{"type":"object","properties":{}}]}}}}}},"delete":{"tags":["technicalOutcomes"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["technicalOutcomes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"marketId":{"description":"Which market produced the outcome","type":"string"},"source":{"description":"Which interface produced the outcome","type":"string"},"marketOutcomeId":{"description":"Unique identifier for the market outcome. As communicated by the market","type":"string"},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"profiles":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"profile":{"description":"Array of constraint profiles","type":"array","items":{"description":"A single index of a constraint profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"},"constraintType":{"description":"Type of constraint","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["index","value","constraintType"]}}},"required":["profile"]}]},{"type":"object","properties":{"assetId":{"description":"The asset related to this service","type":"string"},"baselineId":{"description":"The baseline related to this TechnicalOutcomeProfile","type":"string"}},"required":["assetId","baselineId"]}]}}}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents the outcome of a market clearing process","type":"object","properties":{"marketId":{"description":"Which market produced the outcome","type":"string"},"source":{"description":"Which interface produced the outcome","type":"string"},"marketOutcomeId":{"description":"Unique identifier for the market outcome. As communicated by the market","type":"string"},"sessionType":{"description":"The sessiontype of the request","anyOf":[{"type":"string","enum":["dayAhead"]},{"type":"string","enum":["realTime"]}]},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the request (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the request","type":"string"},"profiles":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"profile":{"description":"Array of constraint profiles","type":"array","items":{"description":"A single index of a constraint profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"},"constraintType":{"description":"Type of constraint","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["index","value","constraintType"]}}},"required":["profile"]}]},{"type":"object","properties":{"assetId":{"description":"The asset related to this service","type":"string"},"baselineId":{"description":"The baseline related to this TechnicalOutcomeProfile","type":"string"}},"required":["assetId","baselineId"]}]}}},"required":["marketId","source","marketOutcomeId","sessionType","interval","startTime","profiles"]}]}}}}}}},"/v1/projects/{projectId}/setpoints":{"get":{"tags":["setpoints"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"source":{"description":"The source of the setpoint","anyOf":[{"type":"string","enum":["market"]},{"type":"string","enum":["simulation"]}]},"assetId":{"description":"The id of the asset that the setpoint is related to","type":"string"},"requestId":{"description":"The id of the request that generated this setpoint","type":"string"},"offerId":{"description":"The id of the offer that generated this setpoint","type":"string"},"outcomeId":{"description":"The id of the market outcome that generated this setpoint","type":"string"},"flexibilityServiceId":{"description":"The flexibility service (within the offer) related to this profile","type":"string"},"status":{"enum":["pending","active","completed","failed"],"default":"pending","description":"The status of the setpoint","type":"string"},"setpointType":{"enum":["absolute","deltaToBaseline"],"default":"absolute","description":"The type of the setpoint. Absolute setpoints are expressed in absolute values, while relative setpoints are expressed as a delta to the baseline value","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the offer (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the activation","type":"string"},"measurementUnit":{"type":"string"},"serviceType":{"description":"Type of service provided by the setpoint. This should be in accordance with the serviceType of the offer that generated it","default":"TARGET_VALUE_UP","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"profileType":{"description":"Which property of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"type":"array","items":{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]}},"marketId":{"description":"The id of the market","type":"string"},"projectId":{"description":"The id of the project","type":"string"}}}]},{"type":"object","properties":{}}]}}}}}}},"post":{"tags":["setpoints"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"source":{"description":"The source of the setpoint","anyOf":[{"type":"string","enum":["market"]},{"type":"string","enum":["simulation"]}]},"assetId":{"description":"The id of the asset that the setpoint is related to","type":"string"},"requestId":{"description":"The id of the request that generated this setpoint","type":"string"},"offerId":{"description":"The id of the offer that generated this setpoint","type":"string"},"outcomeId":{"description":"The id of the market outcome that generated this setpoint","type":"string"},"flexibilityServiceId":{"description":"The flexibility service (within the offer) related to this profile","type":"string"},"status":{"enum":["pending","active","completed","failed"],"default":"pending","description":"The status of the setpoint","type":"string"},"setpointType":{"enum":["absolute","deltaToBaseline"],"default":"absolute","description":"The type of the setpoint. Absolute setpoints are expressed in absolute values, while relative setpoints are expressed as a delta to the baseline value","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the offer (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the activation","type":"string"},"measurementUnit":{"type":"string"},"serviceType":{"description":"Type of service provided by the setpoint. This should be in accordance with the serviceType of the offer that generated it","default":"TARGET_VALUE_UP","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"profileType":{"description":"Which property of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"type":"array","items":{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]}},"marketId":{"description":"The id of the market","type":"string"}},"required":["source","assetId","flexibilityServiceId","status","setpointType","interval","startTime","measurementUnit","serviceType","profileType","profile"]}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a control signal for an energy asset","type":"object","properties":{"source":{"description":"The source of the setpoint","anyOf":[{"type":"string","enum":["market"]},{"type":"string","enum":["simulation"]}]},"assetId":{"description":"The id of the asset that the setpoint is related to","type":"string"},"requestId":{"description":"The id of the request that generated this setpoint","type":"string"},"offerId":{"description":"The id of the offer that generated this setpoint","type":"string"},"outcomeId":{"description":"The id of the market outcome that generated this setpoint","type":"string"},"flexibilityServiceId":{"description":"The flexibility service (within the offer) related to this profile","type":"string"},"status":{"enum":["pending","active","completed","failed"],"default":"pending","description":"The status of the setpoint","type":"string"},"setpointType":{"enum":["absolute","deltaToBaseline"],"default":"absolute","description":"The type of the setpoint. Absolute setpoints are expressed in absolute values, while relative setpoints are expressed as a delta to the baseline value","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the offer (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the activation","type":"string"},"measurementUnit":{"type":"string"},"serviceType":{"description":"Type of service provided by the setpoint. This should be in accordance with the serviceType of the offer that generated it","default":"TARGET_VALUE_UP","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"profileType":{"description":"Which property of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"type":"array","items":{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]}},"marketId":{"description":"The id of the market","type":"string"},"projectId":{"description":"The id of the project","type":"string"}},"required":["source","assetId","flexibilityServiceId","status","setpointType","interval","startTime","measurementUnit","serviceType","profileType","profile","projectId"]}]},{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a control signal for an energy asset","type":"object","properties":{"source":{"description":"The source of the setpoint","anyOf":[{"type":"string","enum":["market"]},{"type":"string","enum":["simulation"]}]},"assetId":{"description":"The id of the asset that the setpoint is related to","type":"string"},"requestId":{"description":"The id of the request that generated this setpoint","type":"string"},"offerId":{"description":"The id of the offer that generated this setpoint","type":"string"},"outcomeId":{"description":"The id of the market outcome that generated this setpoint","type":"string"},"flexibilityServiceId":{"description":"The flexibility service (within the offer) related to this profile","type":"string"},"status":{"enum":["pending","active","completed","failed"],"default":"pending","description":"The status of the setpoint","type":"string"},"setpointType":{"enum":["absolute","deltaToBaseline"],"default":"absolute","description":"The type of the setpoint. Absolute setpoints are expressed in absolute values, while relative setpoints are expressed as a delta to the baseline value","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the offer (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the activation","type":"string"},"measurementUnit":{"type":"string"},"serviceType":{"description":"Type of service provided by the setpoint. This should be in accordance with the serviceType of the offer that generated it","default":"TARGET_VALUE_UP","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"profileType":{"description":"Which property of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"type":"array","items":{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]}},"marketId":{"description":"The id of the market","type":"string"},"projectId":{"description":"The id of the project","type":"string"}},"required":["source","assetId","flexibilityServiceId","status","setpointType","interval","startTime","measurementUnit","serviceType","profileType","profile","projectId"]}]}}]}}}}}}},"/v1/projects/{projectId}/setpoints/count":{"get":{"tags":["setpoints"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}}}}}}}}},"/v1/projects/{projectId}/setpoints/{uuid}":{"get":{"tags":["setpoints"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"fields","required":false},{"schema":{"type":"string"},"in":"query","name":"include","required":false},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"source":{"description":"The source of the setpoint","anyOf":[{"type":"string","enum":["market"]},{"type":"string","enum":["simulation"]}]},"assetId":{"description":"The id of the asset that the setpoint is related to","type":"string"},"requestId":{"description":"The id of the request that generated this setpoint","type":"string"},"offerId":{"description":"The id of the offer that generated this setpoint","type":"string"},"outcomeId":{"description":"The id of the market outcome that generated this setpoint","type":"string"},"flexibilityServiceId":{"description":"The flexibility service (within the offer) related to this profile","type":"string"},"status":{"enum":["pending","active","completed","failed"],"default":"pending","description":"The status of the setpoint","type":"string"},"setpointType":{"enum":["absolute","deltaToBaseline"],"default":"absolute","description":"The type of the setpoint. Absolute setpoints are expressed in absolute values, while relative setpoints are expressed as a delta to the baseline value","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the offer (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the activation","type":"string"},"measurementUnit":{"type":"string"},"serviceType":{"description":"Type of service provided by the setpoint. This should be in accordance with the serviceType of the offer that generated it","default":"TARGET_VALUE_UP","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"profileType":{"description":"Which property of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"type":"array","items":{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]}},"marketId":{"description":"The id of the market","type":"string"},"projectId":{"description":"The id of the project","type":"string"}}}]},{"type":"object","properties":{}}]}}}}}},"delete":{"tags":["setpoints"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["setpoints"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"source":{"description":"The source of the setpoint","anyOf":[{"type":"string","enum":["market"]},{"type":"string","enum":["simulation"]}]},"assetId":{"description":"The id of the asset that the setpoint is related to","type":"string"},"requestId":{"description":"The id of the request that generated this setpoint","type":"string"},"offerId":{"description":"The id of the offer that generated this setpoint","type":"string"},"outcomeId":{"description":"The id of the market outcome that generated this setpoint","type":"string"},"flexibilityServiceId":{"description":"The flexibility service (within the offer) related to this profile","type":"string"},"status":{"enum":["pending","active","completed","failed"],"default":"pending","description":"The status of the setpoint","type":"string"},"setpointType":{"enum":["absolute","deltaToBaseline"],"default":"absolute","description":"The type of the setpoint. Absolute setpoints are expressed in absolute values, while relative setpoints are expressed as a delta to the baseline value","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the offer (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the activation","type":"string"},"measurementUnit":{"type":"string"},"serviceType":{"description":"Type of service provided by the setpoint. This should be in accordance with the serviceType of the offer that generated it","default":"TARGET_VALUE_UP","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"profileType":{"description":"Which property of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"type":"array","items":{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]}},"marketId":{"description":"The id of the market","type":"string"}}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a control signal for an energy asset","type":"object","properties":{"source":{"description":"The source of the setpoint","anyOf":[{"type":"string","enum":["market"]},{"type":"string","enum":["simulation"]}]},"assetId":{"description":"The id of the asset that the setpoint is related to","type":"string"},"requestId":{"description":"The id of the request that generated this setpoint","type":"string"},"offerId":{"description":"The id of the offer that generated this setpoint","type":"string"},"outcomeId":{"description":"The id of the market outcome that generated this setpoint","type":"string"},"flexibilityServiceId":{"description":"The flexibility service (within the offer) related to this profile","type":"string"},"status":{"enum":["pending","active","completed","failed"],"default":"pending","description":"The status of the setpoint","type":"string"},"setpointType":{"enum":["absolute","deltaToBaseline"],"default":"absolute","description":"The type of the setpoint. Absolute setpoints are expressed in absolute values, while relative setpoints are expressed as a delta to the baseline value","type":"string"},"interval":{"minimum":0,"maximum":4294967295,"description":"The Granularity of the offer (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"startTime":{"format":"date-time","description":"The start time of the activation","type":"string"},"measurementUnit":{"type":"string"},"serviceType":{"description":"Type of service provided by the setpoint. This should be in accordance with the serviceType of the offer that generated it","default":"TARGET_VALUE_UP","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"profileType":{"description":"Which property of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"type":"array","items":{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]}},"marketId":{"description":"The id of the market","type":"string"},"projectId":{"description":"The id of the project","type":"string"}},"required":["source","assetId","flexibilityServiceId","status","setpointType","interval","startTime","measurementUnit","serviceType","profileType","profile","projectId"]}]}}}}}}},"/v1/projects/{projectId}/simulations":{"get":{"tags":["simulations"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"requestId":{"description":"Id of the request that generated the simulation","type":"string"},"offerId":{"description":"Id of the offer generated by the simulation","type":"string"},"outcomeId":{"description":"Id of the market outcome that generated the simulation","type":"string"},"status":{"enum":["pending","confirmed","expired"],"default":"pending","description":"The status of the simulation","type":"string"},"activeAssets":{"type":"array","items":{"type":"string"}},"flexibilityServices":{"description":"The list of requested services for each aggregate. Each service refers to a single aggregate and to a single dimension, for multiple indexes. The format is normalized while the original format is in the data property.","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}},"flexibilityProfiles":{"description":"How the resources will be used. Each profile refers to a single asset or a single aggregate and to a single dimension, for multiple indexes.","type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"type":"array","items":{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]}}},"required":["uuid","measurementUnit","interval","profileType","profile"]},{"type":"object","properties":{"assetId":{"description":"The asset related to to  profile","type":"string"},"flexibilityServiceId":{"description":"The flexibility service related to this profile","type":"string"},"serviceType":{"description":"Type of service to simulate","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["assetId","flexibilityServiceId","serviceType"]}]}}}}]},{"type":"object","properties":{}}]}}}}}}},"post":{"tags":["simulations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"requestId":{"description":"Id of the request that generated the simulation","type":"string"},"offerId":{"description":"Id of the offer generated by the simulation","type":"string"},"outcomeId":{"description":"Id of the market outcome that generated the simulation","type":"string"},"status":{"enum":["pending","confirmed","expired"],"default":"pending","description":"The status of the simulation","type":"string"},"activeAssets":{"type":"array","items":{"type":"string"}},"flexibilityServices":{"description":"The list of requested services for each aggregate. Each service refers to a single aggregate and to a single dimension, for multiple indexes. The format is normalized while the original format is in the data property.","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}},"flexibilityProfiles":{"description":"How the resources will be used. Each profile refers to a single asset or a single aggregate and to a single dimension, for multiple indexes.","type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"type":"array","items":{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]}}},"required":["uuid","measurementUnit","interval","profileType","profile"]},{"type":"object","properties":{"assetId":{"description":"The asset related to to  profile","type":"string"},"flexibilityServiceId":{"description":"The flexibility service related to this profile","type":"string"},"serviceType":{"description":"Type of service to simulate","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["assetId","flexibilityServiceId","serviceType"]}]}}},"required":["status","activeAssets","flexibilityServices","flexibilityProfiles"]}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a simulation within more energy assets","type":"object","properties":{"requestId":{"description":"Id of the request that generated the simulation","type":"string"},"offerId":{"description":"Id of the offer generated by the simulation","type":"string"},"outcomeId":{"description":"Id of the market outcome that generated the simulation","type":"string"},"status":{"enum":["pending","confirmed","expired"],"default":"pending","description":"The status of the simulation","type":"string"},"activeAssets":{"type":"array","items":{"type":"string"}},"flexibilityServices":{"description":"The list of requested services for each aggregate. Each service refers to a single aggregate and to a single dimension, for multiple indexes. The format is normalized while the original format is in the data property.","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}},"flexibilityProfiles":{"description":"How the resources will be used. Each profile refers to a single asset or a single aggregate and to a single dimension, for multiple indexes.","type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"type":"array","items":{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]}}},"required":["uuid","measurementUnit","interval","profileType","profile"]},{"type":"object","properties":{"assetId":{"description":"The asset related to to  profile","type":"string"},"flexibilityServiceId":{"description":"The flexibility service related to this profile","type":"string"},"serviceType":{"description":"Type of service to simulate","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["assetId","flexibilityServiceId","serviceType"]}]}}},"required":["status","activeAssets","flexibilityServices","flexibilityProfiles"]}]},{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a simulation within more energy assets","type":"object","properties":{"requestId":{"description":"Id of the request that generated the simulation","type":"string"},"offerId":{"description":"Id of the offer generated by the simulation","type":"string"},"outcomeId":{"description":"Id of the market outcome that generated the simulation","type":"string"},"status":{"enum":["pending","confirmed","expired"],"default":"pending","description":"The status of the simulation","type":"string"},"activeAssets":{"type":"array","items":{"type":"string"}},"flexibilityServices":{"description":"The list of requested services for each aggregate. Each service refers to a single aggregate and to a single dimension, for multiple indexes. The format is normalized while the original format is in the data property.","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}},"flexibilityProfiles":{"description":"How the resources will be used. Each profile refers to a single asset or a single aggregate and to a single dimension, for multiple indexes.","type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"type":"array","items":{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]}}},"required":["uuid","measurementUnit","interval","profileType","profile"]},{"type":"object","properties":{"assetId":{"description":"The asset related to to  profile","type":"string"},"flexibilityServiceId":{"description":"The flexibility service related to this profile","type":"string"},"serviceType":{"description":"Type of service to simulate","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["assetId","flexibilityServiceId","serviceType"]}]}}},"required":["status","activeAssets","flexibilityServices","flexibilityProfiles"]}]}}]}}}}}}},"/v1/projects/{projectId}/simulations/count":{"get":{"tags":["simulations"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}}}}}}}}},"/v1/projects/{projectId}/simulations/{uuid}":{"get":{"tags":["simulations"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"fields","required":false},{"schema":{"type":"string"},"in":"query","name":"include","required":false},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"requestId":{"description":"Id of the request that generated the simulation","type":"string"},"offerId":{"description":"Id of the offer generated by the simulation","type":"string"},"outcomeId":{"description":"Id of the market outcome that generated the simulation","type":"string"},"status":{"enum":["pending","confirmed","expired"],"default":"pending","description":"The status of the simulation","type":"string"},"activeAssets":{"type":"array","items":{"type":"string"}},"flexibilityServices":{"description":"The list of requested services for each aggregate. Each service refers to a single aggregate and to a single dimension, for multiple indexes. The format is normalized while the original format is in the data property.","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}},"flexibilityProfiles":{"description":"How the resources will be used. Each profile refers to a single asset or a single aggregate and to a single dimension, for multiple indexes.","type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"type":"array","items":{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]}}},"required":["uuid","measurementUnit","interval","profileType","profile"]},{"type":"object","properties":{"assetId":{"description":"The asset related to to  profile","type":"string"},"flexibilityServiceId":{"description":"The flexibility service related to this profile","type":"string"},"serviceType":{"description":"Type of service to simulate","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["assetId","flexibilityServiceId","serviceType"]}]}}}}]},{"type":"object","properties":{}}]}}}}}},"delete":{"tags":["simulations"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["simulations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"requestId":{"description":"Id of the request that generated the simulation","type":"string"},"offerId":{"description":"Id of the offer generated by the simulation","type":"string"},"outcomeId":{"description":"Id of the market outcome that generated the simulation","type":"string"},"activeAssets":{"type":"array","items":{"type":"string"}},"flexibilityServices":{"description":"The list of requested services for each aggregate. Each service refers to a single aggregate and to a single dimension, for multiple indexes. The format is normalized while the original format is in the data property.","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}},"flexibilityProfiles":{"description":"How the resources will be used. Each profile refers to a single asset or a single aggregate and to a single dimension, for multiple indexes.","type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"type":"array","items":{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]}}},"required":["uuid","measurementUnit","interval","profileType","profile"]},{"type":"object","properties":{"assetId":{"description":"The asset related to to  profile","type":"string"},"flexibilityServiceId":{"description":"The flexibility service related to this profile","type":"string"},"serviceType":{"description":"Type of service to simulate","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["assetId","flexibilityServiceId","serviceType"]}]}}}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a simulation within more energy assets","type":"object","properties":{"requestId":{"description":"Id of the request that generated the simulation","type":"string"},"offerId":{"description":"Id of the offer generated by the simulation","type":"string"},"outcomeId":{"description":"Id of the market outcome that generated the simulation","type":"string"},"status":{"enum":["pending","confirmed","expired"],"default":"pending","description":"The status of the simulation","type":"string"},"activeAssets":{"type":"array","items":{"type":"string"}},"flexibilityServices":{"description":"The list of requested services for each aggregate. Each service refers to a single aggregate and to a single dimension, for multiple indexes. The format is normalized while the original format is in the data property.","type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["uuid","measurementUnit","interval","profileType"]},{"type":"object","properties":{"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["serviceType"]}]},{"type":"object","properties":{"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"profile":{"type":"array","items":{"description":"A single index of a service profile, with a price","type":"object","allOf":[{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]},{"type":"object","properties":{"price":{"minimum":0,"maximum":4294967295,"description":"Price for the service at this index","type":"number"},"productId":{"description":"Optional identifier of the product","type":"string"}},"required":["price"]}]}}},"required":["measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","profile"]}]}},"flexibilityProfiles":{"description":"How the resources will be used. Each profile refers to a single asset or a single aggregate and to a single dimension, for multiple indexes.","type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"measurementUnit":{"type":"string"},"interval":{"default":0.25,"minimum":0,"maximum":4294967295,"description":"The Granularity of the profile (Market Time Unit or MTU) in hours. 0.25 means 15 minutes","type":"number"},"profileType":{"description":"Which property of the energy asset, for instance ACTIVE_POWER, or INJECTED_ENERGY","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]},"profile":{"type":"array","items":{"description":"A single index of a profile","type":"object","properties":{"index":{"minimum":0,"description":"The index of the period","type":"number"},"value":{"minimum":0,"maximum":4294967295,"description":"Value of the service at this index","type":"number"}},"required":["index","value"]}}},"required":["uuid","measurementUnit","interval","profileType","profile"]},{"type":"object","properties":{"assetId":{"description":"The asset related to to  profile","type":"string"},"flexibilityServiceId":{"description":"The flexibility service related to this profile","type":"string"},"serviceType":{"description":"Type of service to simulate","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]}},"required":["assetId","flexibilityServiceId","serviceType"]}]}}},"required":["status","activeAssets","flexibilityServices","flexibilityProfiles"]}]}}}}}}},"/v1/projects/{projectId}/products":{"get":{"tags":["products"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"name":{"description":"Name of the product","type":"string"},"description":{"description":"Textual description of the product","type":"string"},"country":{"description":"Country code of origin of the product","type":"string"},"zones":{"type":"array","items":{"description":"Zone ids to consider for this market. If provided, only assets located in these zones will be considered.","type":"string"}},"interval":{"minimum":0.0001,"maximum":100000,"description":"Market Time Unit (MTU) in hours","type":"number"},"priority":{"minimum":0,"maximum":100,"default":50,"description":"Product priority (0-100, higher value = higher priority)","type":"number"},"deliveryScheduling":{"type":"object","properties":{"period":{"anyOf":[{"type":"string","enum":["QUARTER_HOURLY"]},{"type":"string","enum":["HOURLY"]},{"type":"string","enum":["DAILY"]},{"type":"string","enum":["WEEKLY"]},{"type":"string","enum":["MONTHLY"]},{"type":"string","enum":["QUARTERLY"]},{"type":"string","enum":["ANNUALLY"]},{"type":"string","enum":["ONE_TIME"]}]},"startDate":{"format":"date-time","description":"Start date and time of the product scheduling","type":"string"},"endDate":{"format":"date-time","description":"End date and time of the product scheduling","type":"string"},"startHour":{"format":"time","description":"Start hour of the product scheduling","type":"string"},"endHour":{"format":"time","description":"End hour of the product scheduling","type":"string"},"days":{"minItems":1,"maxItems":7,"description":"Days of the week (0-6, 0 = Sunday)","type":"array","items":{"minimum":0,"maximum":6,"description":"Day of the week (0-6, 0 = Sunday)","type":"number"}},"holidays":{"description":"Indicates whether the product scheduling is valid on holidays. Based on the country's holidays","type":"boolean"}},"required":["period","startDate","endDate","startHour","endHour","days","holidays"]},"services":{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"name":{"description":"Name of the service. For example 'Capacity UP'","type":"string"},"uuid":{"description":"Unique product service identifier","type":"string"},"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"paymentCondition":{"description":"Condition under which payment is due for the service","anyOf":[{"type":"string","enum":["ALWAYS"]},{"type":"string","enum":["IF_OFFERED"]},{"type":"string","enum":["IF_ACCEPTED"]},{"type":"string","enum":["IF_DELIVERED"]}]},"quantityType":{"description":"Which quantity of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["name","uuid","serviceType","measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","paymentCondition","quantityType"]},{"type":"object","properties":{"minQuantity":{"description":"Minimum quantity of the product","type":"number"},"quantity":{"description":"Maximum quantity of the product","type":"number"},"price":{"description":"Price of the product","type":"number"},"quantityTolerance":{"description":"Allowed tolerance on the quantity, expressed as a percentage of the quantity","type":"number"}},"required":["minQuantity","quantity","price","quantityTolerance"]}]}}}}]},{"type":"object","properties":{"capacityAllocations":{},"productType":{}}}]}}}}}}},"post":{"tags":["products"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"name":{"description":"Name of the product","type":"string"},"description":{"description":"Textual description of the product","type":"string"},"country":{"description":"Country code of origin of the product","type":"string"},"zones":{"type":"array","items":{"description":"Zone ids to consider for this market. If provided, only assets located in these zones will be considered.","type":"string"}},"interval":{"minimum":0.0001,"maximum":100000,"description":"Market Time Unit (MTU) in hours","type":"number"},"priority":{"minimum":0,"maximum":100,"default":50,"description":"Product priority (0-100, higher value = higher priority)","type":"number"},"deliveryScheduling":{"type":"object","properties":{"period":{"anyOf":[{"type":"string","enum":["QUARTER_HOURLY"]},{"type":"string","enum":["HOURLY"]},{"type":"string","enum":["DAILY"]},{"type":"string","enum":["WEEKLY"]},{"type":"string","enum":["MONTHLY"]},{"type":"string","enum":["QUARTERLY"]},{"type":"string","enum":["ANNUALLY"]},{"type":"string","enum":["ONE_TIME"]}]},"startDate":{"format":"date-time","description":"Start date and time of the product scheduling","type":"string"},"endDate":{"format":"date-time","description":"End date and time of the product scheduling","type":"string"},"startHour":{"format":"time","description":"Start hour of the product scheduling","type":"string"},"endHour":{"format":"time","description":"End hour of the product scheduling","type":"string"},"days":{"minItems":1,"maxItems":7,"description":"Days of the week (0-6, 0 = Sunday)","type":"array","items":{"minimum":0,"maximum":6,"description":"Day of the week (0-6, 0 = Sunday)","type":"number"}},"holidays":{"description":"Indicates whether the product scheduling is valid on holidays. Based on the country's holidays","type":"boolean"}},"required":["period","startDate","endDate","startHour","endHour","days","holidays"]},"services":{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"name":{"description":"Name of the service. For example 'Capacity UP'","type":"string"},"uuid":{"description":"Unique product service identifier","type":"string"},"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"paymentCondition":{"description":"Condition under which payment is due for the service","anyOf":[{"type":"string","enum":["ALWAYS"]},{"type":"string","enum":["IF_OFFERED"]},{"type":"string","enum":["IF_ACCEPTED"]},{"type":"string","enum":["IF_DELIVERED"]}]},"quantityType":{"description":"Which quantity of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["name","uuid","serviceType","measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","paymentCondition","quantityType"]},{"type":"object","properties":{"minQuantity":{"description":"Minimum quantity of the product","type":"number"},"quantity":{"description":"Maximum quantity of the product","type":"number"},"price":{"description":"Price of the product","type":"number"},"quantityTolerance":{"description":"Allowed tolerance on the quantity, expressed as a percentage of the quantity","type":"number"}},"required":["minQuantity","quantity","price","quantityTolerance"]}]}}},"required":["interval","priority","deliveryScheduling","services"]}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a group of energy assets, such as a Virtual Power Plant, or an Energy Community or just a logic aggregate. A single asset can belong to multiple aggregates, operations on aggregates such as simulations should warn of conflicting operations (e.g. cannot produce optimizations on two aggregates whereas there are overlapping assets)","type":"object","properties":{"name":{"description":"Name of the product","type":"string"},"description":{"description":"Textual description of the product","type":"string"},"country":{"description":"Country code of origin of the product","type":"string"},"zones":{"type":"array","items":{"description":"Zone ids to consider for this market. If provided, only assets located in these zones will be considered.","type":"string"}},"interval":{"minimum":0.0001,"maximum":100000,"description":"Market Time Unit (MTU) in hours","type":"number"},"priority":{"minimum":0,"maximum":100,"default":50,"description":"Product priority (0-100, higher value = higher priority)","type":"number"},"deliveryScheduling":{"type":"object","properties":{"period":{"anyOf":[{"type":"string","enum":["QUARTER_HOURLY"]},{"type":"string","enum":["HOURLY"]},{"type":"string","enum":["DAILY"]},{"type":"string","enum":["WEEKLY"]},{"type":"string","enum":["MONTHLY"]},{"type":"string","enum":["QUARTERLY"]},{"type":"string","enum":["ANNUALLY"]},{"type":"string","enum":["ONE_TIME"]}]},"startDate":{"format":"date-time","description":"Start date and time of the product scheduling","type":"string"},"endDate":{"format":"date-time","description":"End date and time of the product scheduling","type":"string"},"startHour":{"format":"time","description":"Start hour of the product scheduling","type":"string"},"endHour":{"format":"time","description":"End hour of the product scheduling","type":"string"},"days":{"minItems":1,"maxItems":7,"description":"Days of the week (0-6, 0 = Sunday)","type":"array","items":{"minimum":0,"maximum":6,"description":"Day of the week (0-6, 0 = Sunday)","type":"number"}},"holidays":{"description":"Indicates whether the product scheduling is valid on holidays. Based on the country's holidays","type":"boolean"}},"required":["period","startDate","endDate","startHour","endHour","days","holidays"]},"services":{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"name":{"description":"Name of the service. For example 'Capacity UP'","type":"string"},"uuid":{"description":"Unique product service identifier","type":"string"},"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"paymentCondition":{"description":"Condition under which payment is due for the service","anyOf":[{"type":"string","enum":["ALWAYS"]},{"type":"string","enum":["IF_OFFERED"]},{"type":"string","enum":["IF_ACCEPTED"]},{"type":"string","enum":["IF_DELIVERED"]}]},"quantityType":{"description":"Which quantity of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["name","uuid","serviceType","measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","paymentCondition","quantityType"]},{"type":"object","properties":{"minQuantity":{"description":"Minimum quantity of the product","type":"number"},"quantity":{"description":"Maximum quantity of the product","type":"number"},"price":{"description":"Price of the product","type":"number"},"quantityTolerance":{"description":"Allowed tolerance on the quantity, expressed as a percentage of the quantity","type":"number"}},"required":["minQuantity","quantity","price","quantityTolerance"]}]}}},"required":["interval","priority","deliveryScheduling","services"]}]},{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a group of energy assets, such as a Virtual Power Plant, or an Energy Community or just a logic aggregate. A single asset can belong to multiple aggregates, operations on aggregates such as simulations should warn of conflicting operations (e.g. cannot produce optimizations on two aggregates whereas there are overlapping assets)","type":"object","properties":{"name":{"description":"Name of the product","type":"string"},"description":{"description":"Textual description of the product","type":"string"},"country":{"description":"Country code of origin of the product","type":"string"},"zones":{"type":"array","items":{"description":"Zone ids to consider for this market. If provided, only assets located in these zones will be considered.","type":"string"}},"interval":{"minimum":0.0001,"maximum":100000,"description":"Market Time Unit (MTU) in hours","type":"number"},"priority":{"minimum":0,"maximum":100,"default":50,"description":"Product priority (0-100, higher value = higher priority)","type":"number"},"deliveryScheduling":{"type":"object","properties":{"period":{"anyOf":[{"type":"string","enum":["QUARTER_HOURLY"]},{"type":"string","enum":["HOURLY"]},{"type":"string","enum":["DAILY"]},{"type":"string","enum":["WEEKLY"]},{"type":"string","enum":["MONTHLY"]},{"type":"string","enum":["QUARTERLY"]},{"type":"string","enum":["ANNUALLY"]},{"type":"string","enum":["ONE_TIME"]}]},"startDate":{"format":"date-time","description":"Start date and time of the product scheduling","type":"string"},"endDate":{"format":"date-time","description":"End date and time of the product scheduling","type":"string"},"startHour":{"format":"time","description":"Start hour of the product scheduling","type":"string"},"endHour":{"format":"time","description":"End hour of the product scheduling","type":"string"},"days":{"minItems":1,"maxItems":7,"description":"Days of the week (0-6, 0 = Sunday)","type":"array","items":{"minimum":0,"maximum":6,"description":"Day of the week (0-6, 0 = Sunday)","type":"number"}},"holidays":{"description":"Indicates whether the product scheduling is valid on holidays. Based on the country's holidays","type":"boolean"}},"required":["period","startDate","endDate","startHour","endHour","days","holidays"]},"services":{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"name":{"description":"Name of the service. For example 'Capacity UP'","type":"string"},"uuid":{"description":"Unique product service identifier","type":"string"},"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"paymentCondition":{"description":"Condition under which payment is due for the service","anyOf":[{"type":"string","enum":["ALWAYS"]},{"type":"string","enum":["IF_OFFERED"]},{"type":"string","enum":["IF_ACCEPTED"]},{"type":"string","enum":["IF_DELIVERED"]}]},"quantityType":{"description":"Which quantity of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["name","uuid","serviceType","measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","paymentCondition","quantityType"]},{"type":"object","properties":{"minQuantity":{"description":"Minimum quantity of the product","type":"number"},"quantity":{"description":"Maximum quantity of the product","type":"number"},"price":{"description":"Price of the product","type":"number"},"quantityTolerance":{"description":"Allowed tolerance on the quantity, expressed as a percentage of the quantity","type":"number"}},"required":["minQuantity","quantity","price","quantityTolerance"]}]}}},"required":["interval","priority","deliveryScheduling","services"]}]}}]}}}}}}},"/v1/projects/{projectId}/products/count":{"get":{"tags":["products"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}}}}}}}}},"/v1/projects/{projectId}/products/{uuid}":{"get":{"tags":["products"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"fields","required":false},{"schema":{"type":"string"},"in":"query","name":"include","required":false},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"name":{"description":"Name of the product","type":"string"},"description":{"description":"Textual description of the product","type":"string"},"country":{"description":"Country code of origin of the product","type":"string"},"zones":{"type":"array","items":{"description":"Zone ids to consider for this market. If provided, only assets located in these zones will be considered.","type":"string"}},"interval":{"minimum":0.0001,"maximum":100000,"description":"Market Time Unit (MTU) in hours","type":"number"},"priority":{"minimum":0,"maximum":100,"default":50,"description":"Product priority (0-100, higher value = higher priority)","type":"number"},"deliveryScheduling":{"type":"object","properties":{"period":{"anyOf":[{"type":"string","enum":["QUARTER_HOURLY"]},{"type":"string","enum":["HOURLY"]},{"type":"string","enum":["DAILY"]},{"type":"string","enum":["WEEKLY"]},{"type":"string","enum":["MONTHLY"]},{"type":"string","enum":["QUARTERLY"]},{"type":"string","enum":["ANNUALLY"]},{"type":"string","enum":["ONE_TIME"]}]},"startDate":{"format":"date-time","description":"Start date and time of the product scheduling","type":"string"},"endDate":{"format":"date-time","description":"End date and time of the product scheduling","type":"string"},"startHour":{"format":"time","description":"Start hour of the product scheduling","type":"string"},"endHour":{"format":"time","description":"End hour of the product scheduling","type":"string"},"days":{"minItems":1,"maxItems":7,"description":"Days of the week (0-6, 0 = Sunday)","type":"array","items":{"minimum":0,"maximum":6,"description":"Day of the week (0-6, 0 = Sunday)","type":"number"}},"holidays":{"description":"Indicates whether the product scheduling is valid on holidays. Based on the country's holidays","type":"boolean"}},"required":["period","startDate","endDate","startHour","endHour","days","holidays"]},"services":{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"name":{"description":"Name of the service. For example 'Capacity UP'","type":"string"},"uuid":{"description":"Unique product service identifier","type":"string"},"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"paymentCondition":{"description":"Condition under which payment is due for the service","anyOf":[{"type":"string","enum":["ALWAYS"]},{"type":"string","enum":["IF_OFFERED"]},{"type":"string","enum":["IF_ACCEPTED"]},{"type":"string","enum":["IF_DELIVERED"]}]},"quantityType":{"description":"Which quantity of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["name","uuid","serviceType","measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","paymentCondition","quantityType"]},{"type":"object","properties":{"minQuantity":{"description":"Minimum quantity of the product","type":"number"},"quantity":{"description":"Maximum quantity of the product","type":"number"},"price":{"description":"Price of the product","type":"number"},"quantityTolerance":{"description":"Allowed tolerance on the quantity, expressed as a percentage of the quantity","type":"number"}},"required":["minQuantity","quantity","price","quantityTolerance"]}]}}}}]},{"type":"object","properties":{"capacityAllocations":{},"productType":{}}}]}}}}}},"delete":{"tags":["products"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["products"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"name":{"description":"Name of the product","type":"string"},"description":{"description":"Textual description of the product","type":"string"},"country":{"description":"Country code of origin of the product","type":"string"},"zones":{"type":"array","items":{"description":"Zone ids to consider for this market. If provided, only assets located in these zones will be considered.","type":"string"}},"interval":{"minimum":0.0001,"maximum":100000,"description":"Market Time Unit (MTU) in hours","type":"number"},"priority":{"minimum":0,"maximum":100,"default":50,"description":"Product priority (0-100, higher value = higher priority)","type":"number"},"deliveryScheduling":{"type":"object","properties":{"period":{"anyOf":[{"type":"string","enum":["QUARTER_HOURLY"]},{"type":"string","enum":["HOURLY"]},{"type":"string","enum":["DAILY"]},{"type":"string","enum":["WEEKLY"]},{"type":"string","enum":["MONTHLY"]},{"type":"string","enum":["QUARTERLY"]},{"type":"string","enum":["ANNUALLY"]},{"type":"string","enum":["ONE_TIME"]}]},"startDate":{"format":"date-time","description":"Start date and time of the product scheduling","type":"string"},"endDate":{"format":"date-time","description":"End date and time of the product scheduling","type":"string"},"startHour":{"format":"time","description":"Start hour of the product scheduling","type":"string"},"endHour":{"format":"time","description":"End hour of the product scheduling","type":"string"},"days":{"minItems":1,"maxItems":7,"description":"Days of the week (0-6, 0 = Sunday)","type":"array","items":{"minimum":0,"maximum":6,"description":"Day of the week (0-6, 0 = Sunday)","type":"number"}},"holidays":{"description":"Indicates whether the product scheduling is valid on holidays. Based on the country's holidays","type":"boolean"}},"required":["period","startDate","endDate","startHour","endHour","days","holidays"]},"services":{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"name":{"description":"Name of the service. For example 'Capacity UP'","type":"string"},"uuid":{"description":"Unique product service identifier","type":"string"},"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"paymentCondition":{"description":"Condition under which payment is due for the service","anyOf":[{"type":"string","enum":["ALWAYS"]},{"type":"string","enum":["IF_OFFERED"]},{"type":"string","enum":["IF_ACCEPTED"]},{"type":"string","enum":["IF_DELIVERED"]}]},"quantityType":{"description":"Which quantity of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["name","uuid","serviceType","measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","paymentCondition","quantityType"]},{"type":"object","properties":{"minQuantity":{"description":"Minimum quantity of the product","type":"number"},"quantity":{"description":"Maximum quantity of the product","type":"number"},"price":{"description":"Price of the product","type":"number"},"quantityTolerance":{"description":"Allowed tolerance on the quantity, expressed as a percentage of the quantity","type":"number"}},"required":["minQuantity","quantity","price","quantityTolerance"]}]}}}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a group of energy assets, such as a Virtual Power Plant, or an Energy Community or just a logic aggregate. A single asset can belong to multiple aggregates, operations on aggregates such as simulations should warn of conflicting operations (e.g. cannot produce optimizations on two aggregates whereas there are overlapping assets)","type":"object","properties":{"name":{"description":"Name of the product","type":"string"},"description":{"description":"Textual description of the product","type":"string"},"country":{"description":"Country code of origin of the product","type":"string"},"zones":{"type":"array","items":{"description":"Zone ids to consider for this market. If provided, only assets located in these zones will be considered.","type":"string"}},"interval":{"minimum":0.0001,"maximum":100000,"description":"Market Time Unit (MTU) in hours","type":"number"},"priority":{"minimum":0,"maximum":100,"default":50,"description":"Product priority (0-100, higher value = higher priority)","type":"number"},"deliveryScheduling":{"type":"object","properties":{"period":{"anyOf":[{"type":"string","enum":["QUARTER_HOURLY"]},{"type":"string","enum":["HOURLY"]},{"type":"string","enum":["DAILY"]},{"type":"string","enum":["WEEKLY"]},{"type":"string","enum":["MONTHLY"]},{"type":"string","enum":["QUARTERLY"]},{"type":"string","enum":["ANNUALLY"]},{"type":"string","enum":["ONE_TIME"]}]},"startDate":{"format":"date-time","description":"Start date and time of the product scheduling","type":"string"},"endDate":{"format":"date-time","description":"End date and time of the product scheduling","type":"string"},"startHour":{"format":"time","description":"Start hour of the product scheduling","type":"string"},"endHour":{"format":"time","description":"End hour of the product scheduling","type":"string"},"days":{"minItems":1,"maxItems":7,"description":"Days of the week (0-6, 0 = Sunday)","type":"array","items":{"minimum":0,"maximum":6,"description":"Day of the week (0-6, 0 = Sunday)","type":"number"}},"holidays":{"description":"Indicates whether the product scheduling is valid on holidays. Based on the country's holidays","type":"boolean"}},"required":["period","startDate","endDate","startHour","endHour","days","holidays"]},"services":{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"name":{"description":"Name of the service. For example 'Capacity UP'","type":"string"},"uuid":{"description":"Unique product service identifier","type":"string"},"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"paymentCondition":{"description":"Condition under which payment is due for the service","anyOf":[{"type":"string","enum":["ALWAYS"]},{"type":"string","enum":["IF_OFFERED"]},{"type":"string","enum":["IF_ACCEPTED"]},{"type":"string","enum":["IF_DELIVERED"]}]},"quantityType":{"description":"Which quantity of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["name","uuid","serviceType","measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","paymentCondition","quantityType"]},{"type":"object","properties":{"minQuantity":{"description":"Minimum quantity of the product","type":"number"},"quantity":{"description":"Maximum quantity of the product","type":"number"},"price":{"description":"Price of the product","type":"number"},"quantityTolerance":{"description":"Allowed tolerance on the quantity, expressed as a percentage of the quantity","type":"number"}},"required":["minQuantity","quantity","price","quantityTolerance"]}]}}},"required":["interval","priority","deliveryScheduling","services"]}]}}}}}}},"/v1/projects/{projectId}/productTypes":{"get":{"tags":["productTypes"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}},"name":{"description":"Name of the product","type":"string"},"description":{"description":"Textual description of the product","type":"string"},"country":{"description":"Country code of origin of the product","type":"string"},"zones":{"type":"array","items":{"description":"Zone ids to consider for this market. If provided, only assets located in these zones will be considered.","type":"string"}},"interval":{"minimum":0.0001,"maximum":100000,"description":"Market Time Unit (MTU) in hours","type":"number"},"services":{"type":"array","items":{"type":"object","properties":{"name":{"description":"Name of the service. For example 'Capacity UP'","type":"string"},"uuid":{"description":"Unique product service identifier","type":"string"},"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"paymentCondition":{"description":"Condition under which payment is due for the service","anyOf":[{"type":"string","enum":["ALWAYS"]},{"type":"string","enum":["IF_OFFERED"]},{"type":"string","enum":["IF_ACCEPTED"]},{"type":"string","enum":["IF_DELIVERED"]}]},"quantityType":{"description":"Which quantity of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["name","uuid","serviceType","measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","paymentCondition","quantityType"]}}}}]},{"type":"object","properties":{}}]}}}}}}},"post":{"tags":["productTypes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}},"name":{"description":"Name of the product","type":"string"},"description":{"description":"Textual description of the product","type":"string"},"country":{"description":"Country code of origin of the product","type":"string"},"zones":{"type":"array","items":{"description":"Zone ids to consider for this market. If provided, only assets located in these zones will be considered.","type":"string"}},"interval":{"minimum":0.0001,"maximum":100000,"description":"Market Time Unit (MTU) in hours","type":"number"},"services":{"type":"array","items":{"type":"object","properties":{"name":{"description":"Name of the service. For example 'Capacity UP'","type":"string"},"uuid":{"description":"Unique product service identifier","type":"string"},"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"paymentCondition":{"description":"Condition under which payment is due for the service","anyOf":[{"type":"string","enum":["ALWAYS"]},{"type":"string","enum":["IF_OFFERED"]},{"type":"string","enum":["IF_ACCEPTED"]},{"type":"string","enum":["IF_DELIVERED"]}]},"quantityType":{"description":"Which quantity of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["name","uuid","serviceType","measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","paymentCondition","quantityType"]}}},"required":["interval","services"]}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a specific product category, which can have multiple instances of it called Products","type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}},"name":{"description":"Name of the product","type":"string"},"description":{"description":"Textual description of the product","type":"string"},"country":{"description":"Country code of origin of the product","type":"string"},"zones":{"type":"array","items":{"description":"Zone ids to consider for this market. If provided, only assets located in these zones will be considered.","type":"string"}},"interval":{"minimum":0.0001,"maximum":100000,"description":"Market Time Unit (MTU) in hours","type":"number"},"services":{"type":"array","items":{"type":"object","properties":{"name":{"description":"Name of the service. For example 'Capacity UP'","type":"string"},"uuid":{"description":"Unique product service identifier","type":"string"},"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"paymentCondition":{"description":"Condition under which payment is due for the service","anyOf":[{"type":"string","enum":["ALWAYS"]},{"type":"string","enum":["IF_OFFERED"]},{"type":"string","enum":["IF_ACCEPTED"]},{"type":"string","enum":["IF_DELIVERED"]}]},"quantityType":{"description":"Which quantity of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["name","uuid","serviceType","measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","paymentCondition","quantityType"]}}},"required":["uuid","createdAt","updatedAt","interval","services"]}]},{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a specific product category, which can have multiple instances of it called Products","type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}},"name":{"description":"Name of the product","type":"string"},"description":{"description":"Textual description of the product","type":"string"},"country":{"description":"Country code of origin of the product","type":"string"},"zones":{"type":"array","items":{"description":"Zone ids to consider for this market. If provided, only assets located in these zones will be considered.","type":"string"}},"interval":{"minimum":0.0001,"maximum":100000,"description":"Market Time Unit (MTU) in hours","type":"number"},"services":{"type":"array","items":{"type":"object","properties":{"name":{"description":"Name of the service. For example 'Capacity UP'","type":"string"},"uuid":{"description":"Unique product service identifier","type":"string"},"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"paymentCondition":{"description":"Condition under which payment is due for the service","anyOf":[{"type":"string","enum":["ALWAYS"]},{"type":"string","enum":["IF_OFFERED"]},{"type":"string","enum":["IF_ACCEPTED"]},{"type":"string","enum":["IF_DELIVERED"]}]},"quantityType":{"description":"Which quantity of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["name","uuid","serviceType","measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","paymentCondition","quantityType"]}}},"required":["uuid","createdAt","updatedAt","interval","services"]}]}}]}}}}}}},"/v1/projects/{projectId}/productTypes/count":{"get":{"tags":["productTypes"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}}}}}}}}},"/v1/projects/{projectId}/productTypes/{uuid}":{"get":{"tags":["productTypes"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"fields","required":false},{"schema":{"type":"string"},"in":"query","name":"include","required":false},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}},"name":{"description":"Name of the product","type":"string"},"description":{"description":"Textual description of the product","type":"string"},"country":{"description":"Country code of origin of the product","type":"string"},"zones":{"type":"array","items":{"description":"Zone ids to consider for this market. If provided, only assets located in these zones will be considered.","type":"string"}},"interval":{"minimum":0.0001,"maximum":100000,"description":"Market Time Unit (MTU) in hours","type":"number"},"services":{"type":"array","items":{"type":"object","properties":{"name":{"description":"Name of the service. For example 'Capacity UP'","type":"string"},"uuid":{"description":"Unique product service identifier","type":"string"},"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"paymentCondition":{"description":"Condition under which payment is due for the service","anyOf":[{"type":"string","enum":["ALWAYS"]},{"type":"string","enum":["IF_OFFERED"]},{"type":"string","enum":["IF_ACCEPTED"]},{"type":"string","enum":["IF_DELIVERED"]}]},"quantityType":{"description":"Which quantity of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["name","uuid","serviceType","measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","paymentCondition","quantityType"]}}}}]},{"type":"object","properties":{}}]}}}}}},"delete":{"tags":["productTypes"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["productTypes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}},"name":{"description":"Name of the product","type":"string"},"description":{"description":"Textual description of the product","type":"string"},"country":{"description":"Country code of origin of the product","type":"string"},"zones":{"type":"array","items":{"description":"Zone ids to consider for this market. If provided, only assets located in these zones will be considered.","type":"string"}},"interval":{"minimum":0.0001,"maximum":100000,"description":"Market Time Unit (MTU) in hours","type":"number"},"services":{"type":"array","items":{"type":"object","properties":{"name":{"description":"Name of the service. For example 'Capacity UP'","type":"string"},"uuid":{"description":"Unique product service identifier","type":"string"},"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"paymentCondition":{"description":"Condition under which payment is due for the service","anyOf":[{"type":"string","enum":["ALWAYS"]},{"type":"string","enum":["IF_OFFERED"]},{"type":"string","enum":["IF_ACCEPTED"]},{"type":"string","enum":["IF_DELIVERED"]}]},"quantityType":{"description":"Which quantity of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["name","uuid","serviceType","measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","paymentCondition","quantityType"]}}}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents a specific product category, which can have multiple instances of it called Products","type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}},"name":{"description":"Name of the product","type":"string"},"description":{"description":"Textual description of the product","type":"string"},"country":{"description":"Country code of origin of the product","type":"string"},"zones":{"type":"array","items":{"description":"Zone ids to consider for this market. If provided, only assets located in these zones will be considered.","type":"string"}},"interval":{"minimum":0.0001,"maximum":100000,"description":"Market Time Unit (MTU) in hours","type":"number"},"services":{"type":"array","items":{"type":"object","properties":{"name":{"description":"Name of the service. For example 'Capacity UP'","type":"string"},"uuid":{"description":"Unique product service identifier","type":"string"},"serviceType":{"description":"Type of service requested","anyOf":[{"type":"string","enum":["NO_TARGET"]},{"type":"string","enum":["TARGET_VALUE"]},{"type":"string","enum":["TARGET_VALUE_UP"]},{"type":"string","enum":["TARGET_VALUE_DOWN"]},{"type":"string","enum":["MAX_TARGET_VALUE"]},{"type":"string","enum":["MIN_TARGET_VALUE"]},{"type":"string","enum":["MAX_TARGET_VALUE_UP"]},{"type":"string","enum":["MAX_TARGET_VALUE_DOWN"]},{"type":"string","enum":["ACTIVE_POWER_UP"]},{"type":"string","enum":["ACTIVE_POWER_DOWN"]},{"type":"string","enum":["REACTIVE_POWER_UP"]},{"type":"string","enum":["REACTIVE_POWER_DOWN"]}]},"measurementUnit":{"type":"string"},"priceCurrencyCode":{"type":"string"},"priceCurrencyPrefix":{"type":"string"},"priceMeasurementUnit":{"type":"string"},"paymentCondition":{"description":"Condition under which payment is due for the service","anyOf":[{"type":"string","enum":["ALWAYS"]},{"type":"string","enum":["IF_OFFERED"]},{"type":"string","enum":["IF_ACCEPTED"]},{"type":"string","enum":["IF_DELIVERED"]}]},"quantityType":{"description":"Which quantity of the energy asset is requested. Note that this is should be in accordance with the serviceType. Also this field matches the kind of baseline used to respond to the request. For example, if the serviceType is ACTIVE_POWER_UP, the profileType should be ACTIVE_POWER","anyOf":[{"type":"string","enum":["ACTIVE_POWER"]},{"type":"string","enum":["REACTIVE_POWER"]},{"type":"string","enum":["APPARENT_POWER"]},{"type":"string","enum":["POWER_FACTOR"]},{"type":"string","enum":["SELF_CONSUMED_ENERGY"]},{"type":"string","enum":["SHARED_ENERGY"]},{"type":"string","enum":["ABSORBED_ENERGY"]},{"type":"string","enum":["GENERATED_ENERGY"]},{"type":"string","enum":["INJECTED_ENERGY"]},{"type":"string","enum":["STORAGE_SOC"]},{"type":"string","enum":["VOLTAGE"]},{"type":"string","enum":["FREQUENCY"]},{"type":"string","enum":["AVAILABILITY"]},{"type":"string","enum":["C02"]}]}},"required":["name","uuid","serviceType","measurementUnit","priceCurrencyCode","priceCurrencyPrefix","priceMeasurementUnit","paymentCondition","quantityType"]}}},"required":["uuid","createdAt","updatedAt","interval","services"]}]}}}}}}},"/v1/projects/{projectId}/organizations":{"get":{"tags":["organizations"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"name":{"description":"Display name of the organization","type":"string"},"legalName":{"description":"Official legal name of the organization","type":"string"},"shortName":{"description":"Short name or abbreviation","type":"string"},"description":{"description":"Description of the organization","type":"string"},"legalType":{"description":"Type of organization from a legal perspective","anyOf":[{"type":"string","enum":["individual"]},{"type":"string","enum":["company"]},{"type":"string","enum":["government"]},{"type":"string","enum":["cooperative"]},{"type":"string","enum":["other"]}]},"marketType":{"description":"Type of organization from a market perspective","anyOf":[{"type":"string","enum":["bsp"]},{"type":"string","enum":["brp"]},{"type":"string","enum":["fsp"]},{"type":"string","enum":["supplier"]},{"type":"string","enum":["producer"]},{"type":"string","enum":["consumer"]},{"type":"string","enum":["prosumer"]},{"type":"string","enum":["trader"]},{"type":"string","enum":["aggregator"]},{"type":"string","enum":["dso"]},{"type":"string","enum":["tso"]},{"type":"string","enum":["market_operator"]},{"type":"string","enum":["regulator"]},{"type":"string","enum":["utility"]},{"type":"string","enum":["other"]}]},"taxId":{"description":"Tax identification number, VAT number, or business registration number","type":"string"},"countryCode":{"description":"ISO 3166-1 alpha-2 country code","type":"string"},"address":{"description":"Physical address of the organization","type":"string"},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]},"email":{"format":"email","type":"string"},"phone":{"type":"string"},"website":{"format":"uri","type":"string"},"contactPerson":{"description":"Name of the primary contact person","type":"string"}}}]},{"type":"object","properties":{}}]}}}}}}},"post":{"tags":["organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"name":{"description":"Display name of the organization","type":"string"},"legalName":{"description":"Official legal name of the organization","type":"string"},"shortName":{"description":"Short name or abbreviation","type":"string"},"description":{"description":"Description of the organization","type":"string"},"legalType":{"description":"Type of organization from a legal perspective","anyOf":[{"type":"string","enum":["individual"]},{"type":"string","enum":["company"]},{"type":"string","enum":["government"]},{"type":"string","enum":["cooperative"]},{"type":"string","enum":["other"]}]},"marketType":{"description":"Type of organization from a market perspective","anyOf":[{"type":"string","enum":["bsp"]},{"type":"string","enum":["brp"]},{"type":"string","enum":["fsp"]},{"type":"string","enum":["supplier"]},{"type":"string","enum":["producer"]},{"type":"string","enum":["consumer"]},{"type":"string","enum":["prosumer"]},{"type":"string","enum":["trader"]},{"type":"string","enum":["aggregator"]},{"type":"string","enum":["dso"]},{"type":"string","enum":["tso"]},{"type":"string","enum":["market_operator"]},{"type":"string","enum":["regulator"]},{"type":"string","enum":["utility"]},{"type":"string","enum":["other"]}]},"taxId":{"description":"Tax identification number, VAT number, or business registration number","type":"string"},"countryCode":{"description":"ISO 3166-1 alpha-2 country code","type":"string"},"address":{"description":"Physical address of the organization","type":"string"},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]},"email":{"format":"email","type":"string"},"phone":{"type":"string"},"website":{"format":"uri","type":"string"},"contactPerson":{"description":"Name of the primary contact person","type":"string"}},"required":["name","legalType","marketType","countryCode","address"]}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents an organization that can act as an asset owner, contract counterparty, or market participant","type":"object","properties":{"name":{"description":"Display name of the organization","type":"string"},"legalName":{"description":"Official legal name of the organization","type":"string"},"shortName":{"description":"Short name or abbreviation","type":"string"},"description":{"description":"Description of the organization","type":"string"},"legalType":{"description":"Type of organization from a legal perspective","anyOf":[{"type":"string","enum":["individual"]},{"type":"string","enum":["company"]},{"type":"string","enum":["government"]},{"type":"string","enum":["cooperative"]},{"type":"string","enum":["other"]}]},"marketType":{"description":"Type of organization from a market perspective","anyOf":[{"type":"string","enum":["bsp"]},{"type":"string","enum":["brp"]},{"type":"string","enum":["fsp"]},{"type":"string","enum":["supplier"]},{"type":"string","enum":["producer"]},{"type":"string","enum":["consumer"]},{"type":"string","enum":["prosumer"]},{"type":"string","enum":["trader"]},{"type":"string","enum":["aggregator"]},{"type":"string","enum":["dso"]},{"type":"string","enum":["tso"]},{"type":"string","enum":["market_operator"]},{"type":"string","enum":["regulator"]},{"type":"string","enum":["utility"]},{"type":"string","enum":["other"]}]},"taxId":{"description":"Tax identification number, VAT number, or business registration number","type":"string"},"countryCode":{"description":"ISO 3166-1 alpha-2 country code","type":"string"},"address":{"description":"Physical address of the organization","type":"string"},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]},"email":{"format":"email","type":"string"},"phone":{"type":"string"},"website":{"format":"uri","type":"string"},"contactPerson":{"description":"Name of the primary contact person","type":"string"}},"required":["name","legalType","marketType","countryCode","address"]}]},{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents an organization that can act as an asset owner, contract counterparty, or market participant","type":"object","properties":{"name":{"description":"Display name of the organization","type":"string"},"legalName":{"description":"Official legal name of the organization","type":"string"},"shortName":{"description":"Short name or abbreviation","type":"string"},"description":{"description":"Description of the organization","type":"string"},"legalType":{"description":"Type of organization from a legal perspective","anyOf":[{"type":"string","enum":["individual"]},{"type":"string","enum":["company"]},{"type":"string","enum":["government"]},{"type":"string","enum":["cooperative"]},{"type":"string","enum":["other"]}]},"marketType":{"description":"Type of organization from a market perspective","anyOf":[{"type":"string","enum":["bsp"]},{"type":"string","enum":["brp"]},{"type":"string","enum":["fsp"]},{"type":"string","enum":["supplier"]},{"type":"string","enum":["producer"]},{"type":"string","enum":["consumer"]},{"type":"string","enum":["prosumer"]},{"type":"string","enum":["trader"]},{"type":"string","enum":["aggregator"]},{"type":"string","enum":["dso"]},{"type":"string","enum":["tso"]},{"type":"string","enum":["market_operator"]},{"type":"string","enum":["regulator"]},{"type":"string","enum":["utility"]},{"type":"string","enum":["other"]}]},"taxId":{"description":"Tax identification number, VAT number, or business registration number","type":"string"},"countryCode":{"description":"ISO 3166-1 alpha-2 country code","type":"string"},"address":{"description":"Physical address of the organization","type":"string"},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]},"email":{"format":"email","type":"string"},"phone":{"type":"string"},"website":{"format":"uri","type":"string"},"contactPerson":{"description":"Name of the primary contact person","type":"string"}},"required":["name","legalType","marketType","countryCode","address"]}]}}]}}}}}}},"/v1/projects/{projectId}/organizations/count":{"get":{"tags":["organizations"],"parameters":[{"schema":{"type":"number"},"in":"query","name":"skip","required":false,"description":"The number of records to skip for pagination."},{"schema":{"type":"number"},"in":"query","name":"limit","required":false,"description":"The maximum number of records to return for pagination."},{"schema":{},"in":"query","name":"filter","required":false,"description":"A key value object representing the filter criteria for the query. The keys are the field names and the values are the values to filter by."},{"schema":{},"in":"query","name":"jsonFilter","required":false},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"A comma-separated list of fields to sort by. Prefix with '-' for descending order."},{"schema":{"type":"string"},"in":"query","name":"fields","required":false,"description":"A comma-separated list of fields to include in the response. If not provided, all fields will be included."},{"schema":{"type":"string"},"in":"query","name":"include","required":false,"description":"A comma-separated list of related resources to include in the response."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}}}}}}}}},"/v1/projects/{projectId}/organizations/{uuid}":{"get":{"tags":["organizations"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"fields","required":false},{"schema":{"type":"string"},"in":"query","name":"include","required":false},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"name":{"description":"Display name of the organization","type":"string"},"legalName":{"description":"Official legal name of the organization","type":"string"},"shortName":{"description":"Short name or abbreviation","type":"string"},"description":{"description":"Description of the organization","type":"string"},"legalType":{"description":"Type of organization from a legal perspective","anyOf":[{"type":"string","enum":["individual"]},{"type":"string","enum":["company"]},{"type":"string","enum":["government"]},{"type":"string","enum":["cooperative"]},{"type":"string","enum":["other"]}]},"marketType":{"description":"Type of organization from a market perspective","anyOf":[{"type":"string","enum":["bsp"]},{"type":"string","enum":["brp"]},{"type":"string","enum":["fsp"]},{"type":"string","enum":["supplier"]},{"type":"string","enum":["producer"]},{"type":"string","enum":["consumer"]},{"type":"string","enum":["prosumer"]},{"type":"string","enum":["trader"]},{"type":"string","enum":["aggregator"]},{"type":"string","enum":["dso"]},{"type":"string","enum":["tso"]},{"type":"string","enum":["market_operator"]},{"type":"string","enum":["regulator"]},{"type":"string","enum":["utility"]},{"type":"string","enum":["other"]}]},"taxId":{"description":"Tax identification number, VAT number, or business registration number","type":"string"},"countryCode":{"description":"ISO 3166-1 alpha-2 country code","type":"string"},"address":{"description":"Physical address of the organization","type":"string"},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]},"email":{"format":"email","type":"string"},"phone":{"type":"string"},"website":{"format":"uri","type":"string"},"contactPerson":{"description":"Name of the primary contact person","type":"string"}}}]},{"type":"object","properties":{}}]}}}}}},"delete":{"tags":["organizations"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{}}}},{"type":"object","properties":{"name":{"description":"Display name of the organization","type":"string"},"legalName":{"description":"Official legal name of the organization","type":"string"},"shortName":{"description":"Short name or abbreviation","type":"string"},"description":{"description":"Description of the organization","type":"string"},"legalType":{"description":"Type of organization from a legal perspective","anyOf":[{"type":"string","enum":["individual"]},{"type":"string","enum":["company"]},{"type":"string","enum":["government"]},{"type":"string","enum":["cooperative"]},{"type":"string","enum":["other"]}]},"marketType":{"description":"Type of organization from a market perspective","anyOf":[{"type":"string","enum":["bsp"]},{"type":"string","enum":["brp"]},{"type":"string","enum":["fsp"]},{"type":"string","enum":["supplier"]},{"type":"string","enum":["producer"]},{"type":"string","enum":["consumer"]},{"type":"string","enum":["prosumer"]},{"type":"string","enum":["trader"]},{"type":"string","enum":["aggregator"]},{"type":"string","enum":["dso"]},{"type":"string","enum":["tso"]},{"type":"string","enum":["market_operator"]},{"type":"string","enum":["regulator"]},{"type":"string","enum":["utility"]},{"type":"string","enum":["other"]}]},"taxId":{"description":"Tax identification number, VAT number, or business registration number","type":"string"},"countryCode":{"description":"ISO 3166-1 alpha-2 country code","type":"string"},"address":{"description":"Physical address of the organization","type":"string"},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]},"email":{"format":"email","type":"string"},"phone":{"type":"string"},"website":{"format":"uri","type":"string"},"contactPerson":{"description":"Name of the primary contact person","type":"string"}}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"uuid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"uuid":{"description":"Unique resource identifier","type":"string"},"projectId":{"description":"Unique namespace identifier","type":"string"},"createdAt":{"format":"date-time","description":"Resource creation timestamp","type":"string"},"updatedAt":{"format":"date-time","description":"Resource update timestamp","type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["uuid","projectId","createdAt","updatedAt"]},{"description":"Represents an organization that can act as an asset owner, contract counterparty, or market participant","type":"object","properties":{"name":{"description":"Display name of the organization","type":"string"},"legalName":{"description":"Official legal name of the organization","type":"string"},"shortName":{"description":"Short name or abbreviation","type":"string"},"description":{"description":"Description of the organization","type":"string"},"legalType":{"description":"Type of organization from a legal perspective","anyOf":[{"type":"string","enum":["individual"]},{"type":"string","enum":["company"]},{"type":"string","enum":["government"]},{"type":"string","enum":["cooperative"]},{"type":"string","enum":["other"]}]},"marketType":{"description":"Type of organization from a market perspective","anyOf":[{"type":"string","enum":["bsp"]},{"type":"string","enum":["brp"]},{"type":"string","enum":["fsp"]},{"type":"string","enum":["supplier"]},{"type":"string","enum":["producer"]},{"type":"string","enum":["consumer"]},{"type":"string","enum":["prosumer"]},{"type":"string","enum":["trader"]},{"type":"string","enum":["aggregator"]},{"type":"string","enum":["dso"]},{"type":"string","enum":["tso"]},{"type":"string","enum":["market_operator"]},{"type":"string","enum":["regulator"]},{"type":"string","enum":["utility"]},{"type":"string","enum":["other"]}]},"taxId":{"description":"Tax identification number, VAT number, or business registration number","type":"string"},"countryCode":{"description":"ISO 3166-1 alpha-2 country code","type":"string"},"address":{"description":"Physical address of the organization","type":"string"},"location":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"number"}}},"required":["type","coordinates"]},"email":{"format":"email","type":"string"},"phone":{"type":"string"},"website":{"format":"uri","type":"string"},"contactPerson":{"description":"Name of the primary contact person","type":"string"}},"required":["name","legalType","marketType","countryCode","address"]}]}}}}}}}},"tags":[],"externalDocs":{"url":"https://documentation.apio.network","description":"Find more info here"}}