Trendsic Platform Service

<back to all web services

ResourceConflictsRequest

Requires Authentication
The following routes are available for this service:
GET/v1/resource-conflicts
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class ResourceConflictsRequest
{
    open var Window:Int? = null
}

open class ResourceConflictsResponse
{
    open var Conflicts:ArrayList<ResourceConflictDto> = ArrayList<ResourceConflictDto>()
    open var EquipmentWatched:Int? = null
    open var WorkersWatched:Int? = null
    open var CrewsWatched:Int? = null
    open var ResolvedInWindow:Int? = null
    open var CanResolve:Boolean? = null
    open var ResponseStatus:ResponseStatus? = null
}

open class ResourceConflictDto
{
    open var Id:String? = null
    open var Kind:String? = null
    open var Name:String? = null
    open var Severity:String? = null
    open var Summary:String? = null
    open var Bookings:ArrayList<ResourceConflictBookingDto> = ArrayList<ResourceConflictBookingDto>()
    open var Options:ArrayList<ResourceConflictOptionDto> = ArrayList<ResourceConflictOptionDto>()
}

open class ResourceConflictBookingDto
{
    open var Project:String? = null
    open var Job:String? = null
    open var Window:String? = null
    open var Tag:String? = null
    open var Hot:Boolean? = null
}

open class ResourceConflictOptionDto
{
    open var Id:String? = null
    open var Label:String? = null
    open var Note:String? = null
    open var Clears:Boolean? = null
    open var Recommended:Boolean? = null
    open var Why:String? = null
    open var ActionJson:String? = null
}

Kotlin 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
		}
	}
}