POST SaveWorkOrder
Request Information
URI Parameters
None.
Body Parameters
CreateWorkOrdersBindingModelName | Description | Type | Additional information |
---|---|---|---|
Description | string |
Required |
|
WorkOrderCategoryId | integer |
Required |
|
WorkOrderPermissionId | byte |
Required |
|
WorkOrderSourceId | integer |
Required |
|
EntryNotes | string |
Required |
|
WorkOrderAttachmentsArray | Collection of byte |
None. |
|
IsCOVID19 | boolean |
None. |
|
IsContactRequiredForCOVIDInfo | boolean |
None. |
|
WorkOrderAttachments | Collection of WorkOrderAttachmentsBindingModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "WorkOrderAttachments": [ { "UploadedAttachment": "sample string 1", "WorkOrderAttachmentTypeId": 64, "WorkOrderAttachmentStatusId": 64, "fileName": "sample string 4", "fileContent": "sample string 5" }, { "UploadedAttachment": "sample string 1", "WorkOrderAttachmentTypeId": 64, "WorkOrderAttachmentStatusId": 64, "fileName": "sample string 4", "fileContent": "sample string 5" } ], "Description": "sample string 1", "WorkOrderCategoryId": 2, "WorkOrderPermissionId": 64, "WorkOrderSourceId": 4, "EntryNotes": "sample string 5", "WorkOrderAttachmentsArray": "QEA=", "IsCOVID19": true, "IsContactRequiredForCOVIDInfo": true }
application/xml, text/xml
Sample:
<CreateWorkOrdersBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cybersoft.YottaResident.WebAPIs.Models"> <Description>sample string 1</Description> <EntryNotes>sample string 5</EntryNotes> <IsCOVID19>true</IsCOVID19> <IsContactRequiredForCOVIDInfo>true</IsContactRequiredForCOVIDInfo> <WorkOrderAttachments> <WorkOrderAttachmentsBindingModel> <UploadedAttachment>sample string 1</UploadedAttachment> <WorkOrderAttachmentStatusId>64</WorkOrderAttachmentStatusId> <WorkOrderAttachmentTypeId>64</WorkOrderAttachmentTypeId> <fileContent>sample string 5</fileContent> <fileName>sample string 4</fileName> </WorkOrderAttachmentsBindingModel> <WorkOrderAttachmentsBindingModel> <UploadedAttachment>sample string 1</UploadedAttachment> <WorkOrderAttachmentStatusId>64</WorkOrderAttachmentStatusId> <WorkOrderAttachmentTypeId>64</WorkOrderAttachmentTypeId> <fileContent>sample string 5</fileContent> <fileName>sample string 4</fileName> </WorkOrderAttachmentsBindingModel> </WorkOrderAttachments> <WorkOrderAttachmentsArray>QEA=</WorkOrderAttachmentsArray> <WorkOrderCategoryId>2</WorkOrderCategoryId> <WorkOrderPermissionId>64</WorkOrderPermissionId> <WorkOrderSourceId>4</WorkOrderSourceId> </CreateWorkOrdersBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>