POST Asset/Save
Saves a specified Asset.
Request Information
URI Parameters
None.
Body Parameters
The Asset.
AssetName | Type | Additional information | Description |
---|---|---|---|
ID | integer |
None. |
|
Description | string |
Required String length: inclusive between 0 and 500 |
|
Category | Asset Category |
None. |
|
Location | Asset Location |
None. |
|
DatePurchased | date |
None. |
|
SerialNumber | string |
String length: inclusive between 0 and 100 |
|
BoughtFrom | string |
String length: inclusive between 0 and 100 |
|
PurchasePrice | nullable decimal |
None. |
|
CurrentValue | nullable decimal |
None. |
|
ReplacementValue | nullable decimal |
None. |
|
TextField1 | string |
None. |
|
TextField2 | string |
None. |
|
TextField3 | string |
None. |
|
NumericField1 | nullable decimal |
None. |
|
NumericField2 | nullable decimal |
None. |
|
NumericField3 | nullable decimal |
None. |
|
YesNoField1 | bool |
None. |
|
YesNoField2 | bool |
None. |
|
YesNoField3 | bool |
None. |
|
DateField1 | nullable date |
None. |
|
DateField2 | nullable date |
None. |
|
DateField3 | nullable date |
None. |
Request Formats
application/json, text/json
Sample:
{ "Description": "sample string 1", "Category": { "Description": "sample string 1", "ID": 2, "Modified": "2024-11-15", "Created": "2024-11-15" }, "Location": { "ID": 1, "Description": "sample string 2" }, "DatePurchased": "2024-11-15", "SerialNumber": "sample string 3", "BoughtFrom": "sample string 4", "PurchasePrice": 1.0, "CurrentValue": 1.0, "ReplacementValue": 1.0, "TextField1": "sample string 5", "TextField2": "sample string 6", "TextField3": "sample string 7", "NumericField1": 1.0, "NumericField2": 1.0, "NumericField3": 1.0, "YesNoField1": true, "YesNoField2": true, "YesNoField3": true, "DateField1": "2024-11-15", "DateField2": "2024-11-15", "DateField3": "2024-11-15", "ID": 11 }
Response Information
Resource Description
AssetName | Type | Additional information | Description |
---|---|---|---|
ID | integer |
None. |
|
Description | string |
Required String length: inclusive between 0 and 500 |
|
Category | Asset Category |
None. |
|
Location | Asset Location |
None. |
|
DatePurchased | date |
None. |
|
SerialNumber | string |
String length: inclusive between 0 and 100 |
|
BoughtFrom | string |
String length: inclusive between 0 and 100 |
|
PurchasePrice | nullable decimal |
None. |
|
CurrentValue | nullable decimal |
None. |
|
ReplacementValue | nullable decimal |
None. |
|
TextField1 | string |
None. |
|
TextField2 | string |
None. |
|
TextField3 | string |
None. |
|
NumericField1 | nullable decimal |
None. |
|
NumericField2 | nullable decimal |
None. |
|
NumericField3 | nullable decimal |
None. |
|
YesNoField1 | bool |
None. |
|
YesNoField2 | bool |
None. |
|
YesNoField3 | bool |
None. |
|
DateField1 | nullable date |
None. |
|
DateField2 | nullable date |
None. |
|
DateField3 | nullable date |
None. |
Response Formats
application/json, text/json
Sample:
{ "Description": "sample string 1", "Category": { "Description": "sample string 1", "ID": 2, "Modified": "2024-11-15", "Created": "2024-11-15" }, "Location": { "ID": 1, "Description": "sample string 2" }, "DatePurchased": "2024-11-15", "SerialNumber": "sample string 3", "BoughtFrom": "sample string 4", "PurchasePrice": 1.0, "CurrentValue": 1.0, "ReplacementValue": 1.0, "TextField1": "sample string 5", "TextField2": "sample string 6", "TextField3": "sample string 7", "NumericField1": 1.0, "NumericField2": 1.0, "NumericField3": 1.0, "YesNoField1": true, "YesNoField2": true, "YesNoField3": true, "DateField1": "2024-11-15", "DateField2": "2024-11-15", "DateField3": "2024-11-15", "ID": 11 }