POST api/fmk/Update/{user}

Update medicine card if new version from fmk with the given student ids and cprs and user id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
user

User db id

integer

Required

Body Parameters

Array of student ids and cprs

Collection of StudentCpr
NameDescriptionTypeAdditional information
Id

Student db id

integer

Required

Cpr

Student cpr number

string

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Cpr": "sample string 2"
  },
  {
    "Id": 1,
    "Cpr": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfStudentCpr xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <StudentCpr>
    <Id>1</Id>
    <Cpr>sample string 2</Cpr>
  </StudentCpr>
  <StudentCpr>
    <Id>1</Id>
    <Cpr>sample string 2</Cpr>
  </StudentCpr>
</ArrayOfStudentCpr>

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 'List`1'.

Response Information

Resource Description

Ok

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.