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": "b29d32e4-049d-404f-93ec-cae512e57cfa",
"name": "sample string 1",
"description": "sample string 2",
"assetTypeId": "8b3f1a83-1410-46b5-92fa-d7af10bca4e2",
"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": "6647d903-617c-4314-addd-9504a18b810e",
"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": "cea8a752-8442-4464-b640-476929faf221",
"barcode": "sample string 12"
}
text/html
Sample:
{"id":"b29d32e4-049d-404f-93ec-cae512e57cfa","name":"sample string 1","description":"sample string 2","assetTypeId":"8b3f1a83-1410-46b5-92fa-d7af10bca4e2","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":"6647d903-617c-4314-addd-9504a18b810e","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":"cea8a752-8442-4464-b640-476929faf221","barcode":"sample string 12"}
Response Information
Resource Description
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.