Nyehandel
  1. Product
Nyehandel
  • Introduction
  • Getting started
  • Webhooks
  • API Reference
  • Order
    • Get order
      GET
    • Get orders
      GET
    • Create order
      POST
    • Deliver order
      POST
  • Shipping Method
    • Get Shipping methods
      GET
  • Product
    • Relation between products and variants
    • Get products
      GET
    • Update products batch
      PUT
    • Create products batch
      POST
    • Create product
      POST
    • Update product
      PUT
    • Create variant
      POST
    • Find product by sku or id
      GET
    • Delete product
      DELETE
  • Variant
    • Update variant batch
      PUT
    • Update variant
      PUT
    • Delete product variant
      DELETE
    • Find variant
      GET
  • Payment Method
    • Get Payment methods
      GET
  • Customer
    • Get Customer
      GET
    • Get Customers
      GET
    • Create Customer
      POST
  • Category
    • Create category
    • Update category
    • Get category
    • Delete category
    • Get categories
  • Currency
    • Get currencies
  • Headless
    • Pages
      • Get Page
      • Get Pages
    • Categories
      • Get Category
      • Get Pages
    • Startpage
    • System
  1. Product

Update product

PUT
/products/{productId}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/products/' \
--header 'X-Identifier: {{x_identifier}}' \
--header 'Authorization: Bearer {{token}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "status": "draft",
    "meta_title": "string",
    "meta_description": "string",
    "name": "string",
    "external_reference": "string",
    "description": "string",
    "short_description": "string",
    "slug": "string",
    "hs_code": "string",
    "country_of_origin": "string",
    "type": "standard",
    "categories": [
        {
            "name": "string",
            "external_identifier": "string",
            "update_on_exists": true
        }
    ],
    "brand_name": "string",
    "supplier_name": "string",
    "attributes": [
        {
            "key": "string",
            "value": "string",
            "is_feature": true,
            "is_labeled": true
        }
    ],
    "specifications": [
        {
            "title": "string",
            "specifications": [
                {
                    "key": "string",
                    "value": "string",
                    "is_featured": true
                }
            ]
        }
    ],
    "filter_tags": [
        "string"
    ],
    "images": [
        "string"
    ]
}'
Response Response Example
{}

Request

Path Params
productId
string 
required
Header Params
X-Identifier
string 
optional
Example:
{{x_identifier}}
Authorization
string 
optional
Example:
Bearer {{token}}
Accept
string 
optional
Example:
application/json
Content-Type
string 
optional
Example:
application/json
Body Params application/json
status
enum<string> 
optional
Allowed values:
draftpublishedinactivepending_retirementretired
meta_title
string 
optional
meta_description
string 
optional
name
string 
optional
external_reference
string 
optional
description
string 
optional
short_description
string 
optional
slug
string 
optional
hs_code
string 
optional
country_of_origin
string 
optional
type
enum<string> 
optional
Allowed values:
standardinventory_itempre_order_item
categories
array [object {3}] 
optional
Set category or create if not found
name
string 
required
external_identifier
string 
optional
update_on_exists
boolean 
optional
brand_name
string 
optional
Set brand or create brand if not found
supplier_name
string 
optional
Set supplier or create supplier if not found
attributes
array [object {4}] 
optional
key
string 
optional
value
string 
optional
is_feature
boolean 
optional
is_labeled
boolean 
optional
specifications
array [object {2}] 
optional
title
string 
optional
specifications
array [object {3}] 
optional
filter_tags
array[string]
optional
images
array[string]
optional
Examples

Responses

🟢200Success
application/json
Body
object {0}
Previous
Create product
Next
Create variant
Built with