PUT api/Poll/{id}/Acknowledge?user={user}

Acknowledge a message - remove message from queue

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Massage id

integer

Required

user

Optional user handle - if empty logged in user will be used

string

None.

Body Parameters

None.

Response Information

Resource Description

PollAcknowledge on success
Collection of errors on failure
Return codes
200 - ok
404 - message not found
500 - internal server error

PollAcknowledge
NameDescriptionTypeAdditional information
Id

Id of message that was acknowledged

integer

None.

Count

Number of messages in the queue after acknowledgement

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Count": 2
}

application/xml, text/xml

Sample:
<PollAcknowledge xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Poll">
  <Count>2</Count>
  <Id>1</Id>
</PollAcknowledge>