Scenario Services

Update a scenario service

Changed on

Update a scenario service's attributes.

patch/api/v2/scenario_services/{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_services/{id}
  • Auth
    none declared

Path parameters

idstring required

ID

Request body

Example request

{
  "data": {
    "type": "scenario_services",
    "attributes": {
      "quantity": "100.0",
      "price": 13000
    },
    "id": "201"
  }
}

Response

Single scenario service

Example response

{
  "data": {
    "id": "201",
    "type": "scenario_services",
    "attributes": {
      "name": "UX design",
      "billable": true,
      "billing_type_id": 1,
      "unit_id": 1,
      "quantity": "80.0",
      "price": 12000,
      "budget_total": 960000,
      "revenue": 960000,
      "cost": 720000,
      "profit": 240000,
      "profit_margin": "25.0"
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": "1"
        }
      },
      "scenario": {
        "data": {
          "type": "scenarios",
          "id": "42"
        }
      },
      "scenario_section": {
        "data": {
          "type": "scenario_sections",
          "id": "101"
        }
      },
      "service_type": {
        "data": {
          "type": "service_types",
          "id": "31"
        }
      }
    }
  }
}

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

    • info

      the request property // became optional

    • info

      the request property // became optional