Skip to main content
PUT
/
v2
/
product
Update Product V2
curl --request PUT \
  --url https://api.jogg.ai/v2/product \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "product_id": "NTQ0MTkzNjg",
  "name": "<string>",
  "description": "<string>",
  "target_audience": "<string>",
  "media": [
    {
      "type": 1,
      "name": "<string>",
      "url": "<string>",
      "description": "<string>"
    }
  ]
}
'
{
  "code": 0,
  "msg": "Success"
}
Update an existing product’s information including name, description, target audience, and media resources. This is an optional step in the product video workflow, allowing you to refine product details before generating videos.

Example Usage

curl -X PUT 'https://api.jogg.ai/v2/product' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "product_id": "NTQ0MTkzNjg",
    "name": "Updated Product Name",
    "description": "Updated product description and selling points",
    "target_audience": "Updated target audience"
  }'

Authorizations

x-api-key
string
header
required

API key for authentication. Obtain your key from the JoggAI dashboard.

Body

application/json
product_id
string
required

Product ID from creation step

Example:

"NTQ0MTkzNjg"

name
string

Updated product name

description
string

Updated description

target_audience
string

Updated target audience

media
object[]

Updated media resources

Response

200 - application/json

Success

code
integer
required

Business status code:

  • 0 - Success
  • 10104 - Record not found
  • 10105 - Invalid API key
  • 18020 - Insufficient credit
  • 18025 - No permission to call APIs
  • 40000 - Parameter error
  • 50000 - System error
Example:

0

msg
string
required

Response message

Example:

"Success"