Trendsic Platform Service

<back to all web services

DispatchHoldSuggestionDismissRequest

Requires Authentication
Requires any of the permissions:DISPATCH:HAUL:MANAGE, DISPATCH:JOB:MANAGE, DISPATCH:ONDEMAND:MANAGE
The following routes are available for this service:
POST,OPTIONS/v1/dispatch/holds/suggestion/dismiss
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 DispatchHoldView() = 
        member val HoldId:Int32 = new Int32() with get,set
        member val Code:String = null with get,set
        member val ScopeKind:String = null with get,set
        member val ScopeKey:String = null with get,set
        member val ScopeLabel:String = null with get,set
        member val Reason:String = null with get,set
        member val Note:String = null with get,set
        member val StartUtc:DateTime = new DateTime() with get,set
        member val EndUtc:DateTime = new DateTime() with get,set
        member val Source:String = null with get,set
        member val IncidentRef:String = null with get,set
        member val LiftedUtc:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val LiftedBy:String = null with get,set
        member val CreatedUtc:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val CreatedBy:String = null with get,set
        member val Status:String = null with get,set

    [<AllowNullLiteral>]
    type DispatchOfflineWindowView() = 
        member val OfflineWindowId:Int32 = new Int32() with get,set
        member val FromHour:String = null with get,set
        member val ToHour:String = null with get,set

    [<AllowNullLiteral>]
    type DispatchHoldScopeView() = 
        member val Kind:String = null with get,set
        member val Key:String = null with get,set
        member val Label:String = null with get,set

    [<AllowNullLiteral>]
    type DispatchHoldSuggestionView() = 
        member val ForDate:String = null with get,set
        member val Kind:String = null with get,set
        member val Severity:Int32 = new Int32() with get,set
        member val Headline:String = null with get,set
        member val DayLabel:String = null with get,set
        member val ScopeKind:String = null with get,set
        member val ScopeLabel:String = null with get,set
        member val Reason:String = null with get,set
        member val StartUtc:DateTime = new DateTime() with get,set
        member val EndUtc:DateTime = new DateTime() with get,set
        member val WindowLocal:String = null with get,set
        member val Text:String = null with get,set

    [<AllowNullLiteral>]
    type DispatchHoldsResponse() = 
        member val Holds:ResizeArray<DispatchHoldView> = new ResizeArray<DispatchHoldView>() with get,set
        member val Windows:ResizeArray<DispatchOfflineWindowView> = new ResizeArray<DispatchOfflineWindowView>() with get,set
        member val Scopes:ResizeArray<DispatchHoldScopeView> = new ResizeArray<DispatchHoldScopeView>() with get,set
        member val Suggestion:DispatchHoldSuggestionView = null with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type DispatchHoldSuggestionDismissRequest() = 
        member val ForDate:String = null with get,set
        member val Kind:String = null with get,set

F# DispatchHoldSuggestionDismissRequest 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.

POST /v1/dispatch/holds/suggestion/dismiss HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<DispatchHoldSuggestionDismissRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <ForDate>String</ForDate>
  <Kind>String</Kind>
</DispatchHoldSuggestionDismissRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DispatchHoldsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Holds>
    <DispatchHoldView>
      <Code>String</Code>
      <CreatedBy>String</CreatedBy>
      <CreatedUtc>0001-01-01T00:00:00</CreatedUtc>
      <EndUtc>0001-01-01T00:00:00</EndUtc>
      <HoldId>0</HoldId>
      <IncidentRef>String</IncidentRef>
      <LiftedBy>String</LiftedBy>
      <LiftedUtc>0001-01-01T00:00:00</LiftedUtc>
      <Note>String</Note>
      <Reason>String</Reason>
      <ScopeKey>String</ScopeKey>
      <ScopeKind>String</ScopeKind>
      <ScopeLabel>String</ScopeLabel>
      <Source>String</Source>
      <StartUtc>0001-01-01T00:00:00</StartUtc>
      <Status>String</Status>
    </DispatchHoldView>
  </Holds>
  <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>
  <Scopes>
    <DispatchHoldScopeView>
      <Key>String</Key>
      <Kind>String</Kind>
      <Label>String</Label>
    </DispatchHoldScopeView>
  </Scopes>
  <Suggestion>
    <DayLabel>String</DayLabel>
    <EndUtc>0001-01-01T00:00:00</EndUtc>
    <ForDate>String</ForDate>
    <Headline>String</Headline>
    <Kind>String</Kind>
    <Reason>String</Reason>
    <ScopeKind>String</ScopeKind>
    <ScopeLabel>String</ScopeLabel>
    <Severity>0</Severity>
    <StartUtc>0001-01-01T00:00:00</StartUtc>
    <Text>String</Text>
    <WindowLocal>String</WindowLocal>
  </Suggestion>
  <Windows>
    <DispatchOfflineWindowView>
      <FromHour>String</FromHour>
      <OfflineWindowId>0</OfflineWindowId>
      <ToHour>String</ToHour>
    </DispatchOfflineWindowView>
  </Windows>
</DispatchHoldsResponse>