Products

Products_code_off_update_partial_update

PATCH
/api/v1/products/code/{code}/off-update
AuthorizationBearer <token>

In: header

Path Parameters

codestring
Match^\d+$
code?string
source?SourceEnum | BlankEnum | NullEnum
source_last_synced?string | null
Formatdate-time
product_name?string | null
image_url?string | null
product_quantity?integer | null
Range-2147483648 <= value <= 2147483647
product_quantity_unit?string | null
categories_tags?array<string>
brands?string | null
brands_tags?array<string>
labels_tags?array<string>
nutriscore_grade?string | null
ecoscore_grade?string | null
nova_group?integer | null
Range0 <= value <= 2147483647
unique_scans_n?integer | null
Range0 <= value <= 2147483647
price_count?integer
Range0 <= value <= 2147483647
price_currency_count?integer
Range0 <= value <= 2147483647
location_count?integer
Range0 <= value <= 2147483647
location_type_osm_country_count?integer
Range0 <= value <= 2147483647
user_count?integer
Range0 <= value <= 2147483647
proof_count?integer
Range0 <= value <= 2147483647
created?string
Formatdate-time

Response Body

curl -X PATCH "https://loading/api/v1/products/code/string/off-update" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": 0,
  "code": "string",
  "source": "off",
  "source_last_synced": "2019-08-24T14:15:22Z",
  "product_name": "string",
  "image_url": "string",
  "product_quantity": -2147483648,
  "product_quantity_unit": "string",
  "categories_tags": [
    "string"
  ],
  "brands": "string",
  "brands_tags": [
    "string"
  ],
  "labels_tags": [
    "string"
  ],
  "nutriscore_grade": "string",
  "ecoscore_grade": "string",
  "nova_group": 2147483647,
  "unique_scans_n": 2147483647,
  "price_count": 2147483647,
  "price_currency_count": 2147483647,
  "location_count": 2147483647,
  "location_type_osm_country_count": 2147483647,
  "user_count": 2147483647,
  "proof_count": 2147483647,
  "created": "2019-08-24T14:15:22Z",
  "updated": "2019-08-24T14:15:22Z"
}