Skip to main content
POST
/
v3
/
content?action=restore
Bulk Restore Content
curl --request POST \
  --url 'https://api.proposales.com/v3/content?action=restore' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "variation_ids": [
    123
  ],
  "product_ids": [
    123
  ]
}'
{
  "data": {
    "restored_count": 123,
    "product_ids": [
      123
    ],
    "message": "<string>"
  }
}
Use this endpoint to restore multiple archived content items in a single request. Restoring archived content makes them visible again in the content library and allows them to be added to proposals. Note: This operation is idempotent. You can safely call it on already-active products without errors, and only products that are currently archived will be updated.

Request Body

variation_ids
number[]
An array of variation IDs to restore. Either this or product_ids must be provided.
product_ids
number[]
An array of product IDs to restore. Either this or variation_ids must be provided. This is often more convenient when you have product IDs rather than variation IDs.
{
  "variation_ids": [123, 456, 789]
}
Or alternatively:
{
  "product_ids": [123, 456, 789]
}

Response

data
object
{
  "data": {
    "restored_count": 3,
    "product_ids": [123, 456, 789],
    "message": "Products restored successfully"
  }
}
To archive content items, use the Bulk Archive Content endpoint.