[This is preliminary documentation and is subject to change.]

Reject occurrence takes an occurence Id and sets the Occurrence record with that Id to be Rejected. It will throw an exception when the occurrence does not exist or when the occurrence has already been accepted. Otherwise it successfully rejects the occurrence and will store a note detailing the reason behind the rejection

Namespace: QPulseWebServices.Contracts.Service
Assembly: QPulseWebServices.Contracts (in QPulseWebServices.Contracts.dll) Version: 2.100.591.48

Syntax

C#
void RejectOccurrence(
	string token,
	int occurrenceID,
	string note
)

Parameters

token
Type: System..::..String
Authentication token
occurrenceID
Type: System..::..Int32
Used to specify what occurrence is to be rejected
note
Type: System..::..String
Used to detail the reason behind the rejection

Remarks

REST Availability: Supports HTTP POST

Exceptions

ExceptionCondition
ServiceFaultCode..::..ItemNotFoundInDatabaseAn occurrence record with the requested number could not be found in the q-pulse database.
ServiceFaultCode..::..InvalidOperationAn occurrence that has already been accepted can not then be rejected
ServiceFaultCode..::..AuthenticationFailedThe token provided could not be authenticated.
ServiceFaultCode..::..SessionInvalidThe Q-Pulse session was invalid.

See Also