PUT api/UserNotes

Update an existing note. Note: The created and modified dates determined by the actual times of creation and last modification respectively. The NoteId cannot be changed.

Request Information

URI Parameters

None.

Body Parameters

The Note Entity to update.

NoteEntity
NameDescriptionTypeAdditional information
NoteId

string

Required

Matching regular expression pattern: ^[a-zA-Z0-9 ]*$

Title

string

Required

Contents

string

None.

CreatedDateUtc

date

None.

ModifiedDateUtc

date

None.

IsPublic

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "NoteId": "sample string 1",
  "Title": "sample string 2",
  "Contents": "sample string 3",
  "CreatedDateUtc": "2021-09-22T06:30:19.6731916-05:00",
  "ModifiedDateUtc": "2021-09-22T06:30:19.6731916-05:00",
  "IsPublic": true
}

application/xml, text/xml

Sample:
<NoteEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyOnlineNotes.Models">
  <Contents>sample string 3</Contents>
  <CreatedDateUtc>2021-09-22T06:30:19.6731916-05:00</CreatedDateUtc>
  <IsPublic>true</IsPublic>
  <ModifiedDateUtc>2021-09-22T06:30:19.6731916-05:00</ModifiedDateUtc>
  <NoteId>sample string 1</NoteId>
  <Title>sample string 2</Title>
</NoteEntity>

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 'NoteEntity'.

Response Information

Resource Description

True if successful

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>