Meta sites
List apps & meta sites
Changed onGet list of apps with meta sites. App with demo type will be always first on the list if exists (sorting method is irrelevant)
Full example:
/api/meta-sites/v1/apps-with-meta-sites?offset=100&limit=10&search=nifty+marketing&action=edit
this will list 10 apps and meta sites which I have access to (can execute edit action) starting on 101th matching search query "nifty marketing".
get/api/meta-sites/v1/apps-with-meta-sites
Request
- Base URLhttps://example.piwik.pro
- AuthOAuth 2Client credentialsToken URL/auth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
offsetinteger
Sets offset for list of items
limitinteger
Limits the number of returned items
searchstring
Search phrase - search for name or id
sort'name' | 'type' | 'created_at' | '-name' | '-type' | '-created_at'
Sort field - can be reversed by adding dash before field name e.g (-name)
action'view' | 'edit'
Action to which I have access (can execute given action)
Response
OK
Example response
{
"meta": {
"total": 2
},
"data": [
{
"type": "ppms/app",
"id": "6edb1e3c-4c43-4760-ab76-682ad83146be",
"attributes": {
"name": "Example site",
"created_at": "2019-07-30T12:53:46Z"
}
},
{
"type": "ppms/meta-site",
"id": "ac62ca6b-cfd6-4161-b414-e1061baa05b7",
"attributes": {
"name": "European landing pages",
"created_at": "2019-02-21T02:30:12Z"
}
}
]
}Changes
- info
endpoint added
- info