Skip to main content
Every object in a response comes back in full by default: its id, its object type and all of its data. When you need fewer properties, send the shape query parameter. The shape sets which properties each object returns, and the shapes with fewer properties allow more objects per page. Most endpoints that return objects accept full and minimal, and many also accept display. Each endpoint’s shape parameter in the API reference lists the shapes it accepts, and its response shows the fields each shape returns.

Minimal

Use minimal when you only need IDs, for example to collect every employee’s ID before you fetch details for some of them. Request
Response

Display

Use display to show objects by name, for example to fill a select list with a company’s pay schedules. Request
Response
The fields in display depend on the object: a pay schedule returns its title, and an employee returns their first and last names. Each field has the same name and value as in the full object.

Page size

A list returns 15 objects per page unless you send per_page. With the full shape, per_page can be up to 15. With the minimal or display shape, it can be up to 1,000. A larger per_page returns a 422. See Pagination.

What minimal and display leave out

Neither minimal nor display includes created_at, updated_at or related objects, and both ignore expand.

Which endpoints accept display

Only GET endpoints and search endpoints, such as POST /work_assignments/search, can accept display. Every other endpoint, such as one that creates, updates or deletes an object, accepts only full and minimal. Any other shape returns a 422, and the request changes nothing. When you create or update an object and only need its id back, send shape=minimal.

Errors

An endpoint returns a 422 with an error on shape when you send a shape the endpoint doesn’t accept.