FindMany
Get multiple entities.
Endpoint
GET https://yourdomain.com/{context}/index.cfm/_api/json/v1/{siteid}/{entityname}/{ids}
OR
GET https://yourdomain.com/{context}/index.cfm/_api/json/v1/?method=findmany&siteid={siteid}&entityname={entityname}&ids={ids}
Request & Query Parameters
Parameter | Value |
---|---|
context | The path to where Mura CMS resides within the webroot (typically, an empty string). |
siteid | The SiteID of where the entity will be stored. |
entityname | The entity's name. |
ids | A comma-delimited list of entity IDs. |
Example Response
If multiple entities are found, an items
array will be present in the data
object.
{ "data": { "items": [ { "id": "2C91A3B0-E375-9383-0B05636E6926868D", "name": "Example", "links": { "relatedentitylink1": "http://...", "relatedentitylink2": "http://..." } }, { "id": "6C92F953-E042-CBF6-42F66BD74A4BEC0B", "name": "Another Example", "links": { "relatedentitylink1": "http://...", "relatedentitylink2": "http://..." } }, ] } }
If only one entity is found, the data
object will contain the entity's keys and corresponding values.
{ "data": { "id": "2C91A3B0-E375-9383-0B05636E6926868D", "name": "Example", "links": { "relatedentitylink1": "http://...", "relatedentitylink2": "http://..." } } }
History
Added in version 6.2