Skip to main content

Delete Quote

This DELETE API allows you to remove an existing quote identified by its unique ID. This operation is irreversible, so ensure that the correct quote is being targeted.

Endpoint Details

  • URL: /quote/{quote_id}
  • Method: DELETE
  • Authentication: Bearer Token (required)

Path Parameters

ParameterTypeDescription
quote_idstringThe unique identifier of the quote to delete.

Authentication

You must provide a valid accessToken in the request headers to authenticate and access this endpoint.

Authentication Headers

HeaderTypeDescription
accessTokenstringA valid access token is required.

Request Body

No request body is required for this DELETE operation.

Response

Success Response

Status CodeDescription
200 OKQuote was successfully deleted.

Success Response Body Structure

FieldTypeDescription
successbooleanIndicates if the deletion was successful.
messagestringMessage indicating the result of the delete operation.

Sample Response Body

{
"success": true,
"message": "Quote deleted successfully"
}

Error Responses

Status CodeDescription
400 Bad RequestInvalid request format or missing parameters.
401 UnauthorizedInvalid or missing access token.
403 ForbiddenAccess denied.
404 Not FoundQuote not found.
500 Internal Server ErrorServer encountered an error.

Notes

  • Ensure that the quote_id in the URL corresponds to the actual ID of the quote you wish to delete.
  • This operation is irreversible, so make sure that you intend to delete the specified quote.
  • The API requires a valid access token for authentication to successfully delete the quote.