Update workspace details
curl --request PATCH \
--url https://api.luxxon.dev/api/v1/api/v1/workspaces/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Visuals",
"availabilityState": "ONLINE",
"coverageLat": 4.711,
"coverageLng": -74.07,
"coverageRadiusMeters": 500,
"deviceKind": "PHONE"
}
'import requests
url = "https://api.luxxon.dev/api/v1/api/v1/workspaces/{id}"
payload = {
"name": "Acme Visuals",
"availabilityState": "ONLINE",
"coverageLat": 4.711,
"coverageLng": -74.07,
"coverageRadiusMeters": 500,
"deviceKind": "PHONE"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Acme Visuals',
availabilityState: 'ONLINE',
coverageLat: 4.711,
coverageLng: -74.07,
coverageRadiusMeters: 500,
deviceKind: 'PHONE'
})
};
fetch('https://api.luxxon.dev/api/v1/api/v1/workspaces/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.luxxon.dev/api/v1/api/v1/workspaces/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Acme Visuals',
'availabilityState' => 'ONLINE',
'coverageLat' => 4.711,
'coverageLng' => -74.07,
'coverageRadiusMeters' => 500,
'deviceKind' => 'PHONE'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.luxxon.dev/api/v1/api/v1/workspaces/{id}"
payload := strings.NewReader("{\n \"name\": \"Acme Visuals\",\n \"availabilityState\": \"ONLINE\",\n \"coverageLat\": 4.711,\n \"coverageLng\": -74.07,\n \"coverageRadiusMeters\": 500,\n \"deviceKind\": \"PHONE\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.luxxon.dev/api/v1/api/v1/workspaces/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Visuals\",\n \"availabilityState\": \"ONLINE\",\n \"coverageLat\": 4.711,\n \"coverageLng\": -74.07,\n \"coverageRadiusMeters\": 500,\n \"deviceKind\": \"PHONE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.luxxon.dev/api/v1/api/v1/workspaces/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme Visuals\",\n \"availabilityState\": \"ONLINE\",\n \"coverageLat\": 4.711,\n \"coverageLng\": -74.07,\n \"coverageRadiusMeters\": 500,\n \"deviceKind\": \"PHONE\"\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"message": "Request successful",
"data": {
"id": "8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6",
"slug": "acme",
"name": "Acme Visuals",
"walletAddress": "0xAbC0000000000000000000000000000000000001",
"roles": [
"CONSUMER"
],
"availabilityState": "OFFLINE",
"coverageLat": 4.711,
"coverageLng": -74.07,
"coverageRadiusMeters": 500,
"deviceKind": "PHONE",
"lastSeenAt": null,
"createdAt": "2026-05-13T11:30:00.000Z",
"createdByWallet": "0xAbC0000000000000000000000000000000000001",
"deletedAt": null
},
"timestamp": "2026-05-13T12:00:00.000Z"
}{
"statusCode": 400,
"code": "INVALID_INPUT",
"message": "Invalid request payload",
"detail": "invalid_input:example",
"timestamp": "2026-05-13T12:00:00.000Z"
}{
"statusCode": 401,
"code": "NOT_AUTHENTICATED",
"message": "Session expired or missing",
"detail": "not_authenticated:example",
"timestamp": "2026-05-13T12:00:00.000Z"
}{
"statusCode": 403,
"code": "NOT_AUTHORIZED",
"message": "Not authorized for this operation",
"detail": "not_authorized:example",
"timestamp": "2026-05-13T12:00:00.000Z"
}{
"statusCode": 404,
"code": "NOT_FOUND",
"message": "Resource not found",
"detail": "not_found:example",
"timestamp": "2026-05-13T12:00:00.000Z"
}{
"statusCode": 409,
"code": "INVALID_STATE",
"message": "Operation not allowed in the current state",
"detail": "invalid_state:example",
"timestamp": "2026-05-13T12:00:00.000Z"
}Workspaces
Update workspace details
Partial update. name is editable by any caller bound to the workspace; supplier fields (availability, coverage, deviceKind) require the SUPPLIER role.
PATCH
/
api
/
v1
/
workspaces
/
{id}
Update workspace details
curl --request PATCH \
--url https://api.luxxon.dev/api/v1/api/v1/workspaces/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Visuals",
"availabilityState": "ONLINE",
"coverageLat": 4.711,
"coverageLng": -74.07,
"coverageRadiusMeters": 500,
"deviceKind": "PHONE"
}
'import requests
url = "https://api.luxxon.dev/api/v1/api/v1/workspaces/{id}"
payload = {
"name": "Acme Visuals",
"availabilityState": "ONLINE",
"coverageLat": 4.711,
"coverageLng": -74.07,
"coverageRadiusMeters": 500,
"deviceKind": "PHONE"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Acme Visuals',
availabilityState: 'ONLINE',
coverageLat: 4.711,
coverageLng: -74.07,
coverageRadiusMeters: 500,
deviceKind: 'PHONE'
})
};
fetch('https://api.luxxon.dev/api/v1/api/v1/workspaces/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.luxxon.dev/api/v1/api/v1/workspaces/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Acme Visuals',
'availabilityState' => 'ONLINE',
'coverageLat' => 4.711,
'coverageLng' => -74.07,
'coverageRadiusMeters' => 500,
'deviceKind' => 'PHONE'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.luxxon.dev/api/v1/api/v1/workspaces/{id}"
payload := strings.NewReader("{\n \"name\": \"Acme Visuals\",\n \"availabilityState\": \"ONLINE\",\n \"coverageLat\": 4.711,\n \"coverageLng\": -74.07,\n \"coverageRadiusMeters\": 500,\n \"deviceKind\": \"PHONE\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.luxxon.dev/api/v1/api/v1/workspaces/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Visuals\",\n \"availabilityState\": \"ONLINE\",\n \"coverageLat\": 4.711,\n \"coverageLng\": -74.07,\n \"coverageRadiusMeters\": 500,\n \"deviceKind\": \"PHONE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.luxxon.dev/api/v1/api/v1/workspaces/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme Visuals\",\n \"availabilityState\": \"ONLINE\",\n \"coverageLat\": 4.711,\n \"coverageLng\": -74.07,\n \"coverageRadiusMeters\": 500,\n \"deviceKind\": \"PHONE\"\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"message": "Request successful",
"data": {
"id": "8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6",
"slug": "acme",
"name": "Acme Visuals",
"walletAddress": "0xAbC0000000000000000000000000000000000001",
"roles": [
"CONSUMER"
],
"availabilityState": "OFFLINE",
"coverageLat": 4.711,
"coverageLng": -74.07,
"coverageRadiusMeters": 500,
"deviceKind": "PHONE",
"lastSeenAt": null,
"createdAt": "2026-05-13T11:30:00.000Z",
"createdByWallet": "0xAbC0000000000000000000000000000000000001",
"deletedAt": null
},
"timestamp": "2026-05-13T12:00:00.000Z"
}{
"statusCode": 400,
"code": "INVALID_INPUT",
"message": "Invalid request payload",
"detail": "invalid_input:example",
"timestamp": "2026-05-13T12:00:00.000Z"
}{
"statusCode": 401,
"code": "NOT_AUTHENTICATED",
"message": "Session expired or missing",
"detail": "not_authenticated:example",
"timestamp": "2026-05-13T12:00:00.000Z"
}{
"statusCode": 403,
"code": "NOT_AUTHORIZED",
"message": "Not authorized for this operation",
"detail": "not_authorized:example",
"timestamp": "2026-05-13T12:00:00.000Z"
}{
"statusCode": 404,
"code": "NOT_FOUND",
"message": "Resource not found",
"detail": "not_found:example",
"timestamp": "2026-05-13T12:00:00.000Z"
}{
"statusCode": 409,
"code": "INVALID_STATE",
"message": "Operation not allowed in the current state",
"detail": "invalid_state:example",
"timestamp": "2026-05-13T12:00:00.000Z"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Example:
"8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6"
Body
application/json
Human-readable workspace name. 1–80 chars; trimmed server-side.
Example:
"Acme Visuals"
Supplier flips between ONLINE (dispatcher will pick) and OFFLINE (invisible). BUSY is API-owned and not settable here.
Available options:
ONLINE, OFFLINE Example:
"ONLINE"
Example:
4.711
Example:
-74.07
Example:
500
Available options:
PHONE, LAPTOP, DRONE, PTZ, FIXED, OTHER Example:
"PHONE"
⌘I