Archive record(s)

post /text/Generate/archive
This method is used to mark one or more text-generation records as archived. Archived records are hidden from active lists but remain retrievable for auditing/history.

Requirements

Authentication Required
Bearer access_token
Request Headers
Authorization: Bearer access_token
Parameter Name Type Description
type string, required The record type to archive. Allowed values: "Product", "Category".
recordID string, required

A single ID or comma-separated list of IDs to archive (e.g., "123,456,789").

  • IDs must reference records that exist for the specified type.
  • Comma-separated IDs are trimmed server-side; whitespace is ignored.

Example API Request

Response

200
404
//The request was successful, and the specified records were archived.
//One or more IDs do not exist for the specified type, or the type is invalid.