LianaCMS REST API

Forms

Serverhttps://example.lianacms.com/api/v3

Forms and their submissions. Read only.


List forms

GET
https://example.lianacms.com/api/v3
/forms

Returns the forms (form sections) on pages of the current site that the user can administer: one of the user's groups must have the admin right to the page, and the user must have the pages_view or pages_modify permission. Items are ordered by id, highest first, and have no href. There are no filters besides limit and offset.

403 is returned when the Form module is not enabled or the user has no access to it.

List forms › query Parameters

limit
​integer · min: 0 · max: 200

The number of items to return, 0 to 200. A value outside that range returns 400.

Default: 20
offset
​integer · min: 0

The number of items to skip. A negative value is treated as 0. Use the next and prev links of the response to page through a list.

Default: 0

List forms › Responses

OK

Links of a list response. There is no `last` link and no total count.
href
​string
​object

First page.

​object

Previous page; the offset stops at 0.

​object

Next page. On the last page the link wraps around to offset 0.

​Meta

List submissions of a form

GET
https://example.lianacms.com/api/v3
/forms/{form-id}/submissions

Returns the submissions of one form, ordered by id, highest first. There are no filters besides limit and offset.

400 is returned when the form id is not an integer. 403 is returned when the Form module is not enabled or the user has no access to it. 404 is returned when the form does not exist or is not one the user can administer (see GET /forms).

List submissions of a form › path Parameters

form-id
​integer · required

Id of the form (the section id of the form section).

List submissions of a form › query Parameters

limit
​integer · min: 0 · max: 200

The number of items to return, 0 to 200. A value outside that range returns 400.

Default: 20
offset
​integer · min: 0

The number of items to skip. A negative value is treated as 0. Use the next and prev links of the response to page through a list.

Default: 0

List submissions of a form › Responses

OK

Links of a list response. There is no `last` link and no total count.
href
​string
​object

First page.

​object

Previous page; the offset stops at 0.

​object

Next page. On the last page the link wraps around to offset 0.

​Meta

Get a form submission

GET
https://example.lianacms.com/api/v3
/forms/{form-id}/submissions/{submission-id}

Returns one submission as the only element of items, without an item href.

400 is returned when an id is not an integer. 403 is returned when the Form module is not enabled or the user has no access to it. 404 is returned when the form is not one the user can administer or the submission does not belong to the form.

Get a form submission › path Parameters

form-id
​integer · required

Id of the form (the section id of the form section).

submission-id
​integer · required

Id of the submission.

Get a form submission › Responses

OK

href
​string
​Meta