How to add a row to a custom object
Audience:
•
Version: 10
Some tooltip text!
• 1 minute to read
• 1 minute to read
Request
To insert a new row using the DatabaseTable
agent, specify the TableName
and Values
as body parameters.
POST https://{{env}}.superoffice.com/{{tenant}}/api/v1/Agents/DatabaseTable/InsertRow HTTP/1.1
Authorization: Bearer {{token}}
Accept: application/json; charset=utf-8
Content-Type: application/json
{
"TableName": "y_equipment",
"Values: {
"x_company": 1,
"x_name": "printer"
}
}
For details, see the DatabaseTable agent reference.
Response
The Response returns the recordId of the new row.
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
2