DELETE /lookup/{table}/{field}/id/{id}
Delete a lookup value by ID
Deletes an existing lookup value identified by its ID for a specific table and field. Only account administrators can delete lookup values.
Authentication Required
Authorization: Bearer {token}
header string This header is required to access this endpoint
Required Parameters
x-account-id
header string Account ID for the request
table
path string The table name containing the lookup value
field
path string The field name containing the lookup value
id
path integer The ID of the lookup option to delete
Try it out
Output:
Responses
Description
Lookup value deleted successfully
{ "message": "Lookup value deleted successfully"}Description
Bad request - invalid table or field
{ "error": "string", "status": 0, "message": "string"}Description
Unauthorized - User not authenticated
Description
Forbidden - User does not have permission to delete lookup values
Description
Not found - lookup value with ID does not exist
{ "error": "string", "status": 0, "message": "string"}Description
Internal server error
{ "error": "string", "status": 0, "message": "string"}References
#/components/parameters/xAccountIdHeader
in: headername: x-account-idschema: type: stringdescription: Account ID for the requestrequired: trueexample: "2311"|export type xAccountIdHeader = any; // Schema type not fully supported#/components/schemas/Error
type: objectproperties: error: type: string description: Error message status: type: integer description: HTTP status code message: type: string description: Detailed error messagedescription: Error response objectrequired: - error|export interface Error { /** Error message */ error: string; /** HTTP status code */ status?: number; /** Detailed error message */ message?: string;}Route Source Code
Check out the source code for this route entrypoint here: /lookup/[table]/[field]/id/[id]/route.ts
Or the swagger.yaml spec this documentation was generated from:
/lookup/swagger.yaml