Skip to main content
POST
/
contracts
/
{id}
/
schedules
/
{schedule_id}
/
estimated-qualities
Create Estimated Quality
curl --request POST \
  --url https://v1.api.flux-os.com/contracts/{id}/schedules/{schedule_id}/estimated-qualities \
  --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
}
'
{
  "data": {
    "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.

Body

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

Response

Estimated quality successfully created.

data
object