Skip to main content
PUT
/
2023-11
/
admin
/
products
/
{serviceId}
Update
curl --request PUT \
  --url https://api-staging.genuka.com/2023-11/admin/products/{serviceId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
"{\n    \"title\": \"Coupe mixte\",\n    \"type\": \"service\",\n    \"handle\": \"coupe-mixte\",\n    \"content\": \"Coupe de cheveux mixte pour hommes et femmes.\",\n    \"published\": 1,\n    \"price\": 1000,\n    \"duration_minutes\": 50,\n    \"buffer_minutes\": 10,\n    \"professionals\": [\n        {\n            \"id\": \"01hk7qfgkyd4cg9vd8h7jr749d\"\n        }\n    ],\n    \"medias\": [],\n    \"tags\": [\n        {\n            \"name\": \"Tag Nouveau 1\" // Création d'un nouveau tag\n        },\n        {\n            \"name\": \"Tag Nouveau 2\" // Création d'un autre nouveau tag\n        }\n    ]\n}"
EOF
{
  "buffer_minutes": 10,
  "company_id": "01k7464hqksr4f99rp3ff7x2jz",
  "compare_at_price": null,
  "content": "Coupe de cheveux mixte pour hommes et femmes.",
  "created_at": "2025-10-09T13:29:30.000000Z",
  "deleted_at": null,
  "deposit": null,
  "duration_minutes": 50,
  "first_variant": {
    "barcode": null,
    "base_title": "Default Title",
    "buffer_minutes": 10,
    "compare_at_price": null,
    "composite_stocks": [],
    "created_at": "2025-10-09T13:31:56.000000Z",
    "deleted_at": null,
    "deposit": null,
    "duration_minutes": 50,
    "estimated_quantity": null,
    "estimated_quantity_by_warehouse": [],
    "follow_stock": 0,
    "id": "01k74jqm9sb7ht6mqqbng08kmb",
    "image_id": null,
    "metadata": null,
    "min_order_quantity": 1,
    "options": [
      0
    ],
    "position": 1,
    "price": 1000,
    "product_id": "01k74jk695pe50w3vmd5nz3w2q",
    "professionals": [],
    "service": {
      "buffer_minutes": 10,
      "created_at": "2025-10-09T13:31:56.000000Z",
      "deleted_at": null,
      "deposit": null,
      "duration_minutes": 50,
      "id": "01k74jqmajfa8y0z9m5cw9hhw4",
      "metadata": null,
      "product_variant_id": "01k74jqm9sb7ht6mqqbng08kmb",
      "professionals": [],
      "updated_at": "2025-10-09T13:31:56.000000Z"
    },
    "service_id": "01k74jqmajfa8y0z9m5cw9hhw4",
    "sku": null,
    "supplierproduct": null,
    "taxable": 1,
    "title": "Default Title",
    "updated_at": "2025-10-09T13:31:56.000000Z",
    "whatsapp_product_id": null
  },
  "follow_stock": false,
  "handle": "coupe-mixte",
  "has_variants": true,
  "id": "01k74jk695pe50w3vmd5nz3w2q",
  "is_shippable": 1,
  "is_taxable": 1,
  "medias": [],
  "menus": [],
  "metadata": {
    "image_ready": false
  },
  "min_price": 10,
  "options": [
    {
      "created_at": "2025-10-09T13:29:30.000000Z",
      "deleted_at": null,
      "id": "01k74jk6c4x17tt8bzkfne0py4",
      "metadata": null,
      "position": 1,
      "product_id": "01k74jk695pe50w3vmd5nz3w2q",
      "title": "Default Title",
      "updated_at": "2025-10-09T13:29:30.000000Z",
      "values": [
        "Default Title"
      ]
    },
    {
      "created_at": "2025-10-09T13:31:56.000000Z",
      "deleted_at": null,
      "id": "01k74jqmb9636cxzhygn73nkj8",
      "metadata": null,
      "position": 1,
      "product_id": "01k74jk695pe50w3vmd5nz3w2q",
      "title": "Default Title",
      "updated_at": "2025-10-09T13:31:56.000000Z",
      "values": [
        "Default Title"
      ]
    }
  ],
  "professionals": [],
  "published": 1,
  "remaining_stocks": null,
  "supplier_id": null,
  "tags": [
    {
      "company_id": "01k7464hqksr4f99rp3ff7x2jz",
      "created_at": "2025-10-09T09:57:33.000000Z",
      "id": "01k746f3hn5q8z1kw9m69v1h6a",
      "name": "TAG NOUVEAU 1",
      "pivot": {
        "created_at": "2025-10-09T13:31:56.000000Z",
        "tag_id": "01k746f3hn5q8z1kw9m69v1h6a",
        "taggable_id": "01k74jk695pe50w3vmd5nz3w2q",
        "taggable_type": "App\\Models\\Product",
        "updated_at": "2025-10-09T13:31:56.000000Z"
      },
      "updated_at": "2025-10-09T09:57:33.000000Z"
    },
    {
      "company_id": "01k7464hqksr4f99rp3ff7x2jz",
      "created_at": "2025-10-09T09:57:33.000000Z",
      "id": "01k746f3jd4tc7z3jkdf5nm4bw",
      "name": "TAG NOUVEAU 2",
      "pivot": {
        "created_at": "2025-10-09T13:31:56.000000Z",
        "tag_id": "01k746f3jd4tc7z3jkdf5nm4bw",
        "taggable_id": "01k74jk695pe50w3vmd5nz3w2q",
        "taggable_type": "App\\Models\\Product",
        "updated_at": "2025-10-09T13:31:56.000000Z"
      },
      "updated_at": "2025-10-09T09:57:33.000000Z"
    }
  ],
  "title": "Coupe mixte",
  "type": "service",
  "updated_at": "2025-10-09T13:29:30.000000Z",
  "variants": [
    {
      "barcode": null,
      "base_title": "Default Title",
      "buffer_minutes": 10,
      "compare_at_price": null,
      "composite_stocks": [],
      "created_at": "2025-10-09T13:29:30.000000Z",
      "deleted_at": null,
      "deposit": null,
      "duration_minutes": 50,
      "estimated_quantity": null,
      "estimated_quantity_by_warehouse": [],
      "follow_stock": 0,
      "id": "01k74jk69y8ff2n7b1kxdy6byv",
      "image_id": null,
      "load_product": false,
      "metadata": null,
      "min_order_quantity": 1,
      "options": [
        0
      ],
      "position": 1,
      "price": 10,
      "product_id": "01k74jk695pe50w3vmd5nz3w2q",
      "professionals": [],
      "service": {
        "buffer_minutes": 10,
        "created_at": "2025-10-09T13:29:30.000000Z",
        "deleted_at": null,
        "deposit": null,
        "duration_minutes": 50,
        "id": "01k74jk6aryht2p5hqa66tr8bd",
        "metadata": null,
        "product_variant_id": "01k74jk69y8ff2n7b1kxdy6byv",
        "professionals": [],
        "updated_at": "2025-10-09T13:29:30.000000Z"
      },
      "service_id": "01k74jk6aryht2p5hqa66tr8bd",
      "sku": null,
      "stocks": [],
      "supplierproduct": null,
      "taxable": 1,
      "title": "Default Title",
      "updated_at": "2025-10-09T13:29:30.000000Z",
      "whatsapp_product_id": null
    },
    {
      "barcode": null,
      "base_title": "Default Title",
      "buffer_minutes": 10,
      "compare_at_price": null,
      "composite_stocks": [],
      "created_at": "2025-10-09T13:31:56.000000Z",
      "deleted_at": null,
      "deposit": null,
      "duration_minutes": 50,
      "estimated_quantity": null,
      "estimated_quantity_by_warehouse": [],
      "follow_stock": 0,
      "id": "01k74jqm9sb7ht6mqqbng08kmb",
      "image_id": null,
      "load_product": false,
      "metadata": null,
      "min_order_quantity": 1,
      "options": [
        0
      ],
      "position": 1,
      "price": 1000,
      "product_id": "01k74jk695pe50w3vmd5nz3w2q",
      "professionals": [],
      "service": {
        "buffer_minutes": 10,
        "created_at": "2025-10-09T13:31:56.000000Z",
        "deleted_at": null,
        "deposit": null,
        "duration_minutes": 50,
        "id": "01k74jqmajfa8y0z9m5cw9hhw4",
        "metadata": null,
        "product_variant_id": "01k74jqm9sb7ht6mqqbng08kmb",
        "professionals": [],
        "updated_at": "2025-10-09T13:31:56.000000Z"
      },
      "service_id": "01k74jqmajfa8y0z9m5cw9hhw4",
      "sku": null,
      "stocks": [],
      "supplierproduct": null,
      "taxable": 1,
      "title": "Default Title",
      "updated_at": "2025-10-09T13:31:56.000000Z",
      "whatsapp_product_id": null
    }
  ],
  "variants_count": 2,
  "vendor": null
}

