Admin

Update a product

Update a new product.

put/admin/products/{product_id}

Request

  • Base URL: https://api.presscart.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.presscart.com/admin/products/{product_id}
  • Auth: HTTP bearer

Path parameters

product_idstring uuid required
Example:87d5efdf-9ca9-4315-9388-44d899dc66c0

Request body

namestring
descriptionstring nullable
imagestring nullable
logostring nullable
example_screenshotstring nullable
type_idstring uuid
activeboolean
requirementsstring nullable
min_delivery_daysinteger nullable
max_delivery_daysinteger nullable
is_featuredboolean
llm_aeo'YES' | 'NO' | 'MAYBE' | 'DISCRETE' nullable
internal_costnumber nullable
outlet_channel_idsstring[]

Example request

{
  "name": "Blog Post",
  "llm_aeo": "MAYBE",
  "prices": [
    {
      "unit_amount": 191.95,
      "type": "ONE_TIME",
      "interval": "MONTH"
    }
  ]
}

Response

Product updated successfully

idstring uuid required
namestring required
descriptionstring nullable required
imagestring nullable required
logostring nullable required
example_screenshotstring nullable required
stripe_product_idstring nullable required
type_idstring uuid required
activeboolean required
requirementsstring nullable required
min_delivery_daysinteger nullable required
max_delivery_daysinteger nullable required
is_featuredboolean required
example_linksstring[] required
llm_aeo'YES' | 'NO' | 'MAYBE' | 'DISCRETE' nullable required

Example response

{
  "name": "Blog Post",
  "example_links": [
    "https://example.com/example-link-1",
    "https://example.com/example-link-2"
  ],
  "llm_aeo": "MAYBE"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.