POST api/assets
Request Information
URI Parameters
None.
Body Parameters
API.Infrastructure.Dto.Assets.AssetDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
Required |
|
| Description | string |
None. |
|
| AssetTypeId | globally unique identifier |
None. |
|
| Location | string |
None. |
|
| LocationId | string |
None. |
|
| ExternalReference | string |
None. |
|
| SerialNumber | string |
None. |
|
| AssetNumber | string |
None. |
|
| Notes | string |
None. |
|
| SiteId | globally unique identifier |
None. |
|
| Owner | string |
None. |
|
| Image | string |
None. |
|
| FlexFieldValues | Collection of API.Infrastructure.Dto.Assets.AssetDto+FlexFieldValue |
None. |
|
| HierarchicalLocationId | globally unique identifier |
None. |
|
| Barcode | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": "16b56731-3623-4fed-99de-b720e90368d0",
"name": "sample string 1",
"description": "sample string 2",
"assetTypeId": "afcd52c6-7f99-45de-ac2a-1c3dd367c80d",
"location": "sample string 4",
"locationId": "sample string 5",
"externalReference": "sample string 6",
"serialNumber": "sample string 7",
"assetNumber": "sample string 8",
"notes": "sample string 9",
"siteId": "ac89e19a-0286-458d-85c9-0d8b61fe0300",
"owner": "sample string 10",
"image": "sample string 11",
"flexFieldValues": [
{
"flexField": "sample string 1",
"value": "sample string 2"
},
{
"flexField": "sample string 1",
"value": "sample string 2"
}
],
"hierarchicalLocationId": "d239a256-2fc3-4d20-9092-c71e7e4535a9",
"barcode": "sample string 12"
}
text/html
Sample:
{"id":"16b56731-3623-4fed-99de-b720e90368d0","name":"sample string 1","description":"sample string 2","assetTypeId":"afcd52c6-7f99-45de-ac2a-1c3dd367c80d","location":"sample string 4","locationId":"sample string 5","externalReference":"sample string 6","serialNumber":"sample string 7","assetNumber":"sample string 8","notes":"sample string 9","siteId":"ac89e19a-0286-458d-85c9-0d8b61fe0300","owner":"sample string 10","image":"sample string 11","flexFieldValues":[{"flexField":"sample string 1","value":"sample string 2"},{"flexField":"sample string 1","value":"sample string 2"}],"hierarchicalLocationId":"d239a256-2fc3-4d20-9092-c71e7e4535a9","barcode":"sample string 12"}
Response Information
Resource Description
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.