Create a scenario item
Changed onCreate a new scenario item. Requires the Scenario Builder feature on the organization's plan.
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/scenario_items
- Authnone declared
Request body
Example request
{
"data": {
"type": "scenario_items",
"attributes": {
"scenario_service_id": 201,
"person_id": 7,
"used_quantity": "40.0",
"start_date": "2026-03-02",
"end_date": "2026-04-24"
}
}
}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_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
- warning
- warning
removed the request property
// - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status
- warning