PUT api/Notes

Request Information

URI Parameters

None.

Body Parameters

Note
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CompanyId

integer

None.

Active

boolean

None.

Title

string

None.

Owner

string

None.

CreatedDate

date

None.

EditedDate

date

None.

Content

string

None.

Pictures

Collection of Picture

None.

ProjectId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "2806b141-e992-47f7-ad5d-3eea93cec8da",
  "CompanyId": 2,
  "Active": true,
  "Title": "sample string 4",
  "Owner": "sample string 5",
  "CreatedDate": "2026-03-09T22:33:38.9427643",
  "EditedDate": "2026-03-09T22:33:38.9427643",
  "Content": "sample string 8",
  "Pictures": [
    {
      "Id": "37cd79c3-929b-4892-8ed3-713cb5413d9c",
      "Url": "sample string 2",
      "Comment": "sample string 3",
      "NoteId": "4cd0bf46-4392-416b-a521-3628651b2c3e",
      "Title": "sample string 5"
    },
    {
      "Id": "37cd79c3-929b-4892-8ed3-713cb5413d9c",
      "Url": "sample string 2",
      "Comment": "sample string 3",
      "NoteId": "4cd0bf46-4392-416b-a521-3628651b2c3e",
      "Title": "sample string 5"
    }
  ],
  "ProjectId": 9
}

application/xml, text/xml

Sample:
<Note xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fagtorget.DTO.Notes">
  <Active>true</Active>
  <CompanyId>2</CompanyId>
  <Content>sample string 8</Content>
  <CreatedDate>2026-03-09T22:33:38.9427643+01:00</CreatedDate>
  <EditedDate>2026-03-09T22:33:38.9427643+01:00</EditedDate>
  <Id>2806b141-e992-47f7-ad5d-3eea93cec8da</Id>
  <Owner>sample string 5</Owner>
  <Pictures>
    <Picture>
      <Comment>sample string 3</Comment>
      <Id>37cd79c3-929b-4892-8ed3-713cb5413d9c</Id>
      <NoteId>4cd0bf46-4392-416b-a521-3628651b2c3e</NoteId>
      <Title>sample string 5</Title>
      <Url>sample string 2</Url>
    </Picture>
    <Picture>
      <Comment>sample string 3</Comment>
      <Id>37cd79c3-929b-4892-8ed3-713cb5413d9c</Id>
      <NoteId>4cd0bf46-4392-416b-a521-3628651b2c3e</NoteId>
      <Title>sample string 5</Title>
      <Url>sample string 2</Url>
    </Picture>
  </Pictures>
  <ProjectId>9</ProjectId>
  <Title>sample string 4</Title>
</Note>

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

Response Information

Resource Description

None.