Create contract.
POST/v2/:tenantName/contracts
Create contract. The validations at the creation of a contract are:
- startTime is mandatory
- startTime is less than or equal to endTime
product validations
- productStatus is ACTIVE
- the list of facilities of the product belongs to the operator of the contract
Request
Responses
- 201
- 400
- 404
- 500
CREATED
BAD REQUEST
NOT FOUND
Internal Server Error