Authorizations

Authorization
string
header
required

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

Headers

x-company
string
Example:

"{{companyId}}"

Path Parameters

serviceId
string
required

Response

200 OK

buffer_minutes
number
Example:

10

company_id
string
Example:

"01k7464hqksr4f99rp3ff7x2jz"

compare_at_price
unknown
content
string
Example:

"Coupe de cheveux mixte pour hommes et femmes."

created_at
string
Example:

"2025-10-09T13:29:30.000000Z"

deleted_at
unknown
deposit
unknown
duration_minutes
number
Example:

50

first_variant
object
follow_stock
boolean
Example:

false

handle
string
Example:

"coupe-mixte"

has_variants
boolean
Example:

true

id
string
Example:

"01k74jk695pe50w3vmd5nz3w2q"

is_shippable
number
Example:

1

is_taxable
number
Example:

1

medias
any[]
Example:
[]
menus
any[]
Example:
[]
metadata
object
min_price
number
Example:

10

options
object[]
Example:
[
{
"created_at": "2025-10-09T13:29:30.000000Z",
"deleted_at": null,
"id": "01k74jk6c4x17tt8bzkfne0py4",
"metadata": null,
"position": 1,
"product_id": "01k74jk695pe50w3vmd5nz3w2q",
"title": "Default Title",
"updated_at": "2025-10-09T13:29:30.000000Z",
"values": ["Default Title"]
},
{
"created_at": "2025-10-09T13:31:56.000000Z",
"deleted_at": null,
"id": "01k74jqmb9636cxzhygn73nkj8",
"metadata": null,
"position": 1,
"product_id": "01k74jk695pe50w3vmd5nz3w2q",
"title": "Default Title",
"updated_at": "2025-10-09T13:31:56.000000Z",
"values": ["Default Title"]
}
]
professionals
any[]
Example:
[]
published
number
Example:

