Skip to main content
POST
/
v2
/
admin
/
button-layouts
Create Button Layout
curl --request POST \
  --url https://api.voxo.co/v2/admin/button-layouts/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tenantId": 123,
  "name": "<string>",
  "startKey": 123,
  "endKey": 123
}
'
{
  "id": 123,
  "tenantId": 123,
  "name": "<string>",
  "startKey": 123,
  "endKey": 123,
  "config": [
    {
      "key": 123,
      "type": "<string>",
      "name": "<string>",
      "number": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
tenantId
number
required

Tenant ID this button layout belongs to

name
string
required

Button layout name

Required string length: 1 - 255
startKey
integer
required

First button key in the layout range

Required range: x <= 9007199254740991
endKey
integer
required

Last button key in the layout range

Required range: x <= 9007199254740991
config
object[]

Button configuration entries (one per key)

Response

Created button layout

id
number
required

Button Layout ID

tenantId
number
required

Tenant ID

name
string
required

Button layout name

Required string length: 1 - 255
startKey
integer
required

First button key

Required range: x <= 9007199254740991
endKey
integer
required

Last button key

Required range: x <= 9007199254740991
config
object[]
required

Button configuration entries