Generates new budgets for several contracts
Changed onGenerates budgets for several contracts in one request. Requires the JSON:API bulk extension header (Content-Type: application/vnd.api+json; ext=bulk); the single-contract endpoint lives at /api/v2/contracts/{id}/generate. Each item may carry its own generate_until, and the request generates at most 36 budgets in total, so it holds at most 36 contracts. Validation is all or nothing — when any contract is rejected, none of them generate. The generated budget IDs are returned under meta.generated_budget_ids, keyed by contract ID. When generation stops on a conflict partway through, the contracts before it stay generated and the 409 lists the budgets generated so far under the same keyed meta.generated_budget_ids.
Request
- Base URLhttps://developer.productive.io (the document declares no server; this is the origin it was published from)
- URLhttps://developer.productive.io/api/v2/contracts/generate
- Authnone declared
Request body
Response
Contracts with the budgets the request generated, keyed by contract ID
Changes
- warning
added the new
project_already_exportedenum value to the//response property for the response status
- warning
- warning
added the new
bad_decimal_formatenum value to the//response property for the response status - warning
added the new
non_finite_numberenum value to the//response property for the response status - warning
added the new
null_bytes_in_paramsenum value to the//response property for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- warning