Skip to main content

DELETE /{url}/{id}

Description

Deletes a row in the table data and returns a JSON object with the ID of that row

The route handles the HTTP POST request made to the /{url}/{id} path.

Parameters

The following path parameters are sent in the request line:

NameTypeDescription
urlstringRequired. A custom provided url segment.
idstring or numberRequired. The id of a row to be deleted.

Payload

No payload is required.

Response

The server returns a JSON object with the id of the deleted row.

Example:

{
"id": 4
}

The HTTP status code shows whether the request succeeds (response.status == 200) or fails (response.status == 500).


Related articles: