• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

How to add a row to a custom object

Audience:
api
•
Version: 10
Some tooltip text!
• 1 minute to read
 • 1 minute to read

Request

  • HTTP RPC Agent
  • RESTful REST

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.

To insert a new row using the TableRecord endpoint, specify the table name in the URL and the values in the body.

POST https://{{env}}.superoffice.com/{{tenant}}/api/v1/Table/y_equipment HTTP/1.1
Authorization: Bearer {{token}}
Accept: application/json; charset=utf-8
Content-Type: application/json
{
    "x_company": 1,
    "x_name": "printer"
}

For details, see the Table REST endpoint reference.

Response

The Response returns the recordId of the new row.

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
2
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top