JSON API » outgroups » outgroups/list

Gets array of fields of outbound groups.

Input parameters

Requires authentication and the administrator, commerce, or reports role privileges.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes if customer is specified.
auth_passwordStringAuthentication password.Yes if customer is specified.
countInteger1 to return a count, 0 to return full data.No0
pagesInteger1 to return a reduced set of data for generating the pages select box, 0 to return full data.No0
searchStringOnly return outbound groups whose name contains this string. Empty string for all.NoEmpty string.

Responses

CodeDescription
200Success.
400Invalid search string specified.
401The authentication details provided are invalid.
402Your role does not allow this.

Data returned

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

Example: With required parameters

http://enswitch.example.com/api/json/outgroups/list/?auth_username=user;auth_password=password

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":[ { "id":1, "name":"example1", ... }, { "id":2, "name":"example2", ... } ] }

Change history

VersionChanges
3.13Function added.