DELETE
Delete a product
- Path
/products/{docId}- Auth
- Secret key · server only
DELETE
/products/{docId}
const url = 'https://releva.ai/api/v0/products/DEMO-1001';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://releva.ai/api/v0/products/DEMO-1001 \ --header 'Authorization: Bearer <token>'Deletes the product whose stored id equals docId exactly (the id sent to POST /products,
including any locale/market suffix). Asynchronous. An unknown id also answers 202.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”docId
required
string
The product id as sent to POST /products. Percent-encode reserved characters.
Example
DEMO-1001Responses
Section titled “Responses”Accepted for asynchronous processing.
Media typeapplication/json
object
Example
{}Authorization header missing, malformed, not a UUID, or unknown.
Media typeapplication/json
object
message
required
Human-readable error. Several validation errors are joined with a space.
string
Examples
{ "message": "Authorization header is missing."}{ "message": "Authorization header is malformed. It should look like `Bearer <string>`."}{ "message": "Authorization header contains an invalid Bearer token."}{ "message": "Domain with the provided secret key cannot be found."}The domain is disabled.
Media typeapplication/json
object
message
required
Human-readable error. Several validation errors are joined with a space.
string
Example
{ "message": "Domain is disabled. Please reach out to support@releva.ai to enable it."}Unexpected server error.
Media typeapplication/json
object
message
required
Human-readable error. Several validation errors are joined with a space.
string
Example
{ "message": "An internal error occurred."}