LianaCMS REST API

Groups

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

User groups. Read only.


List groups

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

Returns the groups the caller may view, highest id first. A caller outside group 1 sees the groups that its own groups manage, when its group has the groups_view right and the managed group has rights to the current site; without any such group the list is empty. A member of group 1 sees every group that has rights to the current site. Deleted groups are never listed. A group_id[] filter that names a group the caller may not view returns 404. Only GET is supported: POST, PUT, PATCH and DELETE return 403.

List groups › 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
group_id[]
​integer[] · minItems: 1 · style: form · explode: true

Return only these groups. Repeat the parameter for several ids, e.g. group_id[]=4&group_id[]=7; without the brackets the value is not an array and the request returns 400. A value that is not an integer returns 400; a group the caller may not view returns 404.

List groups › 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 group

GET
https://example.lianacms.com/api/v3
/groups/{group-id}

Returns one group in items; the item has no href. A group the caller may not view (see List groups) returns 404, as does a group that does not exist. An id that is not a positive integer returns 400.

Get a group › path Parameters

group-id
​integer · min: 1 · required

Id of the group.

Get a group › Responses

OK

href
​string
​GroupSingle[] · maxItems: 1
​Meta