ProDVX PuKK REST API Specification (1.1.0)

Download OpenAPI specification:

ProDVX Support: support@prodvx.com License: ProDVX Proprietary License

NOTICE:
Starting from version 1.1.0 the PuKK REST API requires an Authentication token. Please generate one using the Token Generator with the default device key ProdvxPukk. You can set a new deviceKey using the /setDeviceKey endpoint

Static Led

Controls leds without movement

Turn Off

Turns the leds off

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": "OK",
  • "message": "Leds set to lrgb[100, 255, 255, 255]"
}

Single Color

Sets all the leds to a single color

Authorizations:
bearerAuth
Request Body schema: application/json

Static led values

required
object (LedStatic)

Responses

Request samples

Content type
application/json
{
  • "led_values": {
    }
}

Response samples

Content type
application/json
{
  • "status": "OK",
  • "message": "Leds set to lrgb[100, 255, 255, 255]"
}

Quadrant

Set the leds to custom quadrants

Authorizations:
bearerAuth
Request Body schema: application/json

Led object for quadrants

required
object (QuadrantRing)

Responses

Request samples

Content type
application/json
{
  • "led_values": {
    }
}

Response samples

Content type
application/json
{
  • "status": "OK",
  • "message": "Leds set to lrgb[100, 255, 255, 255]"
}

Individual control

Set leds individually

Authorizations:
bearerAuth
Request Body schema: application/json

Led object for Individual Control

required
object (IndividualLeds)

Responses

Request samples

Content type
application/json
{
  • "led_values": {
    }
}

Response samples

Content type
application/json
{
  • "status": "OK",
  • "message": "Leds set to lrgb[100, 255, 255, 255]"
}

Dynamic Led

Controls led with movement

Marquee

Spins the Led around using single LED

Authorizations:
bearerAuth
Request Body schema: application/json

Rotating led values

required
object (LedRotating)

Responses

Request samples

Content type
application/json
{
  • "led_values": {
    }
}

Response samples

Content type
application/json
{
  • "status": "OK",
  • "message": "Leds set to lrgb[100, 255, 255, 255]"
}

Breathe

Set Leds to breathe with a color

Authorizations:
bearerAuth
Request Body schema: application/json

Dynamic led values

required
object (LedDynamic)

Responses

Request samples

Content type
application/json
{
  • "led_values": {
    }
}

Response samples

Content type
application/json
{
  • "status": "OK",
  • "message": "Leds set to lrgb[100, 255, 255, 255]"
}

Clock

Set the leds to a ticking clock. The Clock starts on initial_color and move LED by LED (rotation_time_s / 12 for the amount of leds) to the end_color. The LED that is next to swap to end_color will have intermediate_color. This can be used to signify the current time. When the clock ends, the leds will stay on end_color.

Authorizations:
bearerAuth
Request Body schema: application/json

Clock values

required
object (Clock)

Responses

Request samples

Content type
application/json
{
  • "led_values": {
    }
}

Response samples

Content type
application/json
{
  • "status": "OK",
  • "message": "Leds set to lrgb[100, 255, 255, 255]"
}

Rainbow

This request makes a default rotating RGB rainbow.

Authorizations:
bearerAuth
Request Body schema: application/json

Rainbow values

required
object

Responses

Request samples

Content type
application/json
{
  • "led_values": {
    }
}

Response samples

Content type
application/json
{
  • "status": "OK",
  • "message": "Leds set to lrgb[100, 255, 255, 255]"
}

Update

Update the PuKK

OTA

Requests a OTA firmware update

Authorizations:
bearerAuth
query Parameters
override_url
string
Example: override_url=http://www.example.com/firmware.bin

URL for overriding the OTA update

Responses

Response samples

Content type
application/json
{
  • "status": "OK",
  • "message": "OTA update queued"
}

Auth

Manage the device key used to verify Authorization tokens

Set Device Key

Overrides the device key used to verify Authorization tokens. Requires a valid Authorization token for the CURRENT device key, since this changes the trust anchor for every other endpoint.

Authorizations:
bearerAuth
Request Body schema: application/json
required
device_key
required
string >= 5 characters

New device key to use for verifying Authorization tokens

Responses

Request samples

Content type
application/json
{
  • "device_key": "ProdvxPukk"
}

Response samples

Content type
application/json
{
  • "status": "OK",
  • "message": "Device key updated"
}