Contracts

Generates new budgets for several contracts

Changed on

Generates 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.

post/api/v2/contracts/generate

Request

  • Base URL
    https://developer.productive.io (the document declares no server; this is the origin it was published from)
  • URL
    https://developer.productive.io/api/v2/contracts/generate
  • Auth
    none declared

Request body

Response

Contracts with the budgets the request generated, keyed by contract ID

Changes

    • warning

      added the new project_already_exported enum value to the // response property for the response status

    • warning

      added the new bad_decimal_format enum value to the // response property for the response status

    • warning

      added the new non_finite_number enum value to the // response property for the response status

    • warning

      added the new null_bytes_in_params enum 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