Trendsic Platform Service

<back to all web services

ResourceConflictsRequest

Requires Authentication
The following routes are available for this service:
GET/v1/resource-conflicts
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type ResourceConflictBookingDto() = 
        member val Project:String = null with get,set
        member val Job:String = null with get,set
        member val Window:String = null with get,set
        member val Tag:String = null with get,set
        member val Hot:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type ResourceConflictOptionDto() = 
        member val Id:String = null with get,set
        member val Label:String = null with get,set
        member val Note:String = null with get,set
        member val Clears:Boolean = new Boolean() with get,set
        member val Recommended:Boolean = new Boolean() with get,set
        member val Why:String = null with get,set
        member val ActionJson:String = null with get,set

    [<AllowNullLiteral>]
    type ResourceConflictDto() = 
        member val Id:String = null with get,set
        member val Kind:String = null with get,set
        member val Name:String = null with get,set
        member val Severity:String = null with get,set
        member val Summary:String = null with get,set
        member val Bookings:ResizeArray<ResourceConflictBookingDto> = new ResizeArray<ResourceConflictBookingDto>() with get,set
        member val Options:ResizeArray<ResourceConflictOptionDto> = new ResizeArray<ResourceConflictOptionDto>() with get,set

    [<AllowNullLiteral>]
    type ResourceConflictsResponse() = 
        member val Conflicts:ResizeArray<ResourceConflictDto> = new ResizeArray<ResourceConflictDto>() with get,set
        member val EquipmentWatched:Int32 = new Int32() with get,set
        member val WorkersWatched:Int32 = new Int32() with get,set
        member val CrewsWatched:Int32 = new Int32() with get,set
        member val ResolvedInWindow:Int32 = new Int32() with get,set
        member val CanResolve:Boolean = new Boolean() with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type ResourceConflictsRequest() = 
        member val Window:Int32 = new Int32() with get,set

F# ResourceConflictsRequest DTOs

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

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Conflicts: 
	[
		{
			Id: String,
			Kind: String,
			Name: String,
			Severity: String,
			Summary: String,
			Bookings: 
			[
				{
					Project: String,
					Job: String,
					Window: String,
					Tag: String,
					Hot: False
				}
			],
			Options: 
			[
				{
					Id: String,
					Label: String,
					Note: String,
					Clears: False,
					Recommended: False,
					Why: String,
					ActionJson: String
				}
			]
		}
	],
	EquipmentWatched: 0,
	WorkersWatched: 0,
	CrewsWatched: 0,
	ResolvedInWindow: 0,
	CanResolve: False,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}