1

remaining_stocks
unknown
supplier_id
unknown
tags
object[]
Example:
[
{
"company_id": "01k7464hqksr4f99rp3ff7x2jz",
"created_at": "2025-10-09T09:57:33.000000Z",
"id": "01k746f3hn5q8z1kw9m69v1h6a",
"name": "TAG NOUVEAU 1",
"pivot": {
"created_at": "2025-10-09T13:31:56.000000Z",
"tag_id": "01k746f3hn5q8z1kw9m69v1h6a",
"taggable_id": "01k74jk695pe50w3vmd5nz3w2q",
"taggable_type": "App\\Models\\Product",
"updated_at": "2025-10-09T13:31:56.000000Z"
},
"updated_at": "2025-10-09T09:57:33.000000Z"
},
{
"company_id": "01k7464hqksr4f99rp3ff7x2jz",
"created_at": "2025-10-09T09:57:33.000000Z",
"id": "01k746f3jd4tc7z3jkdf5nm4bw",
"name": "TAG NOUVEAU 2",
"pivot": {
"created_at": "2025-10-09T13:31:56.000000Z",
"tag_id": "01k746f3jd4tc7z3jkdf5nm4bw",
"taggable_id": "01k74jk695pe50w3vmd5nz3w2q",
"taggable_type": "App\\Models\\Product",
"updated_at": "2025-10-09T13:31:56.000000Z"
},
"updated_at": "2025-10-09T09:57:33.000000Z"
}
]
title
string
Example:

