Ads · Product Catalogs

Update a product

Updates a product. Works with Meta Ads.

PUThttps://api.pozy.ai/v1/ads/catalogs/{catalogId}/products/{productId}
Facebook and InstagramupdateAdCatalogProduct

Guide: Product catalogs and catalog ads

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the ads resource group disabled get 403 resource_group_disabled. Authentication

Path parameters

NameTypeNotes
catalogIdrequiredstring
productIdrequiredstring

Request body

application/json, required

  • accountIdstringrequired
  • catalogAccountIdstring
  • productobjectrequired
    31 child fields
    • retailerIdstring

      Up to 100 characters.

    • namestring

      Up to 200 characters.

    • descriptionstring

      Up to 9999 characters.

    • urlstring (URL)
    • imageUrlstring (URL)
    • additionalImageUrlsarray of string (URL)

      Up to 20 items.

    • pricenumber
    • currencystring
    • salePricenumber
    • salePriceStartDatestring
    • salePriceEndDatestring
    • availabilitystring

      One of in stock, out of stock, preorder, available for order, discontinued, pending.

    • conditionstring

      One of new, refurbished, used.

    • brandstring

      Up to 100 characters.

    • categorystring

      Up to 250 characters.

    • googleProductCategorystring

      Up to 250 characters.

    • productTypestring

      Up to 750 characters.

    • gtinstring

      Up to 50 characters.

    • mpnstring

      Up to 100 characters.

    • inventoryinteger

      At least 0.

    • visibilitystring

      One of published, staging.

    • colorstring

      Up to 200 characters.

    • sizestring

      Up to 200 characters.

    • genderstring

      One of female, male, unisex.

    • materialstring

      Up to 200 characters.

    • patternstring

      Up to 100 characters.

    • customLabel0string

      Up to 100 characters.

    • customLabel1string

      Up to 100 characters.

    • customLabel2string

      Up to 100 characters.

    • customLabel3string

      Up to 100 characters.

    • customLabel4string

      Up to 100 characters.

Example

curl -X PUT "https://api.pozy.ai/v1/ads/catalogs/6f2f2ffcf4ace3659342c4c2/products/659773d34b353e6821202f21" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "accountId": "696e0b682d0a31188e7a2ba9",
  "product": {
    "retailerId": "62ed28b157a658d89f9173aa",
    "name": "Acme",
    "description": "A short description"
  }
}'

Response

200 on success

  • productobject
    26 child fields
    • idstring
    • retailerIdstring

      Can be null.

    • namestring
    • descriptionstring

      Can be null.

    • urlstring

      Can be null.

    • imageUrlstring

      Can be null.

    • additionalImageUrlsarray of string
    • pricestring

      Can be null.

    • salePricestring

      Can be null.

    • currencystring

      Can be null.

    • availabilitystring

      Can be null.

    • conditionstring

      Can be null.

    • brandstring

      Can be null.

    • categorystring

      Can be null.

    • productTypestring

      Can be null.

    • gtinstring

      Can be null.

    • inventoryinteger

      Can be null.

    • visibilitystring

      Can be null.

    • colorstring

      Can be null.

    • sizestring

      Can be null.

    • genderstring

      Can be null.

    • materialstring

      Can be null.

    • patternstring

      Can be null.

    • customLabelsarray of string

      Each item: can be null.

    • reviewStatusstring

      Can be null.

    • reviewRejectionReasonsarray of string
200 response
{
  "product": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "retailerId": "62ed28b157a658d89f9173aa",
    "name": "Acme",
    "description": "A short description",
    "url": "https://pozy.ai/media/example-1.jpg",
    "imageUrl": "https://pozy.ai/media/example-1.jpg",
    "additionalImageUrls": [
      "https://pozy.ai/media/example-1.jpg"
    ],
    "price": "string",
    "salePrice": "string",
    "currency": "USD",
    "availability": "string",
    "condition": "string",
    "brand": "string",
    "category": "string",
    "productType": "string",
    "gtin": "string",
    "inventory": 1,
    "visibility": "string",
    "color": "string",
    "size": "string",
    "gender": "string",
    "material": "string",
    "pattern": "string",
    "customLabels": [
      "string"
    ],
    "reviewStatus": "active",
    "reviewRejectionReasons": [
      "string"
    ]
  }
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is read-only, scoped to other profiles, or has this resource group disabled.
404not_foundNothing with that id exists in your workspace.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Product Catalogs