Trendsic Platform Service

<back to all web services

PmJobRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/pm/job/{JobID}
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class PmJobRequest
{
    open var JobID:Int? = null
}

open class PmJobResponse
{
    open var Job:PmJob? = null
    open var ResponseStatus:ResponseStatus? = null
}

open class PmJob
{
    open var JobID:Int? = null
    open var Name:String? = null
    open var Description:String? = null
    open var Status:String? = null
    open var StartDate:String? = null
    open var EndDate:String? = null
    open var CrewCount:Int? = null
    open var BudgetedHours:Double? = null
    open var EquipmentCount:Int? = null
    open var MaterialCount:Int? = null
    open var CrewCost:Double? = null
    open var EquipCost:Double? = null
    open var MatCost:Double? = null
    open var Cost:Double? = null
    open var NoCrew:Boolean? = null
    open var EquipConflict:Boolean? = null
    open var MaterialGap:Boolean? = null
    open var ReadyPct:Int? = null
    open var Priority:String? = null
    open var Tags:ArrayList<String> = ArrayList<String>()
    open var Crew:ArrayList<PmJobCrew> = ArrayList<PmJobCrew>()
    open var Equipment:ArrayList<PmJobResource> = ArrayList<PmJobResource>()
    open var Materials:ArrayList<PmJobResource> = ArrayList<PmJobResource>()
}

open class PmJobCrew
{
    open var ContactID:Int? = null
    open var Name:String? = null
    open var Rate:Double? = null
    open var BudgetedHours:Double? = null
    open var IsOpen:Boolean? = null
}

open class PmJobResource
{
    open var Id:Int? = null
    open var Name:String? = null
    open var Amount:Double? = null
    open var Qty:Int? = null
    open var Unit:String? = null
}

Kotlin PmJobRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/pm/job/{JobID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PmJobResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Job>
    <BudgetedHours>0</BudgetedHours>
    <Cost>0</Cost>
    <Crew>
      <PmJobCrew>
        <BudgetedHours>0</BudgetedHours>
        <ContactID>0</ContactID>
        <IsOpen>false</IsOpen>
        <Name>String</Name>
        <Rate>0</Rate>
      </PmJobCrew>
    </Crew>
    <CrewCost>0</CrewCost>
    <CrewCount>0</CrewCount>
    <Description>String</Description>
    <EndDate>String</EndDate>
    <EquipConflict>false</EquipConflict>
    <EquipCost>0</EquipCost>
    <Equipment>
      <PmJobResource>
        <Amount>0</Amount>
        <Id>0</Id>
        <Name>String</Name>
        <Qty>0</Qty>
        <Unit>String</Unit>
      </PmJobResource>
    </Equipment>
    <EquipmentCount>0</EquipmentCount>
    <JobID>0</JobID>
    <MatCost>0</MatCost>
    <MaterialCount>0</MaterialCount>
    <MaterialGap>false</MaterialGap>
    <Materials>
      <PmJobResource>
        <Amount>0</Amount>
        <Id>0</Id>
        <Name>String</Name>
        <Qty>0</Qty>
        <Unit>String</Unit>
      </PmJobResource>
    </Materials>
    <Name>String</Name>
    <NoCrew>false</NoCrew>
    <Priority>String</Priority>
    <ReadyPct>0</ReadyPct>
    <StartDate>String</StartDate>
    <Status>String</Status>
    <Tags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Tags>
  </Job>
  <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>
</PmJobResponse>