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!

#activityTypes.list
#activityTypes.findById
#activityTypes.create
#activityTypes.update
#activityTypes.delete

activityTypes.list

Request


{
/* — search criteria (optional) — */
"activityDescriptionType":""
}

Response

{
    "data":     {
        "result":         [
                        {
                "version": 0,
                "readonly": true,
                "id": "929",
                "activityDescriptionType": "Salida de pedido"
            },
                        {
				.....
            },
                        {
                "version": 0,
                "readonly": false,
                "id": "1031",
                "activityDescriptionType": "Videoconferencia"
            }
        ],
        "total": 32
    },
    "success": true
}

activityTypes.findById

activityTypes.findById

Request

{
"id": "8"
}

Response

{
    "data":     {
        "version": 0,
        "readonly": false,
        "id": "8",
        "activityDescriptionType": "Visita comercial"
    },
    "success": true
}

activityTypes.create

Request

{
"activityDescriptionType": "Visita comercial"
}

Response

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

activityTypes.update

Request

{
"activityDescriptionType": "Visita comercial Empresas",
"id": "8",
"version": 0
}

Response

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

activityTypes.delete

Request

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

Response

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