| Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/Rfp/Availability |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class AvailabilityUpsertRequest
{
open var ResourceType:String? = null
open var Label:String? = null
open var EquipmentName:String? = null
open var RolesCsv:String? = null
open var InternalRate:BigDecimal? = null
open var RentalRate:BigDecimal? = null
open var PremiumPerHour:BigDecimal? = null
open var AvailableFrom:Date? = null
open var FreedFromProjectLabel:String? = null
}
open class AvailabilityListResponse
{
open var ResponseStatus:ResponseStatus? = null
open var Rows:ArrayList<AvailabilityRowView> = ArrayList<AvailabilityRowView>()
open var EquipmentNames:ArrayList<String> = ArrayList<String>()
open var CrewRoles:ArrayList<String> = ArrayList<String>()
open var Summary:AvailabilityRefreshSummary? = null
}
open class AvailabilityRowView
{
open var ResourceAvailabilityID:Int? = null
open var ResourceType:String? = null
open var Label:String? = null
open var EquipmentName:String? = null
open var RolesCsv:String? = null
open var InternalRate:BigDecimal? = null
open var RentalRate:BigDecimal? = null
open var PremiumPerHour:BigDecimal? = null
open var AvailableFrom:Date? = null
open var FreedFromProjectLabel:String? = null
open var Source:String? = null
}
open class AvailabilityRefreshSummary
{
open var Derived:Int? = null
open var DeactivatedStale:Int? = null
open var SkippedManualPrecedence:Int? = null
open var SkippedNoRentalSource:Int? = null
open var SkippedNoDayRate:Int? = null
open var Notes:ArrayList<String> = ArrayList<String>()
}
Kotlin AvailabilityUpsertRequest DTOs
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/Availability HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ResourceType: String,
Label: String,
EquipmentName: String,
RolesCsv: String,
InternalRate: 0,
RentalRate: 0,
PremiumPerHour: 0,
AvailableFrom: 0001-01-01,
FreedFromProjectLabel: String
}
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
}
},
Rows:
[
{
ResourceAvailabilityID: 0,
ResourceType: String,
Label: String,
EquipmentName: String,
RolesCsv: String,
InternalRate: 0,
RentalRate: 0,
PremiumPerHour: 0,
AvailableFrom: 0001-01-01,
FreedFromProjectLabel: String,
Source: String
}
],
EquipmentNames:
[
String
],
CrewRoles:
[
String
],
Summary:
{
Derived: 0,
DeactivatedStale: 0,
SkippedManualPrecedence: 0,
SkippedNoRentalSource: 0,
SkippedNoDayRate: 0,
Notes:
[
String
]
}
}