Fullscreen Image

REST API

An Application Program Interface (API) allows applications to communicate with other systems through code. Lucernex uses a REST API that lets you GET, PUT, POST, and DELETE data from Lucernex. A REST (Representational State Transfer) API is a common architectural approach for web service communication.

Use the Lucernex API in one of these ways:

  • Send an XML file to Lucernex. This method is typically used for large updates.

  • Send POST requests using an API client such as Postman.

    Accruent does not provide API software. Use the tool recommended by your organization.

ClosedREST API basics

REST APIs use HTTP requests to manage data transactions. REST APIs support four request types, also known as methods or calls. These methods align with the CRUD database update model.

REST APIs support these request types:

  • POST: Creates/updates objects (Create)

  • GET: Retrieves objects (Read)

  • PUT: Updates objects (Update)

  • DELETE: Removes objects (Delete)

REST APIs are stateless and don't rely on responses from the system. After a POST request completes, you can submit another API request without maintaining a session state.

Lucernex has a dedicated API server that other system processes do not affect. API performance remains stable even when activity in Lucernex increases.

ClosedSupported API languages

ClosedEnvironments

For more information about Lucernex environments, see the What environments exist for Lucernex? question on our Frequently Asked Questions page.

In the API section of the User Guide, {{url}} refers to your environment URL.

Maintenance schedule

Train refresh schedule

ClosedDefinitions

The following key terms may appear in our API documentation:

  • Resource: Any item that you can access through a REST API URL.

    • businessObject: Primary Lx REST API resource for reading individual objects and object groups, and for creating, updating, and deleting individual objects.

    • firm: Primary Lx REST API resource for creating and updating multiple objects at one time.

  • Object: Any related set of fields in Lucernex that represent a single artifact or idea (for example, contract, payment transaction, straight‐line period, percentage rent record, schedule task). An object may also be referred to as a table.

  • Entity: Any Lucernex object that you can access from the primary tabs in the user interface.

ClosedLucernex API

The following pages on the System Administrator Dashboard support API development. Also use tools such as Postman to develop API calls and XML syntax.

  • Manage Data Fields

    • Description: Browse by data groups, which reflect table relationships to some extent

    • Link: {{url}}/en/pagebuilder/ReportGroupAvailableFieldEdit. jsp

  • View Object Model

    • Description: Browse by table; view maximum field size

    • Link: {{url}}/en/admin/ShowObjectDetails. jsp

  • REST API Web Services Docs tool

    • Description: View schemas and test with API calls

      This tool shows JSON by default.

    • Link: {{url}}/en/test/RESTful. jsp

ClosedXML

eXtensible Markup Language (XML) is a markup language for storing and transporting data. Many ETL (Extract, Transform, Load) tools are available for writing XML, including Metl and Mapforce.

Reserved characters

Character XML Encoding Description
< &lt; less than
> &gt; greater than
& &amp; ampersand
' &apos; apostrophe
" &quot; quotation mark