POST Api/Resource/Request/Swap
Create a new swap request
Request Information
URI Parameters
None.
Body Parameters
SwapModelName | Description | Type | Additional information |
---|---|---|---|
ResourceUserIDToSwapWith | integer |
Required |
|
BeginDate | date |
Required |
|
ReceiveBeginDate | date |
Required |
|
InitiatiorKind | InitiatorKind |
None. |
|
SubmittorTasks | Collection of ScheduledTaskInfo |
None. |
|
SubmittorExtraCodes | Collection of ScheduledExtraCodeInfo |
None. |
|
ReceiverTasks | Collection of ScheduledTaskInfo |
None. |
|
RecieverExtraCodes | Collection of ScheduledExtraCodeInfo |
None. |
|
Comment | string |
None. |
|
WholeDayOffered | boolean |
None. |
|
WantedSwapInReturn | integer |
None. |
|
RequestChannel | RequestChannel |
None. |
Request Formats
application/json, text/json
Sample:
{ "ResourceUserIDToSwapWith": 1, "BeginDate": "2024-12-22T08:34:14.3617747+01:00", "ReceiveBeginDate": "2024-12-22T08:34:14.3617747+01:00", "InitiatiorKind": 0, "SubmittorTasks": [ { "Task": { "Customer": { "Details1": "sample string 1", "UserID": 3, "ID": 5, "Details2": "sample string 2", "Email": "sample string 4", "Name": "sample string 6", "BeginDates": [ "2024-12-22T08:34:14.3617747+01:00", "2024-12-22T08:34:14.3617747+01:00" ], "EndDates": [ "2024-12-22T08:34:14.3617747+01:00", "2024-12-22T08:34:14.3617747+01:00" ] }, "ID": 6, "Location": { "Details1": "sample string 1", "ID": 3, "Details2": "sample string 2", "Name": "sample string 4" }, "Name": "sample string 7", "Color": 1, "BeginTime": "sample string 2", "EndTime": "sample string 3", "Details1": "sample string 4", "Details2": "sample string 5" }, "SchedulingID": 2, "PlannerComment": "sample string 1", "Date": "2024-12-22T08:34:14.3617747+01:00", "BeginTime": "2024-12-22T08:34:14.3617747+01:00", "EndTime": "2024-12-22T08:34:14.3617747+01:00", "AcknowledgedID": 6 }, { "Task": { "Customer": { "Details1": "sample string 1", "UserID": 3, "ID": 5, "Details2": "sample string 2", "Email": "sample string 4", "Name": "sample string 6", "BeginDates": [ "2024-12-22T08:34:14.3617747+01:00", "2024-12-22T08:34:14.3617747+01:00" ], "EndDates": [ "2024-12-22T08:34:14.3617747+01:00", "2024-12-22T08:34:14.3617747+01:00" ] }, "ID": 6, "Location": { "Details1": "sample string 1", "ID": 3, "Details2": "sample string 2", "Name": "sample string 4" }, "Name": "sample string 7", "Color": 1, "BeginTime": "sample string 2", "EndTime": "sample string 3", "Details1": "sample string 4", "Details2": "sample string 5" }, "SchedulingID": 2, "PlannerComment": "sample string 1", "Date": "2024-12-22T08:34:14.3617747+01:00", "BeginTime": "2024-12-22T08:34:14.3617747+01:00", "EndTime": "2024-12-22T08:34:14.3617747+01:00", "AcknowledgedID": 6 } ], "SubmittorExtraCodes": [ { "ExtraCode": null, "SchedulingID": 2, "PlannerComment": "sample string 1", "Date": "2024-12-22T08:34:14.3617747+01:00", "BeginTime": "2024-12-22T08:34:14.3617747+01:00", "EndTime": "2024-12-22T08:34:14.3617747+01:00", "AcknowledgedID": 6 }, { "ExtraCode": null, "SchedulingID": 2, "PlannerComment": "sample string 1", "Date": "2024-12-22T08:34:14.3617747+01:00", "BeginTime": "2024-12-22T08:34:14.3617747+01:00", "EndTime": "2024-12-22T08:34:14.3617747+01:00", "AcknowledgedID": 6 } ], "ReceiverTasks": [ { "Task": { "Customer": { "Details1": "sample string 1", "UserID": 3, "ID": 5, "Details2": "sample string 2", "Email": "sample string 4", "Name": "sample string 6", "BeginDates": [ "2024-12-22T08:34:14.3617747+01:00", "2024-12-22T08:34:14.3617747+01:00" ], "EndDates": [ "2024-12-22T08:34:14.3617747+01:00", "2024-12-22T08:34:14.3617747+01:00" ] }, "ID": 6, "Location": { "Details1": "sample string 1", "ID": 3, "Details2": "sample string 2", "Name": "sample string 4" }, "Name": "sample string 7", "Color": 1, "BeginTime": "sample string 2", "EndTime": "sample string 3", "Details1": "sample string 4", "Details2": "sample string 5" }, "SchedulingID": 2, "PlannerComment": "sample string 1", "Date": "2024-12-22T08:34:14.3617747+01:00", "BeginTime": "2024-12-22T08:34:14.3617747+01:00", "EndTime": "2024-12-22T08:34:14.3617747+01:00", "AcknowledgedID": 6 }, { "Task": { "Customer": { "Details1": "sample string 1", "UserID": 3, "ID": 5, "Details2": "sample string 2", "Email": "sample string 4", "Name": "sample string 6", "BeginDates": [ "2024-12-22T08:34:14.3617747+01:00", "2024-12-22T08:34:14.3617747+01:00" ], "EndDates": [ "2024-12-22T08:34:14.3617747+01:00", "2024-12-22T08:34:14.3617747+01:00" ] }, "ID": 6, "Location": { "Details1": "sample string 1", "ID": 3, "Details2": "sample string 2", "Name": "sample string 4" }, "Name": "sample string 7", "Color": 1, "BeginTime": "sample string 2", "EndTime": "sample string 3", "Details1": "sample string 4", "Details2": "sample string 5" }, "SchedulingID": 2, "PlannerComment": "sample string 1", "Date": "2024-12-22T08:34:14.3617747+01:00", "BeginTime": "2024-12-22T08:34:14.3617747+01:00", "EndTime": "2024-12-22T08:34:14.3617747+01:00", "AcknowledgedID": 6 } ], "RecieverExtraCodes": [ { "ExtraCode": null, "SchedulingID": 2, "PlannerComment": "sample string 1", "Date": "2024-12-22T08:34:14.3617747+01:00", "BeginTime": "2024-12-22T08:34:14.3617747+01:00", "EndTime": "2024-12-22T08:34:14.3617747+01:00", "AcknowledgedID": 6 }, { "ExtraCode": null, "SchedulingID": 2, "PlannerComment": "sample string 1", "Date": "2024-12-22T08:34:14.3617747+01:00", "BeginTime": "2024-12-22T08:34:14.3617747+01:00", "EndTime": "2024-12-22T08:34:14.3617747+01:00", "AcknowledgedID": 6 } ], "Comment": "sample string 4", "WholeDayOffered": true, "WantedSwapInReturn": 6, "RequestChannel": 1 }
application/xml, text/xml
Sample:
<SwapModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RostarCASWebAPI.Models.Requests"> <BeginDate>2024-12-22T08:34:14.3617747+01:00</BeginDate> <Comment>sample string 4</Comment> <InitiatiorKind>None</InitiatiorKind> <ReceiveBeginDate>2024-12-22T08:34:14.3617747+01:00</ReceiveBeginDate> <ReceiverTasks xmlns:d2p1="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models"> <d2p1:ScheduledTaskInfo> <d2p1:SchedulingID>2</d2p1:SchedulingID> <d2p1:Date>2024-12-22T08:34:14.3617747+01:00</d2p1:Date> <d2p1:BeginTime>2024-12-22T08:34:14.3617747+01:00</d2p1:BeginTime> <d2p1:EndTime>2024-12-22T08:34:14.3617747+01:00</d2p1:EndTime> <d2p1:AcknowledgedID>6</d2p1:AcknowledgedID> <d2p1:Task> <d2p1:ID>6</d2p1:ID> <d2p1:Name>sample string 7</d2p1:Name> <d2p1:Customer> <d2p1:ID>5</d2p1:ID> <d2p1:Name>sample string 6</d2p1:Name> <d2p1:UserID>3</d2p1:UserID> <d2p1:Email>sample string 4</d2p1:Email> <d2p1:BeginDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> </d2p1:BeginDates> <d2p1:EndDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> </d2p1:EndDates> <d2p1:Details1>sample string 1</d2p1:Details1> <d2p1:Details2>sample string 2</d2p1:Details2> </d2p1:Customer> <d2p1:Location> <d2p1:ID>3</d2p1:ID> <d2p1:Name>sample string 4</d2p1:Name> <d2p1:Details1>sample string 1</d2p1:Details1> <d2p1:Details2>sample string 2</d2p1:Details2> </d2p1:Location> <d2p1:Color>1</d2p1:Color> <d2p1:BeginTime>sample string 2</d2p1:BeginTime> <d2p1:EndTime>sample string 3</d2p1:EndTime> <d2p1:Details1>sample string 4</d2p1:Details1> <d2p1:Details2>sample string 5</d2p1:Details2> </d2p1:Task> <d2p1:PlannerComment>sample string 1</d2p1:PlannerComment> </d2p1:ScheduledTaskInfo> <d2p1:ScheduledTaskInfo> <d2p1:SchedulingID>2</d2p1:SchedulingID> <d2p1:Date>2024-12-22T08:34:14.3617747+01:00</d2p1:Date> <d2p1:BeginTime>2024-12-22T08:34:14.3617747+01:00</d2p1:BeginTime> <d2p1:EndTime>2024-12-22T08:34:14.3617747+01:00</d2p1:EndTime> <d2p1:AcknowledgedID>6</d2p1:AcknowledgedID> <d2p1:Task> <d2p1:ID>6</d2p1:ID> <d2p1:Name>sample string 7</d2p1:Name> <d2p1:Customer> <d2p1:ID>5</d2p1:ID> <d2p1:Name>sample string 6</d2p1:Name> <d2p1:UserID>3</d2p1:UserID> <d2p1:Email>sample string 4</d2p1:Email> <d2p1:BeginDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> </d2p1:BeginDates> <d2p1:EndDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> </d2p1:EndDates> <d2p1:Details1>sample string 1</d2p1:Details1> <d2p1:Details2>sample string 2</d2p1:Details2> </d2p1:Customer> <d2p1:Location> <d2p1:ID>3</d2p1:ID> <d2p1:Name>sample string 4</d2p1:Name> <d2p1:Details1>sample string 1</d2p1:Details1> <d2p1:Details2>sample string 2</d2p1:Details2> </d2p1:Location> <d2p1:Color>1</d2p1:Color> <d2p1:BeginTime>sample string 2</d2p1:BeginTime> <d2p1:EndTime>sample string 3</d2p1:EndTime> <d2p1:Details1>sample string 4</d2p1:Details1> <d2p1:Details2>sample string 5</d2p1:Details2> </d2p1:Task> <d2p1:PlannerComment>sample string 1</d2p1:PlannerComment> </d2p1:ScheduledTaskInfo> </ReceiverTasks> <RecieverExtraCodes xmlns:d2p1="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models"> <d2p1:ScheduledExtraCodeInfo> <d2p1:SchedulingID>2</d2p1:SchedulingID> <d2p1:Date>2024-12-22T08:34:14.3617747+01:00</d2p1:Date> <d2p1:BeginTime>2024-12-22T08:34:14.3617747+01:00</d2p1:BeginTime> <d2p1:EndTime>2024-12-22T08:34:14.3617747+01:00</d2p1:EndTime> <d2p1:AcknowledgedID>6</d2p1:AcknowledgedID> <d2p1:ExtraCode i:nil="true" /> <d2p1:PlannerComment>sample string 1</d2p1:PlannerComment> </d2p1:ScheduledExtraCodeInfo> <d2p1:ScheduledExtraCodeInfo> <d2p1:SchedulingID>2</d2p1:SchedulingID> <d2p1:Date>2024-12-22T08:34:14.3617747+01:00</d2p1:Date> <d2p1:BeginTime>2024-12-22T08:34:14.3617747+01:00</d2p1:BeginTime> <d2p1:EndTime>2024-12-22T08:34:14.3617747+01:00</d2p1:EndTime> <d2p1:AcknowledgedID>6</d2p1:AcknowledgedID> <d2p1:ExtraCode i:nil="true" /> <d2p1:PlannerComment>sample string 1</d2p1:PlannerComment> </d2p1:ScheduledExtraCodeInfo> </RecieverExtraCodes> <RequestChannel>SMS</RequestChannel> <ResourceUserIDToSwapWith>1</ResourceUserIDToSwapWith> <SubmittorExtraCodes xmlns:d2p1="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models"> <d2p1:ScheduledExtraCodeInfo> <d2p1:SchedulingID>2</d2p1:SchedulingID> <d2p1:Date>2024-12-22T08:34:14.3617747+01:00</d2p1:Date> <d2p1:BeginTime>2024-12-22T08:34:14.3617747+01:00</d2p1:BeginTime> <d2p1:EndTime>2024-12-22T08:34:14.3617747+01:00</d2p1:EndTime> <d2p1:AcknowledgedID>6</d2p1:AcknowledgedID> <d2p1:ExtraCode i:nil="true" /> <d2p1:PlannerComment>sample string 1</d2p1:PlannerComment> </d2p1:ScheduledExtraCodeInfo> <d2p1:ScheduledExtraCodeInfo> <d2p1:SchedulingID>2</d2p1:SchedulingID> <d2p1:Date>2024-12-22T08:34:14.3617747+01:00</d2p1:Date> <d2p1:BeginTime>2024-12-22T08:34:14.3617747+01:00</d2p1:BeginTime> <d2p1:EndTime>2024-12-22T08:34:14.3617747+01:00</d2p1:EndTime> <d2p1:AcknowledgedID>6</d2p1:AcknowledgedID> <d2p1:ExtraCode i:nil="true" /> <d2p1:PlannerComment>sample string 1</d2p1:PlannerComment> </d2p1:ScheduledExtraCodeInfo> </SubmittorExtraCodes> <SubmittorTasks xmlns:d2p1="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models"> <d2p1:ScheduledTaskInfo> <d2p1:SchedulingID>2</d2p1:SchedulingID> <d2p1:Date>2024-12-22T08:34:14.3617747+01:00</d2p1:Date> <d2p1:BeginTime>2024-12-22T08:34:14.3617747+01:00</d2p1:BeginTime> <d2p1:EndTime>2024-12-22T08:34:14.3617747+01:00</d2p1:EndTime> <d2p1:AcknowledgedID>6</d2p1:AcknowledgedID> <d2p1:Task> <d2p1:ID>6</d2p1:ID> <d2p1:Name>sample string 7</d2p1:Name> <d2p1:Customer> <d2p1:ID>5</d2p1:ID> <d2p1:Name>sample string 6</d2p1:Name> <d2p1:UserID>3</d2p1:UserID> <d2p1:Email>sample string 4</d2p1:Email> <d2p1:BeginDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> </d2p1:BeginDates> <d2p1:EndDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> </d2p1:EndDates> <d2p1:Details1>sample string 1</d2p1:Details1> <d2p1:Details2>sample string 2</d2p1:Details2> </d2p1:Customer> <d2p1:Location> <d2p1:ID>3</d2p1:ID> <d2p1:Name>sample string 4</d2p1:Name> <d2p1:Details1>sample string 1</d2p1:Details1> <d2p1:Details2>sample string 2</d2p1:Details2> </d2p1:Location> <d2p1:Color>1</d2p1:Color> <d2p1:BeginTime>sample string 2</d2p1:BeginTime> <d2p1:EndTime>sample string 3</d2p1:EndTime> <d2p1:Details1>sample string 4</d2p1:Details1> <d2p1:Details2>sample string 5</d2p1:Details2> </d2p1:Task> <d2p1:PlannerComment>sample string 1</d2p1:PlannerComment> </d2p1:ScheduledTaskInfo> <d2p1:ScheduledTaskInfo> <d2p1:SchedulingID>2</d2p1:SchedulingID> <d2p1:Date>2024-12-22T08:34:14.3617747+01:00</d2p1:Date> <d2p1:BeginTime>2024-12-22T08:34:14.3617747+01:00</d2p1:BeginTime> <d2p1:EndTime>2024-12-22T08:34:14.3617747+01:00</d2p1:EndTime> <d2p1:AcknowledgedID>6</d2p1:AcknowledgedID> <d2p1:Task> <d2p1:ID>6</d2p1:ID> <d2p1:Name>sample string 7</d2p1:Name> <d2p1:Customer> <d2p1:ID>5</d2p1:ID> <d2p1:Name>sample string 6</d2p1:Name> <d2p1:UserID>3</d2p1:UserID> <d2p1:Email>sample string 4</d2p1:Email> <d2p1:BeginDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> </d2p1:BeginDates> <d2p1:EndDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> <d6p1:dateTime>2024-12-22T08:34:14.3617747+01:00</d6p1:dateTime> </d2p1:EndDates> <d2p1:Details1>sample string 1</d2p1:Details1> <d2p1:Details2>sample string 2</d2p1:Details2> </d2p1:Customer> <d2p1:Location> <d2p1:ID>3</d2p1:ID> <d2p1:Name>sample string 4</d2p1:Name> <d2p1:Details1>sample string 1</d2p1:Details1> <d2p1:Details2>sample string 2</d2p1:Details2> </d2p1:Location> <d2p1:Color>1</d2p1:Color> <d2p1:BeginTime>sample string 2</d2p1:BeginTime> <d2p1:EndTime>sample string 3</d2p1:EndTime> <d2p1:Details1>sample string 4</d2p1:Details1> <d2p1:Details2>sample string 5</d2p1:Details2> </d2p1:Task> <d2p1:PlannerComment>sample string 1</d2p1:PlannerComment> </d2p1:ScheduledTaskInfo> </SubmittorTasks> <WantedSwapInReturn>6</WantedSwapInReturn> <WholeDayOffered>true</WholeDayOffered> </SwapModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |