Returns preference of the currently logged in user. Preference key must be provided as input parameter (key). The value is returned exactly as it is. If key parameter is not provided or wrong - status code 404. If value is found - status code 200.
string
Returns the value of one preference of currently logged in user.
string
1
2
3
4
curl --request GET \
--url 'http://{baseurl}/rest/api/2/mypreferences' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
1
"<string>"
Sets preference of the currently logged in user. Preference key must be provided as input parameters (key). Value must be provided as post body. If key or value parameter is not provided - status code 404. If preference is set - status code 204.
string
string
Confirmation that the preference was set.
1
2
3
4
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/mypreferences' \
--user 'email@example.com:<api_token>' \
--header 'Content-Type: application/json'
Removes preference of the currently logged in user. Preference key must be provided as input parameters (key). If key parameter is not provided or wrong - status code 404. If preference is unset - status code 204.
string
Confirmation that the preference was removed.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/mypreferences' \
--user 'email@example.com:<api_token>'
Rate this page: