POST api/AssetManagement/AssignAsset

Request Information

URI Parameters

None.

Body Parameters

Asset
NameDescriptionTypeAdditional information
id

integer

None.

assetID

globally unique identifier

None.

assetTypeID

globally unique identifier

None.

status

integer

None.

costValue

decimal number

None.

netBookValue

decimal number

None.

roomID

globally unique identifier

None.

roomAssignedBy

globally unique identifier

None.

addedBy

globally unique identifier

None.

dateAdded

date

None.

dateAssigned

date

None.

serialNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "assetID": "b4919ee7-7fa1-4a80-9a6a-e06101fb1ab1",
  "assetTypeID": "1ef396f8-48b6-4f34-861a-060e9e8cf8e8",
  "status": 1,
  "costValue": 1.0,
  "netBookValue": 1.0,
  "roomID": "a12c8eb2-18ac-4af3-bfe3-79350f0d8b62",
  "roomAssignedBy": "d136aede-3731-47aa-b37e-a7f77fefca5e",
  "addedBy": "2765d41c-f5a8-4a8a-afd6-9234eca75e3d",
  "dateAdded": "2026-10-09T21:12:16.2875756+02:00",
  "dateAssigned": "2026-10-09T21:12:16.2875756+02:00",
  "serialNumber": "sample string 3"
}

application/xml, text/xml

Sample:
<Asset xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HMS.Entities">
  <addedBy>2765d41c-f5a8-4a8a-afd6-9234eca75e3d</addedBy>
  <assetID>b4919ee7-7fa1-4a80-9a6a-e06101fb1ab1</assetID>
  <assetTypeID>1ef396f8-48b6-4f34-861a-060e9e8cf8e8</assetTypeID>
  <costValue>1</costValue>
  <dateAdded>2026-10-09T21:12:16.2875756+02:00</dateAdded>
  <dateAssigned>2026-10-09T21:12:16.2875756+02:00</dateAssigned>
  <id>1</id>
  <netBookValue>1</netBookValue>
  <roomAssignedBy>d136aede-3731-47aa-b37e-a7f77fefca5e</roomAssignedBy>
  <roomID>a12c8eb2-18ac-4af3-bfe3-79350f0d8b62</roomID>
  <serialNumber>sample string 3</serialNumber>
  <status>1</status>
</Asset>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.