Skip to main content
PATCH
/
contracts
/
{id}
/
schedules
/
{schedule_id}
/
estimated-qualities
/
{estimated_quality_id}
Update Estimated Quality
curl --request PATCH \
  --url https://v1.api.flux-os.com/contracts/{id}/schedules/{schedule_id}/estimated-qualities/{estimated_quality_id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-user-id: <api-key>' \
  --data '
{
  "measurement_property": "<unknown>",
  "measurement_unit": "<unknown>",
  "value": 123
}
'
{
  "value": 123,
  "id": "<string>",
  "schedule": {
    "production_month": "2023-12-25",
    "id": "<string>"
  },
  "measurement_property": {
    "name": "<string>",
    "short_code": "<string>",
    "id": "<string>"
  },
  "measurement_unit": {
    "name": "<string>",
    "abbreviation": "<string>",
    "id": "<string>",
    "html_symbol": null
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required
x-user-id
string
header
required

Path Parameters

id
integer
required

The contract ID.

schedule_id
integer
required

The schedule ID.

estimated_quality_id
integer
required

The estimated quality ID.

Body

application/json
measurement_property
any
required
measurement_unit
any
required
value
number
required

Response

Estimated quality updated.

value
number
required
id
string
schedule
object
measurement_property
object
measurement_unit
object
created_at
string<date-time>
updated_at
string<date-time>