POST   https://api.d-tools.com/SI/Publish/ServiceOrder

Publish a new service order to SI.

Request Information

URI Parameters

None.

Body Parameters

The Service Order.

NewServiceOrder
NameDescriptionTypeAdditional information
IntegrationId

Id for the service order (Optional). The Id must be a valid Guid and can be used to retrieve service order.

string

None.

Client

Client name (Required)

string

None.

ClientNumber

Client number

string

None.

Name

Name (Required)

string

None.

Start

Start date required (Required)

date

None.

End

End date required (Required)

date

None.

Description

Description of the SO

string

None.

Request Formats

application/json, text/json

Sample:
{
  "IntegrationId": "sample string 1",
  "Client": "sample string 2",
  "ClientNumber": "sample string 3",
  "Name": "sample string 4",
  "Start": "2024-04-29T15:57:54.1170546+00:00",
  "StartTicks": 6,
  "End": "2024-04-29T15:57:54.1170546+00:00",
  "EndTicks": 8,
  "Description": "sample string 9"
}

application/xml, text/xml

Sample:
<NewServiceOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTools.SICloudAPI.DataObjects">
  <Client>sample string 2</Client>
  <ClientNumber>sample string 3</ClientNumber>
  <Description>sample string 9</Description>
  <End>2024-04-29T15:57:54.1170546+00:00</End>
  <EndTicks>8</EndTicks>
  <IntegrationId>sample string 1</IntegrationId>
  <Name>sample string 4</Name>
  <Start>2024-04-29T15:57:54.1170546+00:00</Start>
  <StartTicks>6</StartTicks>
</NewServiceOrder>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'NewServiceOrder'.

Response Information

Resource Description

PublishResponse
NameDescriptionTypeAdditional information
MessageId

Check the status of the transction using this Message Id

globally unique identifier

None.

Message

Sucess Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "MessageId": "7898bcbe-141f-41b1-b405-8f821ded46a1",
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<PublishResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTools.SICloudAPI.DataObjects">
  <Message>sample string 2</Message>
  <MessageId>7898bcbe-141f-41b1-b405-8f821ded46a1</MessageId>
</PublishResponse>