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!

#brands.list
#brands.findById
#brands.create
#brands.update
#brands.delete

brands.list

Request

{
/* — search criteria (optional) — */
"brandName":"",
"brandURL":"",
"brandEnabled":"",    // Boolean
"brandDefault":""     // Boolean
}

Response

{
    "data":     {
        "result": [        {
            "version": 0,
            "id": "526",
            "brandEnabled": "true",
            "brandDefault": "true",
            "brandName": "Techdrae",
            "brandURL": "www.techdrae.com"
        }],
        "total": 1
    },
    "success": true
}

brands.findById

brands.findById

Request

{"id": "526"}

Response

{
    "data":     {
        "version": 0,
        "id": "526",
        "brandEnabled": "true",
        "brandDefault": "true",
        "brandName": "Techdrae",
        "brandURL": "www.techdrae.com"
    },
    "success": true
}

brands.create

Request

{
"brandName": "Techdrae",
"brandURL": "www.techdrae.com",
"brandEnabled": "true",
"brandDefault": "true"
}

Response

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

brands.update

Request

{
"brandName": "Techdrae CR",
"brandURL": "www.techdrae.com",
"brandEnabled": "true",
"brandDefault": "true", 
"id": "526",
"version": 0
}

Response

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

brands.delete

Request

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

Response

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