Details of the request:
- URI: api/v8.6/ci/{id}?isGuId={isGuId}
- Type: GET
-
Required headings:
- Content-Type: application/json
- Authorization: TOKEN
The URI structure of the request is implemented as follows:
- If it’s by CI: api/v8.6/ci/IdCI?isGuId=False
- If by GuID: api/v8.6/ci/GuID?isGuId=True
Parameters:
Name | Data type | Obligatory | Description |
---|---|---|---|
Id | Text | Yes | ID of the CI or GuID to be queried |
IsGuId | Boolean | Yes | In case the Id that is sent is GuId the value will be “true”, if it corresponds to the Id of a CI then it will be “false” |
Answer:
In response, it will return a json object, with the following information:
{
"AcceptDate": null,
"AdditionalField": [
{
"Alias": "ADD_STR_1",
"Caption": "Prueba característica en 80",
"Id": 92,
"IdLookField": 0,
"Mandatory": false,
"Order": 0,
"Type": 1,
"Value": "Caracteristica en 80",
"ValueLookField": null,
"Visible": false
},
{
"Alias": "ADD_STR_2",
"Caption": "Home",
"Id": 213,
"IdLookField": 0,
"Mandatory": false,
"Order": 0,
"Type": 1,
"Value": "prueba additional home",
"ValueLookField": null,
"Visible": false
},
{
"Alias": "ADD_STR_3",
"Caption": "Aranda",
"Id": 217,
"IdLookField": 0,
"Mandatory": false,
"Order": 0,
"Type": 6,
"Value": null,
"ValueLookField": null,
"Visible": false
},
],
"Address": null,
"ApplicationName": null,
"AssetTag": null,
"AuthorId": 2017,
"BackgroundCurrentStatus": "255.255.255",
"BarCode": null,
"Brand": "Nueva marca prueba 2",
"BrandId": "71",
"Building": null,
"BuildingId": null,
"CategoryId": 9,
"CheckOutDate": null,
"CheckinDate": null,
"CiProfile": null,
"CiProfileId": null,
"CiTotal": 0,
"City": "Panama Prueba crear 6",
"CityId": null,
"Company": "Disc Guadalajara",
"CompanyId": null,
"CostCenter": null,
"CostCenterId": "5495",
"Country": "Mexico",
"CountryId": null,
"CurrentStatus": "Estado Prueba 2",
"CurrentStatusId": 718,
"Department": "Development",
"DepartmentId": null,
"DepartmentNumber": null,
"DepartmentNumberId": null,
"DepreciationMethod": null,
"Description": "Prueba catalogo crear centro costo id",
"Floor": null,
"FloorId": null,
"ForegroundCurrentStatus": "0.0.0",
"Foreign": false,
"GroupId": -1,
"GuId": "Guid_154_iyuhd_03052016_1652",
"Id": 5238,
"ImageFileName": null,
"Impact": null,
"LicenseNumber": null,
"Manufacturer": "Prueba Manufacturer",
"ManufacturerId": 929,
"MapFilename": null,
"Model": "GXP1200",
"ModelId": "12",
"Name": "AddCi_03052016_1652",
"Price": null,
"ProfileId": 0,
"ProgrammedDate": null,
"ProgrammedStatus": "Estado Programado Prueba",
"ProgrammedStatusId": 717,
"ProjectId": null,
"Provider": "Company Prueba 2",
"ProviderId": 929,
"RFID": null,
"ReponsibleDate": null,
"ResidualValue": null,
"ResponsibleId": null,
"Serial": null,
"Site": null,
"SiteId": null,
"Size": null,
"StateId": 718,
"Type": null,
"Unit": null,
"UnitId": 1,
"UsefulLife": null,
"UserIdModifier": null
}
Error messages:
Code | HTTP status | Error Message |
---|---|---|
400 | BadRequest | InvalidCiId |
404 | NotFound | NotFoundCiId |
500 | InternalServerError | FailureGetDetailCi |