| POST,OPTIONS | /v1/pursuits/{PursuitID}/stage |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PursuitSetStageRequest
{
public Integer PursuitID = null;
public String Stage = null;
public Integer getPursuitID() { return PursuitID; }
public PursuitSetStageRequest setPursuitID(Integer value) { this.PursuitID = value; return this; }
public String getStage() { return Stage; }
public PursuitSetStageRequest setStage(String value) { this.Stage = value; return this; }
}
public static class PursuitResponse
{
public ResponseStatus ResponseStatus = null;
public Pursuit Pursuit = null;
public Integer AwardedProjectID = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PursuitResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public Pursuit getPursuit() { return Pursuit; }
public PursuitResponse setPursuit(Pursuit value) { this.Pursuit = value; return this; }
public Integer getAwardedProjectID() { return AwardedProjectID; }
public PursuitResponse setAwardedProjectID(Integer value) { this.AwardedProjectID = value; return this; }
}
public static class Pursuit
{
public Integer PursuitID = null;
public UUID PursuitUID = null;
public String PursuitNumber = null;
public String Name = null;
public String ClientOwner = null;
public String WorkType = null;
public String Solicitation = null;
public String Location = null;
public String Scope = null;
public String Stage = null;
public String Outcome = null;
public BigDecimal BidValue = null;
public BigDecimal EstCost = null;
public BigDecimal WinProbability = null;
public BigDecimal CostOfPursuit = null;
public Date DueDate = null;
public String EstimatorRfpRef = null;
public Integer AwardedProjectID = null;
public Date OpenedAt = null;
public Date SubmittedAt = null;
public Date DecidedAt = null;
public String CreatedBy = null;
public Date CreatedAt = null;
public Date UpdatedAt = null;
public Integer DaysOpen = null;
public BigDecimal WeightedValue = null;
public ArrayList<PursuitActivity> Activity = new ArrayList<PursuitActivity>();
public Integer getPursuitID() { return PursuitID; }
public Pursuit setPursuitID(Integer value) { this.PursuitID = value; return this; }
public UUID getPursuitUID() { return PursuitUID; }
public Pursuit setPursuitUID(UUID value) { this.PursuitUID = value; return this; }
public String getPursuitNumber() { return PursuitNumber; }
public Pursuit setPursuitNumber(String value) { this.PursuitNumber = value; return this; }
public String getName() { return Name; }
public Pursuit setName(String value) { this.Name = value; return this; }
public String getClientOwner() { return ClientOwner; }
public Pursuit setClientOwner(String value) { this.ClientOwner = value; return this; }
public String getWorkType() { return WorkType; }
public Pursuit setWorkType(String value) { this.WorkType = value; return this; }
public String getSolicitation() { return Solicitation; }
public Pursuit setSolicitation(String value) { this.Solicitation = value; return this; }
public String getLocation() { return Location; }
public Pursuit setLocation(String value) { this.Location = value; return this; }
public String getScope() { return Scope; }
public Pursuit setScope(String value) { this.Scope = value; return this; }
public String getStage() { return Stage; }
public Pursuit setStage(String value) { this.Stage = value; return this; }
public String getOutcome() { return Outcome; }
public Pursuit setOutcome(String value) { this.Outcome = value; return this; }
public BigDecimal getBidValue() { return BidValue; }
public Pursuit setBidValue(BigDecimal value) { this.BidValue = value; return this; }
public BigDecimal getEstCost() { return EstCost; }
public Pursuit setEstCost(BigDecimal value) { this.EstCost = value; return this; }
public BigDecimal getWinProbability() { return WinProbability; }
public Pursuit setWinProbability(BigDecimal value) { this.WinProbability = value; return this; }
public BigDecimal getCostOfPursuit() { return CostOfPursuit; }
public Pursuit setCostOfPursuit(BigDecimal value) { this.CostOfPursuit = value; return this; }
public Date getDueDate() { return DueDate; }
public Pursuit setDueDate(Date value) { this.DueDate = value; return this; }
public String getEstimatorRfpRef() { return EstimatorRfpRef; }
public Pursuit setEstimatorRfpRef(String value) { this.EstimatorRfpRef = value; return this; }
public Integer getAwardedProjectID() { return AwardedProjectID; }
public Pursuit setAwardedProjectID(Integer value) { this.AwardedProjectID = value; return this; }
public Date getOpenedAt() { return OpenedAt; }
public Pursuit setOpenedAt(Date value) { this.OpenedAt = value; return this; }
public Date getSubmittedAt() { return SubmittedAt; }
public Pursuit setSubmittedAt(Date value) { this.SubmittedAt = value; return this; }
public Date getDecidedAt() { return DecidedAt; }
public Pursuit setDecidedAt(Date value) { this.DecidedAt = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public Pursuit setCreatedBy(String value) { this.CreatedBy = value; return this; }
public Date getCreatedAt() { return CreatedAt; }
public Pursuit setCreatedAt(Date value) { this.CreatedAt = value; return this; }
public Date getUpdatedAt() { return UpdatedAt; }
public Pursuit setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
public Integer getDaysOpen() { return DaysOpen; }
public Pursuit setDaysOpen(Integer value) { this.DaysOpen = value; return this; }
public BigDecimal getWeightedValue() { return WeightedValue; }
public Pursuit setWeightedValue(BigDecimal value) { this.WeightedValue = value; return this; }
public ArrayList<PursuitActivity> getActivity() { return Activity; }
public Pursuit setActivity(ArrayList<PursuitActivity> value) { this.Activity = value; return this; }
}
public static class PursuitActivity
{
public Integer PursuitActivityID = null;
public Integer PursuitID = null;
public String Kind = null;
public String Label = null;
public String Detail = null;
public String Actor = null;
public Date CreatedAt = null;
public Integer getPursuitActivityID() { return PursuitActivityID; }
public PursuitActivity setPursuitActivityID(Integer value) { this.PursuitActivityID = value; return this; }
public Integer getPursuitID() { return PursuitID; }
public PursuitActivity setPursuitID(Integer value) { this.PursuitID = value; return this; }
public String getKind() { return Kind; }
public PursuitActivity setKind(String value) { this.Kind = value; return this; }
public String getLabel() { return Label; }
public PursuitActivity setLabel(String value) { this.Label = value; return this; }
public String getDetail() { return Detail; }
public PursuitActivity setDetail(String value) { this.Detail = value; return this; }
public String getActor() { return Actor; }
public PursuitActivity setActor(String value) { this.Actor = value; return this; }
public Date getCreatedAt() { return CreatedAt; }
public PursuitActivity setCreatedAt(Date value) { this.CreatedAt = value; return this; }
}
}
Java PursuitSetStageRequest DTOs
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 /v1/pursuits/{PursuitID}/stage HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PursuitSetStageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<PursuitID>0</PursuitID>
<Stage>String</Stage>
</PursuitSetStageRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PursuitResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<AwardedProjectID>0</AwardedProjectID>
<Pursuit>
<Activity>
<PursuitActivity>
<Actor>String</Actor>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<Detail>String</Detail>
<Kind>String</Kind>
<Label>String</Label>
<PursuitActivityID>0</PursuitActivityID>
<PursuitID>0</PursuitID>
</PursuitActivity>
</Activity>
<AwardedProjectID>0</AwardedProjectID>
<BidValue>0</BidValue>
<ClientOwner>String</ClientOwner>
<CostOfPursuit>0</CostOfPursuit>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CreatedBy>String</CreatedBy>
<DaysOpen>0</DaysOpen>
<DecidedAt>0001-01-01T00:00:00</DecidedAt>
<DueDate>0001-01-01T00:00:00</DueDate>
<EstCost>0</EstCost>
<EstimatorRfpRef>String</EstimatorRfpRef>
<Location>String</Location>
<Name>String</Name>
<OpenedAt>0001-01-01T00:00:00</OpenedAt>
<Outcome>String</Outcome>
<PursuitID>0</PursuitID>
<PursuitNumber>String</PursuitNumber>
<PursuitUID>00000000-0000-0000-0000-000000000000</PursuitUID>
<Scope>String</Scope>
<Solicitation>String</Solicitation>
<Stage>String</Stage>
<SubmittedAt>0001-01-01T00:00:00</SubmittedAt>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
<WeightedValue>0</WeightedValue>
<WinProbability>0</WinProbability>
<WorkType>String</WorkType>
</Pursuit>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</PursuitResponse>