Skip to main content

PATCH /{url}/{id}

Description

Updates one field (cell) in a row of the table data

The route handles the HTTP PATCH 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 the row where a field is updated.

Payload

The server needs to receive an object with the key (field name) and value (string).

Example:

{
"key": "name",
"value": "Ann"
}

Response

Returns a JSON object with the ID of the row where a field was updated.

Example:

{
"id": 6
}

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


Related articles: