POST api/NoteComment/Save

Request Information

URI Parameters

None.

Body Parameters

SaveNoteCommentInputModel
NameDescriptionTypeAdditional information
NoteCommentId

globally unique identifier

None.

NoteId

globally unique identifier

None.

Text

string

Required

IsCritical

boolean

Required

SourceType

WMSMasterTypeEnum

None.

InsertedAttachments

Collection of NoteAttachmentViewModel

None.

DeletedAttachments

Collection of NoteAttachmentViewModel

None.

NoteCommentReceipients

Collection of NoteReceipientViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "NoteCommentId": "3c895409-b039-4890-9eea-ceea18b1a56d",
  "NoteId": "a95d879d-8d2b-43c2-8dbf-a4b8d8240774",
  "Text": "sample string 3",
  "IsCritical": true,
  "SourceType": 1,
  "InsertedAttachments": [
    {
      "AttachmentId": "c746b530-7e75-46e9-b207-d0cd018aa477",
      "Id": "aed9852d-22d1-40d6-a750-e822dbce73f8",
      "ImageType": 1
    },
    {
      "AttachmentId": "c746b530-7e75-46e9-b207-d0cd018aa477",
      "Id": "aed9852d-22d1-40d6-a750-e822dbce73f8",
      "ImageType": 1
    }
  ],
  "DeletedAttachments": [
    {
      "AttachmentId": "c746b530-7e75-46e9-b207-d0cd018aa477",
      "Id": "aed9852d-22d1-40d6-a750-e822dbce73f8",
      "ImageType": 1
    },
    {
      "AttachmentId": "c746b530-7e75-46e9-b207-d0cd018aa477",
      "Id": "aed9852d-22d1-40d6-a750-e822dbce73f8",
      "ImageType": 1
    }
  ],
  "NoteCommentReceipients": [
    {
      "ReceipientId": 1
    },
    {
      "ReceipientId": 1
    }
  ]
}

application/xml, text/xml

Sample:
<SaveNoteCommentInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyzerg.Model.WMS.InputOutputModels">
  <DeletedAttachments>
    <NoteAttachmentViewModel>
      <AttachmentId>c746b530-7e75-46e9-b207-d0cd018aa477</AttachmentId>
      <Id>aed9852d-22d1-40d6-a750-e822dbce73f8</Id>
      <ImageType>Capture</ImageType>
    </NoteAttachmentViewModel>
    <NoteAttachmentViewModel>
      <AttachmentId>c746b530-7e75-46e9-b207-d0cd018aa477</AttachmentId>
      <Id>aed9852d-22d1-40d6-a750-e822dbce73f8</Id>
      <ImageType>Capture</ImageType>
    </NoteAttachmentViewModel>
  </DeletedAttachments>
  <InsertedAttachments>
    <NoteAttachmentViewModel>
      <AttachmentId>c746b530-7e75-46e9-b207-d0cd018aa477</AttachmentId>
      <Id>aed9852d-22d1-40d6-a750-e822dbce73f8</Id>
      <ImageType>Capture</ImageType>
    </NoteAttachmentViewModel>
    <NoteAttachmentViewModel>
      <AttachmentId>c746b530-7e75-46e9-b207-d0cd018aa477</AttachmentId>
      <Id>aed9852d-22d1-40d6-a750-e822dbce73f8</Id>
      <ImageType>Capture</ImageType>
    </NoteAttachmentViewModel>
  </InsertedAttachments>
  <IsCritical>true</IsCritical>
  <NoteCommentId>3c895409-b039-4890-9eea-ceea18b1a56d</NoteCommentId>
  <NoteCommentReceipients>
    <NoteReceipientViewModel>
      <ReceipientId>1</ReceipientId>
    </NoteReceipientViewModel>
    <NoteReceipientViewModel>
      <ReceipientId>1</ReceipientId>
    </NoteReceipientViewModel>
  </NoteCommentReceipients>
  <NoteId>a95d879d-8d2b-43c2-8dbf-a4b8d8240774</NoteId>
  <SourceType>WarehouseReceipt</SourceType>
  <Text>sample string 3</Text>
</SaveNoteCommentInputModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"NoteCommentId":"3c895409-b039-4890-9eea-ceea18b1a56d","NoteId":"a95d879d-8d2b-43c2-8dbf-a4b8d8240774","Text":"sample string 3","IsCritical":true,"SourceType":1,"InsertedAttachments":[{"AttachmentId":"c746b530-7e75-46e9-b207-d0cd018aa477","Id":"aed9852d-22d1-40d6-a750-e822dbce73f8","ImageType":1},{"AttachmentId":"c746b530-7e75-46e9-b207-d0cd018aa477","Id":"aed9852d-22d1-40d6-a750-e822dbce73f8","ImageType":1}],"DeletedAttachments":[{"AttachmentId":"c746b530-7e75-46e9-b207-d0cd018aa477","Id":"aed9852d-22d1-40d6-a750-e822dbce73f8","ImageType":1},{"AttachmentId":"c746b530-7e75-46e9-b207-d0cd018aa477","Id":"aed9852d-22d1-40d6-a750-e822dbce73f8","ImageType":1}],"NoteCommentReceipients":[{"ReceipientId":1},{"ReceipientId":1}]}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, text/html

Sample:

Sample not available.