POST api/Media

Request Information

URI Parameters

None.

Body Parameters

Medium
NameDescriptionTypeAdditional information
MediaId

integer

None.

AddedBy

string

None.

Comment

string

None.

AddedDate

date

None.

Data

string

None.

FileName

string

None.

ConsultationLabId

integer

None.

HospitalDayLabId

integer

None.

PetDataId

integer

None.

PracticeId

integer

None.

Key

globally unique identifier

None.

InfoSheetId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "MediaId": 1,
  "AddedBy": "sample string 2",
  "Comment": "sample string 3",
  "AddedDate": "2024-12-21T06:09:03.2691591+00:00",
  "Data": "sample string 5",
  "FileName": "sample string 6",
  "ConsultationLabId": 1,
  "HospitalDayLabId": 1,
  "PetDataId": 1,
  "PracticeId": 7,
  "Key": "f3d49dc6-9a03-4afa-8536-b835f27517de",
  "InfoSheetId": 1
}

text/html

Sample:
{"MediaId":1,"AddedBy":"sample string 2","Comment":"sample string 3","AddedDate":"2024-12-21T06:09:03.2691591+00:00","Data":"sample string 5","FileName":"sample string 6","ConsultationLabId":1,"HospitalDayLabId":1,"PetDataId":1,"PracticeId":7,"Key":"f3d49dc6-9a03-4afa-8536-b835f27517de","InfoSheetId":1}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'FleetAPI.DataModel.AspNetUser' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'FleetAPI.DataModel.AspNetUser' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

Medium
NameDescriptionTypeAdditional information
MediaId

integer

None.

AddedBy

string

None.

Comment

string

None.

AddedDate

date

None.

Data

string

None.

FileName

string

None.

ConsultationLabId

integer

None.

HospitalDayLabId

integer

None.

PetDataId

integer

None.

PracticeId

integer

None.

Key

globally unique identifier

None.

InfoSheetId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "MediaId": 1,
  "AddedBy": "sample string 2",
  "Comment": "sample string 3",
  "AddedDate": "2024-12-21T06:09:03.3785143+00:00",
  "Data": "sample string 5",
  "FileName": "sample string 6",
  "ConsultationLabId": 1,
  "HospitalDayLabId": 1,
  "PetDataId": 1,
  "PracticeId": 7,
  "Key": "484799af-293a-490b-a16f-86bb78c122e7",
  "InfoSheetId": 1
}

text/html

Sample:
{"MediaId":1,"AddedBy":"sample string 2","Comment":"sample string 3","AddedDate":"2024-12-21T06:09:03.3785143+00:00","Data":"sample string 5","FileName":"sample string 6","ConsultationLabId":1,"HospitalDayLabId":1,"PetDataId":1,"PracticeId":7,"Key":"484799af-293a-490b-a16f-86bb78c122e7","InfoSheetId":1}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'FleetAPI.DataModel.AspNetUser' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'FleetAPI.DataModel.AspNetUser' contains cycles and cannot be serialized if reference tracking is disabled.