JSON API » pagegroups » pagegroups/destinations/list

Gets the fields of all destinations in a page group.

Input parameters

Requires authentication and the user role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
pagegroupIntegerID of page group.Yes

Responses

CodeDescription
200Success.
401The authentication details provided are invalid.
402Your role does not allow this.
404The page group does not exist, or you do not have permission to view it.

Data returned

An array of fields, corresponding to the rows of the pagegroup_destinations table in the database.

Example: With required parameters

http://enswitch.example.com/api/json/pagegroups/destinations/list/?auth_username=user;auth_password=password;pagegroup=123

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":[ { "id":1, "pagegroup":123, ... }, { "id":2, "pagegroup":123, ... } ] }

Change history

VersionChanges
3.13Function added.
!--#include virtual="/include/guide.html" -->