JSON API » notes » notes/list

Gets the fields of all notes for a given object.

Input parameters

Requires authentication and the administrator role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
stypeStringObject type. Empty string for all.RecommendedEmpty string.
snumberStringObject number. Empty string for all.RecommendedEmpty string.
customerIntegerID of customer to get notes for.NoCustomer of authentication user.

Responses

CodeDescription
200Success.
400Invalid input parameters specified. Check the key and message fields for more details.
401The authentication details provided are invalid.
402Your role does not allow this.

Data returned

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

Example: With required and recommended parameters

http://enswitch.example.com/api/json/notes/list/?auth_username=user;auth_password=password;stype=phone;snumber=1234567

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

Change history

VersionChanges
3.13Function added.