resources/segments/search/profiles
To save, load and update search profiles. A profile stands for the "query" node you include with a search.
Note: The profiles are private to the current user.
URLs
(GET) /api/resources/segments/search
(GET) /api/resources/segments/search/{id}
(POST) /api/resources/segments/search
ACTIONS
The following API calls let you retrieve profiles, update, add and delete profiles.
Get all profiles | (GET) /api/resources/segments/search/profiles Returns a list of all search profiles with id and name. Example:
CODE
|
Get profile details | (GET) /api/resources/segments/view/search/profiles/{id} Parameter id is the profile you want to retrieve. This returns your query node. The data property is the query object for use in API call resources/segments/search.
CODE
You receive an error if the requested profile does not exist. |
Update profile | (POST) /api/resources/segments/search/profiles Include a JSON in the body with these parameters:
Example of a body message to update name and data:
CODE
The method returns the updated profile, see the "Get profile details" description. You receive an error if the requested profile does not exist. |
Add profile | (POST) /api/resources/segments/search/profiles Include a JSON in the body with these parameters:
Example of a body message to update name and data:
CODE
The method returns the updated profile, see the "Get profile details" description. |
Delete profile | (POST) /api/resources/segments/search/profiles Include a JSON in the body with these parameters:
Example of a body message to update name and data:
CODE
The method returns no data. No error is returned If the id does not exist. |