POST api/Note/Save
Request Information
URI Parameters
None.
Body Parameters
SaveNoteInputModelName | Description | Type | Additional information |
---|---|---|---|
NoteId | globally unique identifier |
None. |
|
Title | string |
Required String length: inclusive between 0 and 35 |
|
Text | string |
Required |
|
IsCritical | boolean |
Required |
|
NoteAccessId | NoteAccess |
Required |
|
SourceType | WMSMasterTypeEnum |
Required |
|
SourceTypeId | globally unique identifier |
Required |
|
InsertedAttachments | Collection of NoteAttachmentViewModel |
None. |
|
DeletedAttachments | Collection of NoteAttachmentViewModel |
None. |
|
NoteReceipients | Collection of NoteReceipientViewModel |
None. |
|
DocumentIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "NoteId": "e1682944-21bd-4346-8829-46196fc927c6", "Title": "sample string 2", "Text": "sample string 3", "IsCritical": true, "NoteAccessId": 1, "SourceType": 1, "SourceTypeId": "3ccbf33b-3c9e-42ba-aaaa-4e97d6e041aa", "InsertedAttachments": [ { "AttachmentId": "bc1f2176-d348-4dcd-99a4-5937af25bd0b", "Id": "cea9ca0b-ff9f-4d32-9234-6391fa6d58b6", "ImageType": 1 }, { "AttachmentId": "bc1f2176-d348-4dcd-99a4-5937af25bd0b", "Id": "cea9ca0b-ff9f-4d32-9234-6391fa6d58b6", "ImageType": 1 } ], "DeletedAttachments": [ { "AttachmentId": "bc1f2176-d348-4dcd-99a4-5937af25bd0b", "Id": "cea9ca0b-ff9f-4d32-9234-6391fa6d58b6", "ImageType": 1 }, { "AttachmentId": "bc1f2176-d348-4dcd-99a4-5937af25bd0b", "Id": "cea9ca0b-ff9f-4d32-9234-6391fa6d58b6", "ImageType": 1 } ], "NoteReceipients": [ { "ReceipientId": 1 }, { "ReceipientId": 1 } ], "DocumentIds": [ 1, 2 ] }
application/xml, text/xml
Sample:
<SaveNoteInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyzerg.Model.WMS.InputOutputModels"> <DeletedAttachments> <NoteAttachmentViewModel> <AttachmentId>bc1f2176-d348-4dcd-99a4-5937af25bd0b</AttachmentId> <Id>cea9ca0b-ff9f-4d32-9234-6391fa6d58b6</Id> <ImageType>Capture</ImageType> </NoteAttachmentViewModel> <NoteAttachmentViewModel> <AttachmentId>bc1f2176-d348-4dcd-99a4-5937af25bd0b</AttachmentId> <Id>cea9ca0b-ff9f-4d32-9234-6391fa6d58b6</Id> <ImageType>Capture</ImageType> </NoteAttachmentViewModel> </DeletedAttachments> <DocumentIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </DocumentIds> <InsertedAttachments> <NoteAttachmentViewModel> <AttachmentId>bc1f2176-d348-4dcd-99a4-5937af25bd0b</AttachmentId> <Id>cea9ca0b-ff9f-4d32-9234-6391fa6d58b6</Id> <ImageType>Capture</ImageType> </NoteAttachmentViewModel> <NoteAttachmentViewModel> <AttachmentId>bc1f2176-d348-4dcd-99a4-5937af25bd0b</AttachmentId> <Id>cea9ca0b-ff9f-4d32-9234-6391fa6d58b6</Id> <ImageType>Capture</ImageType> </NoteAttachmentViewModel> </InsertedAttachments> <IsCritical>true</IsCritical> <NoteAccessId>Everyone</NoteAccessId> <NoteId>e1682944-21bd-4346-8829-46196fc927c6</NoteId> <NoteReceipients> <NoteReceipientViewModel> <ReceipientId>1</ReceipientId> </NoteReceipientViewModel> <NoteReceipientViewModel> <ReceipientId>1</ReceipientId> </NoteReceipientViewModel> </NoteReceipients> <SourceType>WarehouseReceipt</SourceType> <SourceTypeId>3ccbf33b-3c9e-42ba-aaaa-4e97d6e041aa</SourceTypeId> <Text>sample string 3</Text> <Title>sample string 2</Title> </SaveNoteInputModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"NoteId":"e1682944-21bd-4346-8829-46196fc927c6","Title":"sample string 2","Text":"sample string 3","IsCritical":true,"NoteAccessId":1,"SourceType":1,"SourceTypeId":"3ccbf33b-3c9e-42ba-aaaa-4e97d6e041aa","InsertedAttachments":[{"AttachmentId":"bc1f2176-d348-4dcd-99a4-5937af25bd0b","Id":"cea9ca0b-ff9f-4d32-9234-6391fa6d58b6","ImageType":1},{"AttachmentId":"bc1f2176-d348-4dcd-99a4-5937af25bd0b","Id":"cea9ca0b-ff9f-4d32-9234-6391fa6d58b6","ImageType":1}],"DeletedAttachments":[{"AttachmentId":"bc1f2176-d348-4dcd-99a4-5937af25bd0b","Id":"cea9ca0b-ff9f-4d32-9234-6391fa6d58b6","ImageType":1},{"AttachmentId":"bc1f2176-d348-4dcd-99a4-5937af25bd0b","Id":"cea9ca0b-ff9f-4d32-9234-6391fa6d58b6","ImageType":1}],"NoteReceipients":[{"ReceipientId":1},{"ReceipientId":1}],"DocumentIds":[1,2]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.