Scenario Items

Update a scenario item

Changed on

Update a scenario item's attributes.

patch/api/v2/scenario_items/{id}

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/scenario_items/{id}
  • Auth
    none declared

Path parameters

idstring required

ID

Request body

Example request

{
  "data": {
    "type": "scenario_items",
    "attributes": {
      "used_quantity": "48.0",
      "markup": "20.0"
    },
    "id": "301"
  }
}

Response

Single scenario item

Example response

{
  "data": {
    "id": "301",
    "type": "scenario_items",
    "attributes": {
      "start_date": "2026-03-02",
      "end_date": "2026-04-24",
      "used_quantity": "40.0",
      "markup": "20.0",
      "discount": "10.0",
      "cost": 9000,
      "price": 12000
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": "1"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "7"
        }
      },
      "scenario_service": {
        "data": {
          "type": "scenario_services",
          "id": "201"
        }
      }
    }
  }
}

Changes

    • 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

    • info

      the request property // became optional