| Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/Rfp/{RfpDocumentUID}/Approve |
|---|
<?php namespace dtos;
use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};
class TaskDiff implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $TaskName=null,
/** @var array<string>|null */
public ?array $PositionsAdded=null,
/** @var array<string>|null */
public ?array $PositionsRemoved=null,
/** @var array<string>|null */
public ?array $PositionsStaffed=null,
/** @var array<int>|null */
public ?array $EquipmentAdded=null,
/** @var array<int>|null */
public ?array $EquipmentRemoved=null,
/** @var array<int>|null */
public ?array $MaterialsAdded=null,
/** @var array<int>|null */
public ?array $MaterialsRemoved=null,
/** @var bool|null */
public ?bool $HasChanges=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['TaskName'])) $this->TaskName = $o['TaskName'];
if (isset($o['PositionsAdded'])) $this->PositionsAdded = JsonConverters::fromArray('string', $o['PositionsAdded']);
if (isset($o['PositionsRemoved'])) $this->PositionsRemoved = JsonConverters::fromArray('string', $o['PositionsRemoved']);
if (isset($o['PositionsStaffed'])) $this->PositionsStaffed = JsonConverters::fromArray('string', $o['PositionsStaffed']);
if (isset($o['EquipmentAdded'])) $this->EquipmentAdded = JsonConverters::fromArray('int', $o['EquipmentAdded']);
if (isset($o['EquipmentRemoved'])) $this->EquipmentRemoved = JsonConverters::fromArray('int', $o['EquipmentRemoved']);
if (isset($o['MaterialsAdded'])) $this->MaterialsAdded = JsonConverters::fromArray('int', $o['MaterialsAdded']);
if (isset($o['MaterialsRemoved'])) $this->MaterialsRemoved = JsonConverters::fromArray('int', $o['MaterialsRemoved']);
if (isset($o['HasChanges'])) $this->HasChanges = $o['HasChanges'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->TaskName)) $o['TaskName'] = $this->TaskName;
if (isset($this->PositionsAdded)) $o['PositionsAdded'] = JsonConverters::toArray('string', $this->PositionsAdded);
if (isset($this->PositionsRemoved)) $o['PositionsRemoved'] = JsonConverters::toArray('string', $this->PositionsRemoved);
if (isset($this->PositionsStaffed)) $o['PositionsStaffed'] = JsonConverters::toArray('string', $this->PositionsStaffed);
if (isset($this->EquipmentAdded)) $o['EquipmentAdded'] = JsonConverters::toArray('int', $this->EquipmentAdded);
if (isset($this->EquipmentRemoved)) $o['EquipmentRemoved'] = JsonConverters::toArray('int', $this->EquipmentRemoved);
if (isset($this->MaterialsAdded)) $o['MaterialsAdded'] = JsonConverters::toArray('int', $this->MaterialsAdded);
if (isset($this->MaterialsRemoved)) $o['MaterialsRemoved'] = JsonConverters::toArray('int', $this->MaterialsRemoved);
if (isset($this->HasChanges)) $o['HasChanges'] = $this->HasChanges;
return empty($o) ? new class(){} : $o;
}
}
class ProposalDiff implements JsonSerializable
{
public function __construct(
/** @var array<string>|null */
public ?array $TasksAdded=null,
/** @var array<string>|null */
public ?array $TasksRemoved=null,
/** @var array<TaskDiff>|null */
public ?array $Tasks=null,
/** @var bool|null */
public ?bool $HasChanges=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['TasksAdded'])) $this->TasksAdded = JsonConverters::fromArray('string', $o['TasksAdded']);
if (isset($o['TasksRemoved'])) $this->TasksRemoved = JsonConverters::fromArray('string', $o['TasksRemoved']);
if (isset($o['Tasks'])) $this->Tasks = JsonConverters::fromArray('TaskDiff', $o['Tasks']);
if (isset($o['HasChanges'])) $this->HasChanges = $o['HasChanges'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->TasksAdded)) $o['TasksAdded'] = JsonConverters::toArray('string', $this->TasksAdded);
if (isset($this->TasksRemoved)) $o['TasksRemoved'] = JsonConverters::toArray('string', $this->TasksRemoved);
if (isset($this->Tasks)) $o['Tasks'] = JsonConverters::toArray('TaskDiff', $this->Tasks);
if (isset($this->HasChanges)) $o['HasChanges'] = $this->HasChanges;
return empty($o) ? new class(){} : $o;
}
}
class RfpApproveResponse implements JsonSerializable
{
public function __construct(
/** @var ResponseStatus|null */
public ?ResponseStatus $ResponseStatus=null,
/** @var int */
public int $RfpDocumentID=0,
/** @var int */
public int $ProjectID=0,
/** @var string */
public string $ProjectUID='',
/** @var int */
public int $RfpApprovalID=0,
/** @var array<int>|null */
public ?array $JobIDs=null,
/** @var int */
public int $OpenPositionCount=0,
/** @var ProposalDiff|null */
public ?ProposalDiff $Diff=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ResponseStatus'])) $this->ResponseStatus = JsonConverters::from('ResponseStatus', $o['ResponseStatus']);
if (isset($o['RfpDocumentID'])) $this->RfpDocumentID = $o['RfpDocumentID'];
if (isset($o['ProjectID'])) $this->ProjectID = $o['ProjectID'];
if (isset($o['ProjectUID'])) $this->ProjectUID = $o['ProjectUID'];
if (isset($o['RfpApprovalID'])) $this->RfpApprovalID = $o['RfpApprovalID'];
if (isset($o['JobIDs'])) $this->JobIDs = JsonConverters::fromArray('int', $o['JobIDs']);
if (isset($o['OpenPositionCount'])) $this->OpenPositionCount = $o['OpenPositionCount'];
if (isset($o['Diff'])) $this->Diff = JsonConverters::from('ProposalDiff', $o['Diff']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ResponseStatus)) $o['ResponseStatus'] = JsonConverters::to('ResponseStatus', $this->ResponseStatus);
if (isset($this->RfpDocumentID)) $o['RfpDocumentID'] = $this->RfpDocumentID;
if (isset($this->ProjectID)) $o['ProjectID'] = $this->ProjectID;
if (isset($this->ProjectUID)) $o['ProjectUID'] = $this->ProjectUID;
if (isset($this->RfpApprovalID)) $o['RfpApprovalID'] = $this->RfpApprovalID;
if (isset($this->JobIDs)) $o['JobIDs'] = JsonConverters::toArray('int', $this->JobIDs);
if (isset($this->OpenPositionCount)) $o['OpenPositionCount'] = $this->OpenPositionCount;
if (isset($this->Diff)) $o['Diff'] = JsonConverters::to('ProposalDiff', $this->Diff);
return empty($o) ? new class(){} : $o;
}
}
class ResourcedPosition implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $PositionTag=null,
/** @var float|null */
public ?float $Hours=null,
/** @var int|null */
public ?int $Headcount=null,
/** @var string|null */
public ?string $SourceReference=null,
/** @var string|null */
public ?string $Notes=null,
/** @var bool|null */
public ?bool $IsInCatalog=null,
/** @var int|null */
public ?int $ContactID=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['PositionTag'])) $this->PositionTag = $o['PositionTag'];
if (isset($o['Hours'])) $this->Hours = $o['Hours'];
if (isset($o['Headcount'])) $this->Headcount = $o['Headcount'];
if (isset($o['SourceReference'])) $this->SourceReference = $o['SourceReference'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
if (isset($o['IsInCatalog'])) $this->IsInCatalog = $o['IsInCatalog'];
if (isset($o['ContactID'])) $this->ContactID = $o['ContactID'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->PositionTag)) $o['PositionTag'] = $this->PositionTag;
if (isset($this->Hours)) $o['Hours'] = $this->Hours;
if (isset($this->Headcount)) $o['Headcount'] = $this->Headcount;
if (isset($this->SourceReference)) $o['SourceReference'] = $this->SourceReference;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
if (isset($this->IsInCatalog)) $o['IsInCatalog'] = $this->IsInCatalog;
if (isset($this->ContactID)) $o['ContactID'] = $this->ContactID;
return empty($o) ? new class(){} : $o;
}
}
class ResourcedEquipment implements JsonSerializable
{
public function __construct(
/** @var int */
public int $EquipmentID=0,
/** @var string|null */
public ?string $EquipmentName=null,
/** @var string|null */
public ?string $MakeModel=null,
/** @var float|null */
public ?float $Quantity=null,
/** @var float|null */
public ?float $DurationDays=null,
/** @var string|null */
public ?string $SourceReference=null,
/** @var string|null */
public ?string $Notes=null,
/** @var bool|null */
public ?bool $IsInCatalog=null,
/** @var int */
public int $SuggestedEquipmentID=0,
/** @var string|null */
public ?string $SuggestedEquipmentName=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['EquipmentID'])) $this->EquipmentID = $o['EquipmentID'];
if (isset($o['EquipmentName'])) $this->EquipmentName = $o['EquipmentName'];
if (isset($o['MakeModel'])) $this->MakeModel = $o['MakeModel'];
if (isset($o['Quantity'])) $this->Quantity = $o['Quantity'];
if (isset($o['DurationDays'])) $this->DurationDays = $o['DurationDays'];
if (isset($o['SourceReference'])) $this->SourceReference = $o['SourceReference'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
if (isset($o['IsInCatalog'])) $this->IsInCatalog = $o['IsInCatalog'];
if (isset($o['SuggestedEquipmentID'])) $this->SuggestedEquipmentID = $o['SuggestedEquipmentID'];
if (isset($o['SuggestedEquipmentName'])) $this->SuggestedEquipmentName = $o['SuggestedEquipmentName'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->EquipmentID)) $o['EquipmentID'] = $this->EquipmentID;
if (isset($this->EquipmentName)) $o['EquipmentName'] = $this->EquipmentName;
if (isset($this->MakeModel)) $o['MakeModel'] = $this->MakeModel;
if (isset($this->Quantity)) $o['Quantity'] = $this->Quantity;
if (isset($this->DurationDays)) $o['DurationDays'] = $this->DurationDays;
if (isset($this->SourceReference)) $o['SourceReference'] = $this->SourceReference;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
if (isset($this->IsInCatalog)) $o['IsInCatalog'] = $this->IsInCatalog;
if (isset($this->SuggestedEquipmentID)) $o['SuggestedEquipmentID'] = $this->SuggestedEquipmentID;
if (isset($this->SuggestedEquipmentName)) $o['SuggestedEquipmentName'] = $this->SuggestedEquipmentName;
return empty($o) ? new class(){} : $o;
}
}
class ResourcedMaterial implements JsonSerializable
{
public function __construct(
/** @var int */
public int $MaterialID=0,
/** @var string|null */
public ?string $MaterialName=null,
/** @var string|null */
public ?string $MakeModel=null,
/** @var float|null */
public ?float $Quantity=null,
/** @var string|null */
public ?string $Unit=null,
/** @var string|null */
public ?string $SourceReference=null,
/** @var string|null */
public ?string $Notes=null,
/** @var bool|null */
public ?bool $IsInCatalog=null,
/** @var int */
public int $SuggestedMaterialID=0,
/** @var string|null */
public ?string $SuggestedMaterialName=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['MaterialID'])) $this->MaterialID = $o['MaterialID'];
if (isset($o['MaterialName'])) $this->MaterialName = $o['MaterialName'];
if (isset($o['MakeModel'])) $this->MakeModel = $o['MakeModel'];
if (isset($o['Quantity'])) $this->Quantity = $o['Quantity'];
if (isset($o['Unit'])) $this->Unit = $o['Unit'];
if (isset($o['SourceReference'])) $this->SourceReference = $o['SourceReference'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
if (isset($o['IsInCatalog'])) $this->IsInCatalog = $o['IsInCatalog'];
if (isset($o['SuggestedMaterialID'])) $this->SuggestedMaterialID = $o['SuggestedMaterialID'];
if (isset($o['SuggestedMaterialName'])) $this->SuggestedMaterialName = $o['SuggestedMaterialName'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->MaterialID)) $o['MaterialID'] = $this->MaterialID;
if (isset($this->MaterialName)) $o['MaterialName'] = $this->MaterialName;
if (isset($this->MakeModel)) $o['MakeModel'] = $this->MakeModel;
if (isset($this->Quantity)) $o['Quantity'] = $this->Quantity;
if (isset($this->Unit)) $o['Unit'] = $this->Unit;
if (isset($this->SourceReference)) $o['SourceReference'] = $this->SourceReference;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
if (isset($this->IsInCatalog)) $o['IsInCatalog'] = $this->IsInCatalog;
if (isset($this->SuggestedMaterialID)) $o['SuggestedMaterialID'] = $this->SuggestedMaterialID;
if (isset($this->SuggestedMaterialName)) $o['SuggestedMaterialName'] = $this->SuggestedMaterialName;
return empty($o) ? new class(){} : $o;
}
}
class TaskResourcing implements JsonSerializable
{
public function __construct(
/** @var array<ResourcedPosition>|null */
public ?array $Positions=null,
/** @var array<ResourcedEquipment>|null */
public ?array $Equipment=null,
/** @var array<ResourcedMaterial>|null */
public ?array $Materials=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Positions'])) $this->Positions = JsonConverters::fromArray('ResourcedPosition', $o['Positions']);
if (isset($o['Equipment'])) $this->Equipment = JsonConverters::fromArray('ResourcedEquipment', $o['Equipment']);
if (isset($o['Materials'])) $this->Materials = JsonConverters::fromArray('ResourcedMaterial', $o['Materials']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Positions)) $o['Positions'] = JsonConverters::toArray('ResourcedPosition', $this->Positions);
if (isset($this->Equipment)) $o['Equipment'] = JsonConverters::toArray('ResourcedEquipment', $this->Equipment);
if (isset($this->Materials)) $o['Materials'] = JsonConverters::toArray('ResourcedMaterial', $this->Materials);
return empty($o) ? new class(){} : $o;
}
}
class ProposedTask implements JsonSerializable
{
public function __construct(
/** @var int */
public int $Seq=0,
/** @var string|null */
public ?string $Name=null,
/** @var string|null */
public ?string $Category=null,
/** @var float|null */
public ?float $Quantity=null,
/** @var string|null */
public ?string $Unit=null,
/** @var string|null */
public ?string $SourceItemNumber=null,
/** @var string|null */
public ?string $SourceReference=null,
/** @var string|null */
public ?string $Notes=null,
/** @var TaskResourcing|null */
public ?TaskResourcing $Resourcing=null,
/** @var float|null */
public ?float $DurationDays=null,
/** @var array<int>|null */
public ?array $DependsOn=null,
/** @var DateTime|null */
public ?DateTime $EstimatedStartDate=null,
/** @var DateTime|null */
public ?DateTime $EstimatedEndDate=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Seq'])) $this->Seq = $o['Seq'];
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['Category'])) $this->Category = $o['Category'];
if (isset($o['Quantity'])) $this->Quantity = $o['Quantity'];
if (isset($o['Unit'])) $this->Unit = $o['Unit'];
if (isset($o['SourceItemNumber'])) $this->SourceItemNumber = $o['SourceItemNumber'];
if (isset($o['SourceReference'])) $this->SourceReference = $o['SourceReference'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
if (isset($o['Resourcing'])) $this->Resourcing = JsonConverters::from('TaskResourcing', $o['Resourcing']);
if (isset($o['DurationDays'])) $this->DurationDays = $o['DurationDays'];
if (isset($o['DependsOn'])) $this->DependsOn = JsonConverters::fromArray('int', $o['DependsOn']);
if (isset($o['EstimatedStartDate'])) $this->EstimatedStartDate = JsonConverters::from('DateTime', $o['EstimatedStartDate']);
if (isset($o['EstimatedEndDate'])) $this->EstimatedEndDate = JsonConverters::from('DateTime', $o['EstimatedEndDate']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Seq)) $o['Seq'] = $this->Seq;
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->Category)) $o['Category'] = $this->Category;
if (isset($this->Quantity)) $o['Quantity'] = $this->Quantity;
if (isset($this->Unit)) $o['Unit'] = $this->Unit;
if (isset($this->SourceItemNumber)) $o['SourceItemNumber'] = $this->SourceItemNumber;
if (isset($this->SourceReference)) $o['SourceReference'] = $this->SourceReference;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
if (isset($this->Resourcing)) $o['Resourcing'] = JsonConverters::to('TaskResourcing', $this->Resourcing);
if (isset($this->DurationDays)) $o['DurationDays'] = $this->DurationDays;
if (isset($this->DependsOn)) $o['DependsOn'] = JsonConverters::toArray('int', $this->DependsOn);
if (isset($this->EstimatedStartDate)) $o['EstimatedStartDate'] = JsonConverters::to('DateTime', $this->EstimatedStartDate);
if (isset($this->EstimatedEndDate)) $o['EstimatedEndDate'] = JsonConverters::to('DateTime', $this->EstimatedEndDate);
return empty($o) ? new class(){} : $o;
}
}
class ProjectProposal implements JsonSerializable
{
public function __construct(
/** @var int */
public int $RfpDocumentID=0,
/** @var string|null */
public ?string $ProjectName=null,
/** @var string|null */
public ?string $ClientName=null,
/** @var string|null */
public ?string $ProjectType=null,
/** @var string|null */
public ?string $ProjectLocation=null,
/** @var string|null */
public ?string $Scope=null,
/** @var string|null */
public ?string $ProjectDescription=null,
/** @var int|null */
public ?int $ContractDurationDays=null,
/** @var string|null */
public ?string $BidDueDate=null,
/** @var DateTime|null */
public ?DateTime $EstimatedStartDate=null,
/** @var DateTime|null */
public ?DateTime $EstimatedEndDate=null,
/** @var array<ProposedTask>|null */
public ?array $Tasks=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['RfpDocumentID'])) $this->RfpDocumentID = $o['RfpDocumentID'];
if (isset($o['ProjectName'])) $this->ProjectName = $o['ProjectName'];
if (isset($o['ClientName'])) $this->ClientName = $o['ClientName'];
if (isset($o['ProjectType'])) $this->ProjectType = $o['ProjectType'];
if (isset($o['ProjectLocation'])) $this->ProjectLocation = $o['ProjectLocation'];
if (isset($o['Scope'])) $this->Scope = $o['Scope'];
if (isset($o['ProjectDescription'])) $this->ProjectDescription = $o['ProjectDescription'];
if (isset($o['ContractDurationDays'])) $this->ContractDurationDays = $o['ContractDurationDays'];
if (isset($o['BidDueDate'])) $this->BidDueDate = $o['BidDueDate'];
if (isset($o['EstimatedStartDate'])) $this->EstimatedStartDate = JsonConverters::from('DateTime', $o['EstimatedStartDate']);
if (isset($o['EstimatedEndDate'])) $this->EstimatedEndDate = JsonConverters::from('DateTime', $o['EstimatedEndDate']);
if (isset($o['Tasks'])) $this->Tasks = JsonConverters::fromArray('ProposedTask', $o['Tasks']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->RfpDocumentID)) $o['RfpDocumentID'] = $this->RfpDocumentID;
if (isset($this->ProjectName)) $o['ProjectName'] = $this->ProjectName;
if (isset($this->ClientName)) $o['ClientName'] = $this->ClientName;
if (isset($this->ProjectType)) $o['ProjectType'] = $this->ProjectType;
if (isset($this->ProjectLocation)) $o['ProjectLocation'] = $this->ProjectLocation;
if (isset($this->Scope)) $o['Scope'] = $this->Scope;
if (isset($this->ProjectDescription)) $o['ProjectDescription'] = $this->ProjectDescription;
if (isset($this->ContractDurationDays)) $o['ContractDurationDays'] = $this->ContractDurationDays;
if (isset($this->BidDueDate)) $o['BidDueDate'] = $this->BidDueDate;
if (isset($this->EstimatedStartDate)) $o['EstimatedStartDate'] = JsonConverters::to('DateTime', $this->EstimatedStartDate);
if (isset($this->EstimatedEndDate)) $o['EstimatedEndDate'] = JsonConverters::to('DateTime', $this->EstimatedEndDate);
if (isset($this->Tasks)) $o['Tasks'] = JsonConverters::toArray('ProposedTask', $this->Tasks);
return empty($o) ? new class(){} : $o;
}
}
class RfpApproveRequest implements JsonSerializable
{
public function __construct(
/** @var string */
public string $RfpDocumentUID='',
/** @var ProjectProposal|null */
public ?ProjectProposal $Proposal=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['RfpDocumentUID'])) $this->RfpDocumentUID = $o['RfpDocumentUID'];
if (isset($o['Proposal'])) $this->Proposal = JsonConverters::from('ProjectProposal', $o['Proposal']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->RfpDocumentUID)) $o['RfpDocumentUID'] = $this->RfpDocumentUID;
if (isset($this->Proposal)) $o['Proposal'] = JsonConverters::to('ProjectProposal', $this->Proposal);
return empty($o) ? new class(){} : $o;
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Rfp/{RfpDocumentUID}/Approve HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
RfpDocumentUID: 00000000000000000000000000000000,
Proposal:
{
RfpDocumentID: 0,
ProjectName: String,
ClientName: String,
ProjectType: String,
ProjectLocation: String,
Scope: String,
ProjectDescription: String,
ContractDurationDays: 0,
BidDueDate: String,
EstimatedStartDate: 0001-01-01,
EstimatedEndDate: 0001-01-01,
Tasks:
[
{
Seq: 0,
Name: String,
Category: String,
Quantity: 0,
Unit: String,
SourceItemNumber: String,
SourceReference: String,
Notes: String,
Resourcing:
{
Positions:
[
{
PositionTag: String,
Hours: 0,
Headcount: 0,
SourceReference: String,
Notes: String,
IsInCatalog: False,
ContactID: 0
}
],
Equipment:
[
{
EquipmentID: 0,
EquipmentName: String,
MakeModel: String,
Quantity: 0,
DurationDays: 0,
SourceReference: String,
Notes: String,
IsInCatalog: False,
SuggestedEquipmentID: 0,
SuggestedEquipmentName: String
}
],
Materials:
[
{
MaterialID: 0,
MaterialName: String,
MakeModel: String,
Quantity: 0,
Unit: String,
SourceReference: String,
Notes: String,
IsInCatalog: False,
SuggestedMaterialID: 0,
SuggestedMaterialName: String
}
]
},
DurationDays: 0,
DependsOn:
[
0
],
EstimatedStartDate: 0001-01-01,
EstimatedEndDate: 0001-01-01
}
]
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
RfpDocumentID: 0,
ProjectID: 0,
ProjectUID: 00000000000000000000000000000000,
RfpApprovalID: 0,
JobIDs:
[
0
],
OpenPositionCount: 0,
Diff:
{
TasksAdded:
[
String
],
TasksRemoved:
[
String
],
Tasks:
[
{
TaskName: String,
PositionsAdded:
[
String
],
PositionsRemoved:
[
String
],
PositionsStaffed:
[
String
],
EquipmentAdded:
[
0
],
EquipmentRemoved:
[
0
],
MaterialsAdded:
[
0
],
MaterialsRemoved:
[
0
],
HasChanges: True
}
],
HasChanges: True
}
}