labels

Create Fertilizer Label Data

Changed on

Create FertilizerLabelData for label.

post/api/v1/labels/{label_id}/fertilizer-data

Request

  • The document declares no server URL.
  • Auth: OAuth 2 (password, token URL /api/v1/login/access-token)

Path parameters

label_idstring uuid required

Request body

product_classification'fertilizer' | 'supplement' | 'growing_medium' | 'treated_seed'

Example request

{
  "ingredients": [
    {
      "unit": "%"
    }
  ]
}

Response

Successful Response

nstring nullable
pstring nullable
kstring nullable
product_classification'fertilizer' | 'supplement' | 'growing_medium' | 'treated_seed'

Example response

{
  "ingredients": [
    {
      "unit": "%"
    }
  ]
}

Changes

    • breaking

      the response property //// became optional for the status

    • breaking

      the response property //// became optional for the status

    • breaking

      response property guaranteed_analysis/anyOf[subschema #1: GuaranteedAnalysis]/nutrients/items/unit list-of-types was widened by adding types null to media type application/json of response 201

    • breaking

      response property guaranteed_analysis/anyOf[subschema #1: GuaranteedAnalysis]/nutrients/items/value list-of-types was widened by adding types null to media type application/json of response 201

    • info

      the request property //// became optional

    • info

      the request property //// became optional

    • info

      request property //// list-of-types was widened by adding types null to media type application/json

    • info

      request property //// list-of-types was widened by adding types null to media type application/json

    • info

      the //// response's property pattern ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$ was removed for the status

    • breaking

      added the pattern ^([0-9]{7}[A-Za-z])?$ to the request property ////

    • info

      the //// response's property pattern ^([0-9]{7}[A-Za-z])?$ was added for the status