Requires any of the roles: | admin, oauthadmin, member, oauthmember, admin, oauthadmin, admin, oauthadmin, admin, oauthadmin |
GET | /Ams/{ClientID}/Member/{MemberID}/Announcements | Return a list of announcements for the member. | |
---|---|---|---|
GET | /Ams/{ClientID}/Announcements | Return a list of announcements for the admin. | |
POST | /Ams/{ClientID}/Announcements | Add a new admin announcement. | |
PUT | /Ams/{ClientID}/Announcements | Sort the existing announcements based on the order the IDs are passed. | |
PUT | /Ams/{ClientID}/Announcements/{AnnouncementId} | Update an admin announcement details. | |
DELETE | /Ams/{ClientID}/Announcements/{AnnouncementId} | Delete an admin announcement. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AnnouncementId | path | int | No | |
AnnouncementIds | body | List<int> | No | |
Title | body | string | No | |
AnnouncementText | body | string | No | |
ActionText | body | string | No | |
ActionUrl | body | string | No | |
ActionInNewTab | body | bool | No | |
Active | body | bool | No | |
StartDate | body | DateTime | No | |
ExpireDate | body | DateTime | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
MemberID | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ClientID | form | int | No | |
ResponseStatus | form | ResponseStatus | No | |
BypassCache | form | bool | No | |
DateCached | form | DateTime | No | |
Device | form | Device | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AnnouncementList | form | List<Announcement> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AnnouncementId | form | int | No | |
Title | form | string | No | |
AnnouncementText | form | string | No | |
ActionText | form | string | No | |
ActionUrl | form | string | No | |
ActionInNewTab | form | bool | No | |
Active | form | bool | No | |
StartDate | form | DateTime | No | |
ExpireDate | form | DateTime | No | |
ModifiedDate | form | DateTime | No | |
IsSystemGenerated | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Ams/{ClientID}/Announcements HTTP/1.1
Host: ws.yourmembership.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"AnnouncementId":0,"AnnouncementIds":[0],"Title":"String","AnnouncementText":"String","ActionText":"String","ActionUrl":"String","ActionInNewTab":false,"Active":false,"StartDate":"0001-01-01T00:00:00.0000000","ExpireDate":"0001-01-01T00:00:00.0000000","MemberID":0,"ClientID":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"BypassCache":false,"DateCached":"2025-01-15T09:02:08.5992128-05:00","Device":"Desktop"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"AnnouncementList":[{"AnnouncementId":0,"Title":"String","AnnouncementText":"String","ActionText":"String","ActionUrl":"String","ActionInNewTab":false,"Active":false,"StartDate":"0001-01-01T00:00:00.0000000","ExpireDate":"0001-01-01T00:00:00.0000000","ModifiedDate":"0001-01-01T00:00:00.0000000","IsSystemGenerated":false}],"AnnouncementId":0,"AnnouncementIds":[0],"Title":"String","AnnouncementText":"String","ActionText":"String","ActionUrl":"String","ActionInNewTab":false,"Active":false,"StartDate":"0001-01-01T00:00:00.0000000","ExpireDate":"0001-01-01T00:00:00.0000000","MemberID":0,"ClientID":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"BypassCache":false,"DateCached":"2025-01-15T09:02:08.5992128-05:00","Device":"Desktop"}