Get By Code
GEThttps://domain/api/fm-mobile/v1/c-{clientId}/p-{projectId}/assets/{code}
Request Parameters
| Name | Description | Required | Type |
|---|---|---|---|
| clientId | Required | string | |
| projectId | Required | string | |
| code | asset code | Required | string |
Response
| Code | Description |
|---|---|
200 | Success. |
401 | Unauthorized. |
404 | Not Found. |
500 | Error From Server. |
Response Model
| Name | Description | Type |
|---|---|---|
| Code | string | |
| Name | string | |
| Description | string | |
| ProjectId | string | |
| Price | number | |
| Product | object | |
| System | object | |
| ProjectIoTDevice | object | |
| Space | object | |
| ProductQuantity | object | |
| Partner | object | |
| InitialDate | Date | |
| DepreciationEndDate | Date | |
| LiquidationAction | object |
Example Usage
- JavaScript
- .Net
function helloWorld() {
console.log("Hello, world!");
}
def hello_world():
print 'Hello, world!'
Example Success Response
[
{
"id": 133024,
"name": "Mumbai"
},
...
]
Example Error Response
{
"error'": "Unauthorized. You shouldn't be here."
}