POST api/Account/saveasset
Request Information
URI Parameters
None.
Body Parameters
AssetViewModels| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | globally unique identifier |
None. |
|
| AssetNo | integer |
None. |
|
| Name | string |
Required String length: inclusive between 0 and 100 |
|
| WarrentlyTill | date |
None. |
|
| CompanyName | string |
String length: inclusive between 0 and 200 |
|
| PhotoUrl | string |
String length: inclusive between 0 and 200 |
|
| InvoiceUrl | string |
String length: inclusive between 0 and 200 |
|
| SerialOrModelNo | string |
String length: inclusive between 0 and 200 |
|
| CreatedBy | string |
String length: inclusive between 0 and 128 |
|
| CreatedOn | date |
None. |
|
| ModifiedBy | string |
String length: inclusive between 0 and 128 |
|
| ModifiedOn | date |
None. |
|
| Description | string |
Required |
|
| PhotoUrlBase64 | string |
None. |
|
| InvoiceUrlBase64 | string |
None. |
|
| AssetGroupID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": "90306d73-c856-4220-98d2-d390dd0da07a",
"AssetNo": 1,
"Name": "sample string 2",
"WarrentlyTill": "2026-04-18T18:32:34.7715036+05:30",
"CompanyName": "sample string 3",
"PhotoUrl": "sample string 4",
"InvoiceUrl": "sample string 5",
"SerialOrModelNo": "sample string 6",
"CreatedBy": "sample string 7",
"CreatedOn": "2026-04-18T18:32:34.7715036+05:30",
"ModifiedBy": "sample string 9",
"ModifiedOn": "2026-04-18T18:32:34.7715036+05:30",
"Description": "sample string 10",
"PhotoUrlBase64": "sample string 11",
"InvoiceUrlBase64": "sample string 12",
"AssetGroupID": "47305ff8-13b8-401a-b00f-2ce307bca34d"
}
application/xml, text/xml
Sample:
<AssetViewModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yuso.ERP.API.Models"> <AssetGroupID>47305ff8-13b8-401a-b00f-2ce307bca34d</AssetGroupID> <AssetNo>1</AssetNo> <CompanyName>sample string 3</CompanyName> <CreatedBy>sample string 7</CreatedBy> <CreatedOn>2026-04-18T18:32:34.7715036+05:30</CreatedOn> <Description>sample string 10</Description> <ID>90306d73-c856-4220-98d2-d390dd0da07a</ID> <InvoiceUrl>sample string 5</InvoiceUrl> <InvoiceUrlBase64>sample string 12</InvoiceUrlBase64> <ModifiedBy>sample string 9</ModifiedBy> <ModifiedOn>2026-04-18T18:32:34.7715036+05:30</ModifiedOn> <Name>sample string 2</Name> <PhotoUrl>sample string 4</PhotoUrl> <PhotoUrlBase64>sample string 11</PhotoUrlBase64> <SerialOrModelNo>sample string 6</SerialOrModelNo> <WarrentlyTill>2026-04-18T18:32:34.7715036+05:30</WarrentlyTill> </AssetViewModels>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.