POST /{url}
Description
Creates a new row in the table dataThe route handles the HTTP POST request made to the /{url}
path.
Parameters
The following path parameters are sent in the request line:
Name | Type | Description |
---|---|---|
url | string | Required. A custom provided url segment. |
For example, https://urlwithdata.io/films
Payload
The server needs to receive a JSON object with data for the new row.
{
"row": {
"name": "New Film",
"year": 2022,
"votes": 1,
"id": "temp://1690792134203"
},
"id": "temp://1690792134203"
}
Response
The server returns a JSON object with the new row ID and other values of the new row.
Example:
{
"id":6,
"name":"New Film",
"year":2023,
"votes":1
}
The HTTP status code shows whether the request succeeds (response.status == 200) or fails (response.status == 500).
Related articles: