put https://api.accelevents.com/rest/event//user/notificationPreference/
This API is used to update users' notification preferences for a specific event.
To call this API, the user has to pass path param with eventURL, request params like userNotificationPreferenceDto, and authentication key to authenticate the user.
Response
Here is the description of response attributes, which returns to the form of JSON.
Attribute | Description |
---|---|
type | Type of API response. i.e Success or Fail. |
message | This field returns a message for a response that can be used for display to the end-user. |
Error Codes
Here are the possible error messages, which return if any condition gets failed or required data is missing for processing.
Error Code | Error Description |
---|---|
200 | Notification Preference Updated |
400 | The request could not be understood by the server due to malformed syntax. |
401 | You are not authorized to view the resource. |
403 | Accessing the resource you were trying to reach is forbidden. |
404 | The resource you were trying to reach is not found. |
4010101 | Not authorized |