"Coupe mixte"

type
string
Example:

"service"

updated_at
string
Example:

"2025-10-09T13:29:30.000000Z"

variants
object[]
Example:
[
{
"barcode": null,
"base_title": "Default Title",
"buffer_minutes": 10,
"compare_at_price": null,
"composite_stocks": [],
"created_at": "2025-10-09T13:29:30.000000Z",
"deleted_at": null,
"deposit": null,
"duration_minutes": 50,
"estimated_quantity": null,
"estimated_quantity_by_warehouse": [],
"follow_stock": 0,
"id": "01k74jk69y8ff2n7b1kxdy6byv",
"image_id": null,
"load_product": false,
"metadata": null,
"min_order_quantity": 1,
"options": [0],
"position": 1,
"price": 10,
"product_id": "01k74jk695pe50w3vmd5nz3w2q",
"professionals": [],
"service": {
"buffer_minutes": 10,
"created_at": "2025-10-09T13:29:30.000000Z",
"deleted_at": null,
"deposit": null,
"duration_minutes": 50,
"id": "01k74jk6aryht2p5hqa66tr8bd",
"metadata": null,
"product_variant_id": "01k74jk69y8ff2n7b1kxdy6byv",
"professionals": [],
"updated_at": "2025-10-09T13:29:30.000000Z"
},
"service_id": "01k74jk6aryht2p5hqa66tr8bd",
"sku": null,
"stocks": [],
"supplierproduct": null,
"taxable": 1,
"title": "Default Title",
"updated_at": "2025-10-09T13:29:30.000000Z",
"whatsapp_product_id": null
},
{
"barcode": null,
"base_title": "Default Title",
"buffer_minutes": 10,
"compare_at_price": null,
"composite_stocks": [],
"created_at": "2025-10-09T13:31:56.000000Z",
"deleted_at": null,
"deposit": null,
"duration_minutes": 50,
"estimated_quantity": null,
"estimated_quantity_by_warehouse": [],
"follow_stock": 0,
"id": "01k74jqm9sb7ht6mqqbng08kmb",
"image_id": null,
"load_product": false,
"metadata": null,
"min_order_quantity": 1,
"options": [0],
"position": 1,
"price": 1000,
"product_id": "01k74jk695pe50w3vmd5nz3w2q",
"professionals": [],
"service": {
"buffer_minutes": 10,
"created_at": "2025-10-09T13:31:56.000000Z",
"deleted_at": null,
"deposit": null,
"duration_minutes": 50,
"id": "01k74jqmajfa8y0z9m5cw9hhw4",
"metadata": null,
"product_variant_id": "01k74jqm9sb7ht6mqqbng08kmb",
"professionals": [],
"updated_at": "2025-10-09T13:31:56.000000Z"
},
"service_id": "01k74jqmajfa8y0z9m5cw9hhw4",
"sku": null,
"stocks": [],
"supplierproduct": null,
"taxable": 1,
"title": "Default Title",
"updated_at": "2025-10-09T13:31:56.000000Z",
"whatsapp_product_id": null
}
]
variants_count
number
Example:

2

vendor
unknown