Trendsic Platform Service

<back to all web services

ResourceConflictsRequest

Requires Authentication
The following routes are available for this service:
GET/v1/resource-conflicts
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class ResourceConflictBookingDto
            Public Overridable Property Project As String
            Public Overridable Property Job As String
            Public Overridable Property Window As String
            Public Overridable Property Tag As String
            Public Overridable Property Hot As Boolean
        End Class

        Public Partial Class ResourceConflictDto
            Public Overridable Property Id As String
            Public Overridable Property Kind As String
            Public Overridable Property Name As String
            Public Overridable Property Severity As String
            Public Overridable Property Summary As String
            Public Overridable Property Bookings As List(Of ResourceConflictBookingDto) = New List(Of ResourceConflictBookingDto)
            Public Overridable Property Options As List(Of ResourceConflictOptionDto) = New List(Of ResourceConflictOptionDto)
        End Class

        Public Partial Class ResourceConflictOptionDto
            Public Overridable Property Id As String
            Public Overridable Property Label As String
            Public Overridable Property Note As String
            Public Overridable Property Clears As Boolean
            Public Overridable Property Recommended As Boolean
            Public Overridable Property Why As String
            Public Overridable Property ActionJson As String
        End Class

        Public Partial Class ResourceConflictsRequest
            Public Overridable Property Window As Integer
        End Class

        Public Partial Class ResourceConflictsResponse
            Public Overridable Property Conflicts As List(Of ResourceConflictDto) = New List(Of ResourceConflictDto)
            Public Overridable Property EquipmentWatched As Integer
            Public Overridable Property WorkersWatched As Integer
            Public Overridable Property CrewsWatched As Integer
            Public Overridable Property ResolvedInWindow As Integer
            Public Overridable Property CanResolve As Boolean
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET ResourceConflictsRequest 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/resource-conflicts HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ResourceConflictsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <CanResolve>false</CanResolve>
  <Conflicts>
    <ResourceConflictDto>
      <Bookings>
        <ResourceConflictBookingDto>
          <Hot>false</Hot>
          <Job>String</Job>
          <Project>String</Project>
          <Tag>String</Tag>
          <Window>String</Window>
        </ResourceConflictBookingDto>
      </Bookings>
      <Id>String</Id>
      <Kind>String</Kind>
      <Name>String</Name>
      <Options>
        <ResourceConflictOptionDto>
          <ActionJson>String</ActionJson>
          <Clears>false</Clears>
          <Id>String</Id>
          <Label>String</Label>
          <Note>String</Note>
          <Recommended>false</Recommended>
          <Why>String</Why>
        </ResourceConflictOptionDto>
      </Options>
      <Severity>String</Severity>
      <Summary>String</Summary>
    </ResourceConflictDto>
  </Conflicts>
  <CrewsWatched>0</CrewsWatched>
  <EquipmentWatched>0</EquipmentWatched>
  <ResolvedInWindow>0</ResolvedInWindow>
  <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>
  <WorkersWatched>0</WorkersWatched>
</ResourceConflictsResponse>