Home
Generalidades Collapse menú
    Consulta de Casos

    Detalles de la petición

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

    • Tipo: GET

    • Encabezados requeridos:

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

    Parámetros:

    Nombre Tipo de dato Obligatorio Descripción
    Id Texto Si Id del caso a consultar
    itemType Número Si
    Tipo de caso a crear. Las opciones son:
    1. Incidente
    2. Problema
    3. Cambio
    4. Requerimiento de servicio
    userId Número Si Id del medio por el cual se registra el caso.
    Level Número No
    Nivel de detalle que se quiere consultar. Las opciones son:
    0. Bajo
    1. Medio
    2. Alto
    Si no se provee, por defecto retorna el detalle alto.


    Respuesta

    Como respuesta se obtiene un objeto json, con la siguiente información:

    {
        "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
    }
    

    Mensajes de error

    Código Estado HTTP Mensaje de error
    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