| Required role: | superadmin |
| POST | /voss/errorlog/{Id}/replay | Re-enqueue the Voss operation captured by a logged failure |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
@ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)
public static class ReplayVossErrorLog
{
/**
* VossErrorLog id to replay
*/
@ApiMember(Description="VossErrorLog id to replay", IsRequired=true)
public Integer Id = null;
public Integer getId() { return Id; }
public ReplayVossErrorLog setId(Integer value) { this.Id = value; return this; }
}
public static class VossErrorLogQueryResponse
{
public Integer Id = null;
public UUID CompanyId = null;
public Integer TypeId = null;
public String TypeName = null;
public Integer Source = null;
public String SourceName = null;
public String Comments = null;
public String MetaData = null;
public String QueueName = null;
public String MessageType = null;
public Integer DeliveryCount = null;
public String DeadLetterReason = null;
public Boolean Resolved = null;
public Date CreatedDate = null;
public Integer getId() { return Id; }
public VossErrorLogQueryResponse setId(Integer value) { this.Id = value; return this; }
public UUID getCompanyId() { return CompanyId; }
public VossErrorLogQueryResponse setCompanyId(UUID value) { this.CompanyId = value; return this; }
public Integer getTypeId() { return TypeId; }
public VossErrorLogQueryResponse setTypeId(Integer value) { this.TypeId = value; return this; }
public String getTypeName() { return TypeName; }
public VossErrorLogQueryResponse setTypeName(String value) { this.TypeName = value; return this; }
public Integer getSource() { return Source; }
public VossErrorLogQueryResponse setSource(Integer value) { this.Source = value; return this; }
public String getSourceName() { return SourceName; }
public VossErrorLogQueryResponse setSourceName(String value) { this.SourceName = value; return this; }
public String getComments() { return Comments; }
public VossErrorLogQueryResponse setComments(String value) { this.Comments = value; return this; }
public String getMetaData() { return MetaData; }
public VossErrorLogQueryResponse setMetaData(String value) { this.MetaData = value; return this; }
public String getQueueName() { return QueueName; }
public VossErrorLogQueryResponse setQueueName(String value) { this.QueueName = value; return this; }
public String getMessageType() { return MessageType; }
public VossErrorLogQueryResponse setMessageType(String value) { this.MessageType = value; return this; }
public Integer getDeliveryCount() { return DeliveryCount; }
public VossErrorLogQueryResponse setDeliveryCount(Integer value) { this.DeliveryCount = value; return this; }
public String getDeadLetterReason() { return DeadLetterReason; }
public VossErrorLogQueryResponse setDeadLetterReason(String value) { this.DeadLetterReason = value; return this; }
public Boolean isResolved() { return Resolved; }
public VossErrorLogQueryResponse setResolved(Boolean value) { this.Resolved = value; return this; }
public Date getCreatedDate() { return CreatedDate; }
public VossErrorLogQueryResponse setCreatedDate(Date value) { this.CreatedDate = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /voss/errorlog/{Id}/replay HTTP/1.1
Host: api-staging.bookmore.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ReplayVossErrorLog xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos">
<Id>0</Id>
</ReplayVossErrorLog>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <VossErrorLogQueryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos"> <Comments>String</Comments> <CompanyId>00000000-0000-0000-0000-000000000000</CompanyId> <CreatedDate>0001-01-01T00:00:00</CreatedDate> <DeadLetterReason>String</DeadLetterReason> <DeliveryCount>0</DeliveryCount> <Id>0</Id> <MessageType>String</MessageType> <MetaData>String</MetaData> <QueueName>String</QueueName> <Resolved>false</Resolved> <Source>0</Source> <SourceName>String</SourceName> <TypeId>0</TypeId> <TypeName>String</TypeName> </VossErrorLogQueryResponse>