Trendsic Platform Service

<back to all web services

ResourceConflictsRequest

Requires Authentication
The following routes are available for this service:
GET/v1/resource-conflicts
"use strict";
export class ResourceConflictBookingDto {
    /** @param {{Project?:string,Job?:string,Window?:string,Tag?:string,Hot?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Project;
    /** @type {string} */
    Job;
    /** @type {string} */
    Window;
    /** @type {string} */
    Tag;
    /** @type {boolean} */
    Hot;
}
export class ResourceConflictOptionDto {
    /** @param {{Id?:string,Label?:string,Note?:string,Clears?:boolean,Recommended?:boolean,Why?:string,ActionJson?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Id;
    /** @type {string} */
    Label;
    /** @type {string} */
    Note;
    /** @type {boolean} */
    Clears;
    /** @type {boolean} */
    Recommended;
    /** @type {string} */
    Why;
    /** @type {string} */
    ActionJson;
}
export class ResourceConflictDto {
    /** @param {{Id?:string,Kind?:string,Name?:string,Severity?:string,Summary?:string,Bookings?:ResourceConflictBookingDto[],Options?:ResourceConflictOptionDto[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Id;
    /** @type {string} */
    Kind;
    /** @type {string} */
    Name;
    /** @type {string} */
    Severity;
    /** @type {string} */
    Summary;
    /** @type {ResourceConflictBookingDto[]} */
    Bookings = [];
    /** @type {ResourceConflictOptionDto[]} */
    Options = [];
}
export class ResourceConflictsResponse {
    /** @param {{Conflicts?:ResourceConflictDto[],EquipmentWatched?:number,WorkersWatched?:number,CrewsWatched?:number,ResolvedInWindow?:number,CanResolve?:boolean,ResponseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResourceConflictDto[]} */
    Conflicts = [];
    /** @type {number} */
    EquipmentWatched;
    /** @type {number} */
    WorkersWatched;
    /** @type {number} */
    CrewsWatched;
    /** @type {number} */
    ResolvedInWindow;
    /** @type {boolean} */
    CanResolve;
    /** @type {ResponseStatus} */
    ResponseStatus;
}
export class ResourceConflictsRequest {
    /** @param {{Window?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Window;
}

JavaScript 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>