Skip to main content
PUT
/
product
/
{id}
Update a product
curl --request PUT \
  --url https://api.rechain.co/public/v1/product/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "company_id": 123,
  "description": "<string>",
  "notes": "<string>",
  "ean": "<string>",
  "reference": "<string>",
  "status": "<string>",
  "ancestry": "<string>",
  "product_category_id": 123,
  "dimensions_unit": "<string>",
  "product_development_stage_id": 123,
  "development_stage_id": 123,
  "component_level": "<string>",
  "current_version": "<string>",
  "version_name": "<string>",
  "product_group_id": 123,
  "user_id": 123,
  "supplier_id": 123,
  "brand_id": 123,
  "wholesale_margin": 123,
  "retail_margin": 123,
  "wholesale_margin_type": "<string>",
  "retail_margin_type": "<string>",
  "direct_sale_margin": 123,
  "direct_sale_margin_type": "<string>",
  "development_stages_group_id": 123,
  "main_component_id": 123,
  "shopify_product_id": "<string>"
}
'
"<any>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

ID of product to return

Body

application/json

Update an existent product

name
string

Name of the product

company_id
integer

ID of the company

description
string

Description of the product

notes
string

Additional notes

ean
string

EAN for the product

reference
string

Reference code of the product

status
string

Status of the product

ancestry
string

Ancestry information for hierarchical data

product_category_id
integer

ID of the product category

dimensions_unit
string

Unit of measurement for product dimensions

product_development_stage_id
integer

ID of the product development stage

development_stage_id
integer

ID of the development stage

component_level
string

Level of the product component

current_version
string

Current version of the product

version_name
string

Name of the product version

product_group_id
integer

ID of the product group

user_id
integer

ID of the user

supplier_id
integer

ID of the supplier

brand_id
integer

ID of the brand

wholesale_margin
number

Wholesale margin of the product

retail_margin
number

Retail margin of the product

wholesale_margin_type
string

Type of wholesale margin

retail_margin_type
string

Type of retail margin

direct_sale_margin
number

Direct sale margin of the product

direct_sale_margin_type
string

Type of direct sale margin

development_stages_group_id
integer

ID of the development stages group

main_component_id
integer

ID of the main component

shopify_product_id
string

Shopify product ID

Response

Successful operation

The response is of type any.