| POST | /Enquiries/Pass-To-Colleague |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EnquiriesPassToColleaguePost
{
public Integer EnquiryId = null;
public Integer NewEntityContactId = null;
public Integer getEnquiryId() { return EnquiryId; }
public EnquiriesPassToColleaguePost setEnquiryId(Integer value) { this.EnquiryId = value; return this; }
public Integer getNewEntityContactId() { return NewEntityContactId; }
public EnquiriesPassToColleaguePost setNewEntityContactId(Integer value) { this.NewEntityContactId = value; return this; }
}
public static class SavingResult
{
public Integer Id = null;
public UUID GuidId = null;
public SavingResultStatus Status = null;
public ArrayList<SavingResultErrors> Errors = null;
public Integer getId() { return Id; }
public SavingResult setId(Integer value) { this.Id = value; return this; }
public UUID getGuidId() { return GuidId; }
public SavingResult setGuidId(UUID value) { this.GuidId = value; return this; }
public SavingResultStatus getStatus() { return Status; }
public SavingResult setStatus(SavingResultStatus value) { this.Status = value; return this; }
public ArrayList<SavingResultErrors> getErrors() { return Errors; }
public SavingResult setErrors(ArrayList<SavingResultErrors> value) { this.Errors = value; return this; }
}
public static enum SavingResultStatus
{
Success,
Error;
}
public static class SavingResultErrors
{
public String Error = null;
public String getError() { return Error; }
public SavingResultErrors setError(String value) { this.Error = value; return this; }
}
}
Java EnquiriesPassToColleaguePost DTOs
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 /Enquiries/Pass-To-Colleague HTTP/1.1
Host: internal.thebunkerbridge.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"EnquiryId":0,"NewEntityContactId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Id":0,"GuidId":"00000000000000000000000000000000","Status":"Success","Errors":[{"Error":"String"}]}