POST Api/Notes

Dodaje asynchronicznie nowy obiekt Note do bazy danych

Request Information

URI Parameters

None.

Body Parameters

nowy obiekt

NoteDto
NameDescriptionTypeAdditional information
NoteId

integer

Required

ParentNoteId

integer

None.

CompanyInfoId

integer

Required

ProfileId

string

None.

Title

string

Required

Content

string

None.

LinkedFile

string

None.

CreationDate

date

None.

NoteType

NoteType

None.

Location

string

None.

DurationInMinutes

integer

None.

ProfileName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "noteId": 1,
  "parentNoteId": 1,
  "companyInfoId": 2,
  "profileId": "sample string 3",
  "title": "sample string 4",
  "content": "sample string 5",
  "linkedFile": "sample string 6",
  "creationDate": "2024-05-18T05:52:37.0188204+00:00",
  "noteType": 0,
  "location": "sample string 8",
  "durationInMinutes": 9,
  "profileName": "sample string 10"
}

multipart/form-data

Sample:
{"noteId":1,"parentNoteId":1,"companyInfoId":2,"profileId":"sample string 3","title":"sample string 4","content":"sample string 5","linkedFile":"sample string 6","creationDate":"2024-05-18T05:52:37.0188204+00:00","noteType":0,"location":"sample string 8","durationInMinutes":9,"profileName":"sample string 10"}

application/xml, text/xml

Sample:
<NoteDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <NoteId>1</NoteId>
  <ParentNoteId>1</ParentNoteId>
  <CompanyInfoId>2</CompanyInfoId>
  <ProfileId>sample string 3</ProfileId>
  <Title>sample string 4</Title>
  <Content>sample string 5</Content>
  <LinkedFile>sample string 6</LinkedFile>
  <CreationDate />
  <NoteType>Info</NoteType>
  <Location>sample string 8</Location>
  <DurationInMinutes>9</DurationInMinutes>
  <ProfileName>sample string 10</ProfileName>
</NoteDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

identyfikator nowo dodanego obiektu

NoteDto
NameDescriptionTypeAdditional information
NoteId

integer

Required

ParentNoteId

integer

None.

CompanyInfoId

integer

Required

ProfileId

string

None.

Title

string

Required

Content

string

None.

LinkedFile

string

None.

CreationDate

date

None.

NoteType

NoteType

None.

Location

string

None.

DurationInMinutes

integer

None.

ProfileName

string

None.

Response Formats

application/json, text/json

Sample:
{
  "noteId": 1,
  "parentNoteId": 1,
  "companyInfoId": 2,
  "profileId": "sample string 3",
  "title": "sample string 4",
  "content": "sample string 5",
  "linkedFile": "sample string 6",
  "creationDate": "2024-05-18T05:52:37.0344468+00:00",
  "noteType": 0,
  "location": "sample string 8",
  "durationInMinutes": 9,
  "profileName": "sample string 10"
}

multipart/form-data

Sample:
{"noteId":1,"parentNoteId":1,"companyInfoId":2,"profileId":"sample string 3","title":"sample string 4","content":"sample string 5","linkedFile":"sample string 6","creationDate":"2024-05-18T05:52:37.0344468+00:00","noteType":0,"location":"sample string 8","durationInMinutes":9,"profileName":"sample string 10"}

application/xml, text/xml

Sample:
<NoteDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <NoteId>1</NoteId>
  <ParentNoteId>1</ParentNoteId>
  <CompanyInfoId>2</CompanyInfoId>
  <ProfileId>sample string 3</ProfileId>
  <Title>sample string 4</Title>
  <Content>sample string 5</Content>
  <LinkedFile>sample string 6</LinkedFile>
  <CreationDate />
  <NoteType>Info</NoteType>
  <Location>sample string 8</Location>
  <DurationInMinutes>9</DurationInMinutes>
  <ProfileName>sample string 10</ProfileName>
</NoteDto>