This is a developer preview of Kubbos API. It's in beta, so it's subject to changes. If you need any of the "Coming soon" API services documented as soon as possible. Contact Us!

#activityGrades.list
#activityGrades.findById
#activityGrades.create
#activityGrades.update
#activityGrades.delete

activityGrades.list

Request

{
/* — search criteria (optional) — */
"grade":"",     // <– Numeric
"description":""
}

Response

{
    "data":     {
        "result":         [
                        {
                "version": 0,
                "description": "Riesgo de ruptura",
                "grade": 1,
                "id": "16"
            },
                        {
                "version": 0,
                "description": "Relación inmejorable",
                "grade": 10,
                "id": "15"
            },
                        {
                "version": 1,
                "description": "Oportunidad",
                "grade": 5,
                "id": "1"
            }
        ],
        "total": 3
    },
    "success": true
}

activityGrades.findById

activityGrades.findById

Request

{
"id": "16"
}

Response

{
    "data":     {
        "version": 0,
        "description": "Riesgo de ruptura",
        "grade": 1,
        "id": "16"
    },
    "success": true
}

activityGrades.create

Request

{
"grade": "1",
"description": "Riesgo de ruptura"
}

Response

{
    "data":     {
        "errors": [],
        "messages": [        {
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "id": "16",
    "success": true,
    "version": 0
}

activityGrades.update

Request

{
"grade": "1",
"description": "Riesgo alto de ruptura",
"id": "16",
"version": 0
}

Response

{
    "data":     {
        "errors": [],
        "messages": [        {
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "id": "16",
    "success": true,
    "version": 1
}

activityGrades.delete

Request

{
"id": "16",
"version": 1
}

Response

{
    "data":     {
        "errors": [],
        "messages": [        {
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "id": "16",
    "success": true,
    "version": 1
}
  • No labels