Update Product Draft
# Update Product Draft
Replaces the existing draft changeset for a product with new values. Updates the scheduled publication time if provided and reschedules any existing publication jobs.
PATCH
/api/v1/{team_slug}/{app_slug}/products/{product_id}/draft
PurposeReplaces the existing draft changeset for a product with new values.
Required inputsapp_slug path team_slug path product_id path
Primary response200 ยท Draft updated successfully
Operation keymanagement-api:PATCH:/api/v1/{team_slug}/{app_slug}/products/{product_id}/draft
## API ownership
- API family: Management API
- Best for: Trusted back-office workflows that create, update, organize, or delete merchant-owned data.
- Do not use from: Browser-only storefront code or public clients.
- Guide route: [/apis/management/latest](/apis/management/latest)
The OpenAPI contract defines the method, path, parameters, request body, and responses for this operation.
## Operation
- Method: `PATCH`
- Path: `/api/v1/{team_slug}/{app_slug}/products/{product_id}/draft`
- Summary: Update Product Draft
- Description: Replaces the existing draft changeset for a product with new values. Updates the scheduled publication time if provided and reschedules any existing publication jobs.
- OpenAPI contract:
management-api
- Operation ID: Not documented in the OpenAPI contract.
- Stable operation key: `management-api:PATCH:/api/v1/{team_slug}/{app_slug}/products/{product_id}/draft`
Operation key uses API family, method, and path because this OpenAPI contract does not publish an operation ID.
## Parameters
| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| app_slug | path | Yes | string | App slug |
| team_slug | path | Yes | string | Team slug |
| product_id | path | Yes | string | Product ID |
## Request body
- Required: Yes
- Description: Updated draft changeset and optional publish_at
- Content: application/json (object)
### Update Product Draft Payload
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `changeset` | object | Yes | - |
| `publish_at` | string | No | - |
#### Product Draft Changeset
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `attributes` | string[] | No | - |
| `categories` | object[] | No | - |
| `collections` | string[] | No | - |
| `description` | string | No | - |
| `html_description` | string | No | - |
| `html_short_description` | string | No | - |
| `images` | object[] | No | - |
| `meta_description` | string | No | - |
| `meta_title` | string | No | - |
| `name` | string | No | - |
| `short_description` | string | No | - |
| `tags` | object[] | No | - |
#### Draft Category Ref
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `id` | string | No | - |
| `is_main_category` | boolean | No | - |
| `order` | integer | No | - |
#### Draft Image Ref
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `id` | string | No | - |
| `priority` | integer | No | - |
#### Draft Tag Ref
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `key` | string | No | - |
| `order` | integer | No | - |
**Generated example (synthetic):**
```json
{
"changeset": {
"attributes": [
"string"
],
"categories": [
{
"id": "string",
"is_main_category": false,
"order": 0
}
],
"collections": [
"string"
],
"description": "string",
"html_description": "string",
"html_short_description": "string",
"images": [
{
"id": "string",
"priority": 0
}
],
"meta_description": "string",
"meta_title": "string",
"name": "string",
"short_description": "string",
"tags": [
{
"key": "string",
"order": 0
}
]
},
"publish_at": "string"
}
```
## Responses
| Status | Description | Content |
| --- | --- | --- |
| 200 | Draft updated successfully | application/json (object) |
| 400 | Invalid request (e.g. validation error) | application/json (object) |
| 401 | Unauthorized access | application/json (object) |
| 404 | No draft found for this product | application/json (object) |
| 500 | Internal server error | application/json (object) |
### 200 - object
#### Product Draft Response
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `data` | object | No | - |
| `details` | string[] | No | Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes |
| `success` | boolean | No | - |
##### Product Draft
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `app_id` | string | No | - |
| `changeset` | object | No | - |
| `created_at` | string | No | - |
| `id` | string | No | - |
| `product_id` | string | No | - |
| `publish_at` | string | No | - |
| `updated_at` | string | No | - |
##### Product Draft Changeset
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `attributes` | string[] | No | - |
| `categories` | object[] | No | - |
| `collections` | string[] | No | - |
| `description` | string | No | - |
| `html_description` | string | No | - |
| `html_short_description` | string | No | - |
| `images` | object[] | No | - |
| `meta_description` | string | No | - |
| `meta_title` | string | No | - |
| `name` | string | No | - |
| `short_description` | string | No | - |
| `tags` | object[] | No | - |
Generated example (synthetic)
```json
{
"data": {
"app_id": "string",
"changeset": {
"attributes": [
"string"
],
"categories": [
{
"id": null,
"is_main_category": null,
"order": null
}
],
"collections": [
"string"
],
"description": "string",
"html_description": "string",
"html_short_description": "string",
"images": [
{
"id": null,
"priority": null
}
],
"meta_description": "string",
"meta_title": "string",
"name": "string",
"short_description": "string",
"tags": [
{
"key": null,
"order": null
}
]
},
"created_at": "string",
"id": "string",
"product_id": "string",
"publish_at": "string",
"updated_at": "string"
},
"details": [
"string"
],
"success": false
}
```
### 400 - object
#### Error Message
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `details` | string[] | No | - |
| `message` | string | No | - |
| `success` | boolean | No | - |
**Generated example (synthetic):**
```json
{
"details": [
"string"
],
"message": "string",
"success": false
}
```
### 401 - object
#### Error Message
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `details` | string[] | No | - |
| `message` | string | No | - |
| `success` | boolean | No | - |
**Generated example (synthetic):**
```json
{
"details": [
"string"
],
"message": "string",
"success": false
}
```
### 404 - object
#### Error Message
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `details` | string[] | No | - |
| `message` | string | No | - |
| `success` | boolean | No | - |
**Generated example (synthetic):**
```json
{
"details": [
"string"
],
"message": "string",
"success": false
}
```
### 500 - object
#### Error Message
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `details` | string[] | No | - |
| `message` | string | No | - |
| `success` | boolean | No | - |
**Generated example (synthetic):**
```json
{
"details": [
"string"
],
"message": "string",
"success": false
}
```
## Contract identity
Use these fields to confirm you are implementing the intended endpoint contract.
- API family: Management API
- Method: `PATCH`
- Path: `/api/v1/{team_slug}/{app_slug}/products/{product_id}/draft`
- Operation ID: Not documented in the OpenAPI contract.
- Stable operation key: `management-api:PATCH:/api/v1/{team_slug}/{app_slug}/products/{product_id}/draft`
- OpenAPI tag: Product Drafts
- OpenAPI summary: Update Product Draft