JSON API » starred » starred/list

Gets an array of all starred features for the authentication user. The array may optionally be limited to features of a specified dtype.

Input parameters

Requires authentication and the user role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
dtypeStringDestination type of features to return. Empty string for all.NoEmpty string.

Responses

CodeDescription
200Success.
401The authentication details provided are invalid.
402Your role does not allow this.

Data returned

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

Example: With required parameters

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

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":[ { "person":1, "dtype":"huntgroup", "dnumber":123 }, { "person":1, "dtype":"phone", "dnumber":"1234567" } ] }

Change history

VersionChanges
4.0Function added.