EN
Español
English
Português
    Case Consultation

    Petition Details

    • URI: api/v8.6/item/{id}/{itemType}/{userId}?level={level}
    • Type: GET
    • Required headings:

    • content-type: application/json
    • Authorization: TOKEN

    Parameters:

    Name Data type Obligatory Description
    Id Text Yes Case ID to be consulted
    itemType Number Yes
    Type of case to be created. The options are:
    1. Incident
    2. Problem
    3. Change
    4. Service Requirement
    userId Number Yes Id of the means by which the case is registered.
    Level Number No
    Level of detail to be consulted. The options are:
    0. Low
    1. Medium
    2. High
    If it is not provided, the high detail returns by default.


    Answer

    As an answer, a json object is obtained, with the following information:

    {
        "Annulled": null,
        "AttentionDate": {
            "Expected": "/Date(1457966400000-0500)/",
            "Real": null
        },
        "AttentionDateExpected": null,
        "AttentionDateReal": null,
        "AuthorId": 3828,
        "AuthorName": "Jorge Osorio",
        "Building": null,
        "BuildingDate": {
            "Attention": null,
            "Solution": null
        },
        "CABDate": {
            "Attention": null,
            "Solution": null
        },
        "CaseType": 2,
        "CategoryHierarchy": null,
        "CategoryId": 2499,
        "CategoryName": "Registro Web",
        "CauseId": null,
        "CauseName": null,
        "CiId": 4,
        "CiName": "* Aranda 360",
        "City": null,
        "ClassifiedId": null,
        "ClassifiedIdByProject": null,
        "ClassifiedName": null,
        "ClassifiedType": null,
        "ClosedDate": null,
        "Commentary": null,
        "CompanyId": null,
        "CompanyName": null,
        "ComposedId": "PM-55134-2-8696",
        "Cost": {
            "Current": null,
            "Expected": null,
            "Real": null
        },
        "Country": null,
        "CustomerId": null,
        "CustomerName": null,
        "Department": null,
        "Description": "aa",
        "Effort": null,
        "EmailDate": null,
        "Floor": null,
        "GroupId": 13,
        "GroupName": "Aranda Colombia",
        "HasCurrentVoting": false,
        "HasKnownError": false,
        "HasSurvey": false,
        "HeadQuarter": null,
        "Id": 55134,
        "IdByProject": 8696,
        "ImpactId": -1,
        "ImpactName": "NONE",
        "ImplementationDate": {
            "Attention": null,
            "Solution": null
        },
        "InterfaceId": null,
        "IsClosed": false,
        "IsStateProvider": true,
        "KnownError": null,
        "PriorityId": 1,
        "PriorityName": "LOW",
        "ProcedureId": null,
        "ProcedureName": null,
        "Progress": 0,
        "ProjectId": 2,
        "ProjectName": "Soporte",
        "ProviderId": null,
        "ProviderName": null,
        "RFCDate": {
            "Attention": null,
            "Solution": null
        },
        "ReasonId": null,
        "ReasonName": null,
        "ReceptorId": 243,
        "RegistrationDate": "/Date(1457731263700-0500)/",
        "RegistryTypeId": 1,
        "RegistryTypeName": "Web",
        "ReviewDate": {
            "Attention": null,
            "Solution": null
        },
        "RoutingType": null,
        "ServiceId": 2420,
        "ServiceName": "CAMBIOS",
        "SlaId": 2456,
        "SlaName": "Cambios",
        "SolutionDate": {
            "Expected": null,
            "Real": null
        },
        "SolutionDateExpected": null,
        "SolutionDateReal": null,
        "SpecialistId": 243,
        "SpecialistName": "Jorge Osorio",
        "StageId": null,
        "StageName": null,
        "StateId": 199,
        "StateName": "Registrado",
        "TestingDate": {
            "Attention": null,
            "Solution": null
        },
        "Time": 0,
        "UrgencyId": -1,
        "UrgencyName": "NONE",
        "UserCanEdit": true,
        "VotingProcessId": null,
        "VotingProcessName": null
    }
    

    Error messages

    Code HTTP status Error Message
    400 BadRequest InvalidToken
    400 BadRequest InvalidUserId
    400 BadRequest InvalidItemId
    400 BadRequest InvalidItemType
    400 BadRequest InvalidUserId
    400 BadRequest InvalidLevelOfDetail
    403 Forbidden UnauthorizedIncidentView
    403 Forbidden UnauthorizedChangeView
    403 Forbidden UnauthorizedProblemView
    403 Forbidden UnauthorizedServiceCallView
    403 NotFound InvalidItemId
    500 InternalServerError FailureGetItem