/
Remove() [NoticeManager]

Remove() [NoticeManager]

Remove a notice

Description

Removes a notice for the given notice id.

Package Details

Interface

INoticeManager

Syntax

await NoticeManager.Remove(int noticeId, int userId);

Returns

Task<int>

API

DELETE
/api/v1/notices/{id}

Parameters

Path
id: The notice id

Query string

userId: user id

Returns

200 OK - Notice id

Example

const int noticeId = 123; const int userId = 1234; var notices = await _noticeManager.Remove(noticeId, 1234);

 

Related content

GetExpiredNoticesByUserId() [NoticeManager]
GetExpiredNoticesByUserId() [NoticeManager]
Read with this
GetAllTypes() [NoticeManager]
GetAllTypes() [NoticeManager]
Read with this
GetByUserId() [NoticeManager]
GetByUserId() [NoticeManager]
Read with this
Update() [NoticeManager]
Update() [NoticeManager]
Read with this
GetByServiceId() [NoticeManager]
GetByServiceId() [NoticeManager]
Read with this
Create() [NoticeManager]
Create() [NoticeManager]
Read with this