Reschedule or change a visit
maintenance.visit.update
POST/api/v1/households/{household_id}/commands/maintenance.visit.update
- Command
- Rigel runs it
- Applies offline
Sets only the fields given; null clears an optional one. Moving the time moves the calendar event. asset_ids and issue_ids, when given, replace the visit's links. Changing the times of a visit that is done or cancelled fails with visit_not_scheduled. ends_at before starts_at fails with invalid_range. To record that the work happened use maintenance.visit.complete.
Parameters#
| Field | Description |
|---|---|
household_idpathstringrequired | The household's ID. |
Idempotency-Keyheaderstringoptional | The command's ID. Reuse it when retrying the same command. |
Request body#
JSON, as application/json.
| Field | Description |
|---|---|
visit_idstringrequired | A visit ID, such as vst_01JC0000000000000000000000. |
contractor_idstring or nulloptional | Who is coming; null clears it. |
project_idstring or nulloptional | The project this visit is part of; null clears it. |
titlestringoptional | What the visit is for, such as Annual furnace service. |
starts_atstring (date-time)optional | The new arrival time or window start. ISO 8601 with a zone. |
ends_atstring (date-time) or nulloptional | The new window end; null clears it. |
summarystring or nulloptional | What was done. |
notesstring or nulloptional | Anything to remember. |
asset_idsarray of stringsoptional | Replaces the items the visit concerns. |
issue_idsarray of stringsoptional | Replaces the problems the visit looked at. |
Response#
200 The command was applied.
| Field | Description |
|---|---|
resultobjectrequired | What the command returned, such as the IDs it created. |
versionintegerrequired | The household version after the command. |
Errors#
Every error has the same envelope: error.code, error.message, error.details, error.recovery and error.request_id.
| Status | Code | When |
|---|---|---|
400 | validation_failed | A field is missing, misspelled or out of range. details.fields lists each problem. |
401 | unauthenticated | The request has no valid session. |
404 | contractor_not_found | A contractor that isn't there. |
404 | visit_not_found | A visit that isn't there. |
404 | not_found | The household doesn't exist, or you aren't a member of it. |
409 | visit_not_scheduled |
|
409 | invalid_range | Ending before it starts. |
409 | different_property | A new item at another property. |
409 | idempotency_key_reused | The Idempotency-Key was already used for a different command. |
Examples#
These are real. Each scenario is one of the command's test cases, run on a household when this site was built, and the response is what the API returned.
Reschedules
curl -X POST 'https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update' \
-H "Cookie: rigel_session=$RIGEL_SESSION" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA' \
-d '{
"visit_id": "vst_01JC00000000000000000000V1",
"starts_at": "2025-11-12T14:00:00Z",
"ends_at": "2025-11-12T15:00:00Z",
"notes": "Moved"
}'const response = await fetch("https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Idempotency-Key": "cmd_01JC4N0000AAAAAAAAAAAAAAAA",
Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
},
body: JSON.stringify({
visit_id: "vst_01JC00000000000000000000V1",
starts_at: "2025-11-12T14:00:00Z",
ends_at: "2025-11-12T15:00:00Z",
notes: "Moved",
}),
});
const data = await response.json();POST /api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Content-Type: application/json
Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA
{
"visit_id": "vst_01JC00000000000000000000V1",
"starts_at": "2025-11-12T14:00:00Z",
"ends_at": "2025-11-12T15:00:00Z",
"notes": "Moved"
}HTTP/1.1 200 OK
Content-Type: application/json
X-Request-Id: req_01K9D9S2R0PD395DGPZAY66PPR
{
"result": {},
"version": 1
}Null clears the window end
curl -X POST 'https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update' \
-H "Cookie: rigel_session=$RIGEL_SESSION" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA' \
-d '{
"visit_id": "vst_01JC00000000000000000000V1",
"ends_at": null
}'const response = await fetch("https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Idempotency-Key": "cmd_01JC4N0000AAAAAAAAAAAAAAAA",
Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
},
body: JSON.stringify({
visit_id: "vst_01JC00000000000000000000V1",
ends_at: null,
}),
});
const data = await response.json();POST /api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Content-Type: application/json
Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA
{
"visit_id": "vst_01JC00000000000000000000V1",
"ends_at": null
}HTTP/1.1 200 OK
Content-Type: application/json
X-Request-Id: req_01K9D9S2R06F62XV7SQWV7TSXR
{
"result": {},
"version": 1
}Asset and issue links are replaced
curl -X POST 'https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update' \
-H "Cookie: rigel_session=$RIGEL_SESSION" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA' \
-d '{
"visit_id": "vst_01JC00000000000000000000V1",
"asset_ids": [
"ast_01JC00000000000000000000A2"
],
"issue_ids": [
"iss_01JC00000000000000000000Q1",
"iss_01JC00000000000000000000Q2"
]
}'const response = await fetch("https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Idempotency-Key": "cmd_01JC4N0000AAAAAAAAAAAAAAAA",
Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
},
body: JSON.stringify({
visit_id: "vst_01JC00000000000000000000V1",
asset_ids: [
"ast_01JC00000000000000000000A2",
],
issue_ids: [
"iss_01JC00000000000000000000Q1",
"iss_01JC00000000000000000000Q2",
],
}),
});
const data = await response.json();POST /api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Content-Type: application/json
Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA
{
"visit_id": "vst_01JC00000000000000000000V1",
"asset_ids": [
"ast_01JC00000000000000000000A2"
],
"issue_ids": [
"iss_01JC00000000000000000000Q1",
"iss_01JC00000000000000000000Q2"
]
}HTTP/1.1 200 OK
Content-Type: application/json
X-Request-Id: req_01K9D9S2R04M98BSW1N53TXTXF
{
"result": {},
"version": 1
}An empty list removes every link
curl -X POST 'https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update' \
-H "Cookie: rigel_session=$RIGEL_SESSION" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA' \
-d '{
"visit_id": "vst_01JC00000000000000000000V1",
"asset_ids": []
}'const response = await fetch("https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Idempotency-Key": "cmd_01JC4N0000AAAAAAAAAAAAAAAA",
Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
},
body: JSON.stringify({
visit_id: "vst_01JC00000000000000000000V1",
asset_ids: [],
}),
});
const data = await response.json();POST /api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Content-Type: application/json
Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA
{
"visit_id": "vst_01JC00000000000000000000V1",
"asset_ids": []
}HTTP/1.1 200 OK
Content-Type: application/json
X-Request-Id: req_01K9D9S2R0S93BZ4460YZJ0J7B
{
"result": {},
"version": 1
}The contractor and project can be cleared
curl -X POST 'https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update' \
-H "Cookie: rigel_session=$RIGEL_SESSION" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA' \
-d '{
"visit_id": "vst_01JC00000000000000000000V1",
"contractor_id": null,
"project_id": null
}'const response = await fetch("https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Idempotency-Key": "cmd_01JC4N0000AAAAAAAAAAAAAAAA",
Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
},
body: JSON.stringify({
visit_id: "vst_01JC00000000000000000000V1",
contractor_id: null,
project_id: null,
}),
});
const data = await response.json();POST /api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Content-Type: application/json
Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA
{
"visit_id": "vst_01JC00000000000000000000V1",
"contractor_id": null,
"project_id": null
}HTTP/1.1 200 OK
Content-Type: application/json
X-Request-Id: req_01K9D9S2R06MXKBBXKMFTRZKNN
{
"result": {},
"version": 1
}A done visit's summary can still be corrected
curl -X POST 'https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update' \
-H "Cookie: rigel_session=$RIGEL_SESSION" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA' \
-d '{
"visit_id": "vst_01JC00000000000000000000V1",
"summary": "Replaced the igniter"
}'const response = await fetch("https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Idempotency-Key": "cmd_01JC4N0000AAAAAAAAAAAAAAAA",
Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
},
body: JSON.stringify({
visit_id: "vst_01JC00000000000000000000V1",
summary: "Replaced the igniter",
}),
});
const data = await response.json();POST /api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Content-Type: application/json
Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA
{
"visit_id": "vst_01JC00000000000000000000V1",
"summary": "Replaced the igniter"
}HTTP/1.1 200 OK
Content-Type: application/json
X-Request-Id: req_01K9D9S2R03BP5H5D7TWK2RN4N
{
"result": {},
"version": 1
}The time of a done visit can't change
curl -X POST 'https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update' \
-H "Cookie: rigel_session=$RIGEL_SESSION" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA' \
-d '{
"visit_id": "vst_01JC00000000000000000000V1",
"starts_at": "2025-11-10T14:00:00Z"
}'const response = await fetch("https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Idempotency-Key": "cmd_01JC4N0000AAAAAAAAAAAAAAAA",
Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
},
body: JSON.stringify({
visit_id: "vst_01JC00000000000000000000V1",
starts_at: "2025-11-10T14:00:00Z",
}),
});
const data = await response.json();POST /api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Content-Type: application/json
Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA
{
"visit_id": "vst_01JC00000000000000000000V1",
"starts_at": "2025-11-10T14:00:00Z"
}HTTP/1.1 409 Conflict
Content-Type: application/json
X-Request-Id: req_01K9D9S2R0D9QWB5S11CZT0E13
{
"error": {
"code": "visit_not_scheduled",
"message": "Only a visit that's still scheduled can change time. No changes were applied.",
"details": {
"status": "done"
},
"recovery": "Read the current state, then send a command that fits it.",
"request_id": "req_01K9D9S2R0D9QWB5S11CZT0E13"
}
}The time of a cancelled visit can't change
curl -X POST 'https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update' \
-H "Cookie: rigel_session=$RIGEL_SESSION" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA' \
-d '{
"visit_id": "vst_01JC00000000000000000000V1",
"ends_at": null
}'const response = await fetch("https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Idempotency-Key": "cmd_01JC4N0000AAAAAAAAAAAAAAAA",
Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
},
body: JSON.stringify({
visit_id: "vst_01JC00000000000000000000V1",
ends_at: null,
}),
});
const data = await response.json();POST /api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Content-Type: application/json
Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA
{
"visit_id": "vst_01JC00000000000000000000V1",
"ends_at": null
}HTTP/1.1 409 Conflict
Content-Type: application/json
X-Request-Id: req_01K9D9S2R0876XB8RB9FTECC58
{
"error": {
"code": "visit_not_scheduled",
"message": "Only a visit that's still scheduled can change time. No changes were applied.",
"details": {
"status": "cancelled"
},
"recovery": "Read the current state, then send a command that fits it.",
"request_id": "req_01K9D9S2R0876XB8RB9FTECC58"
}
}Ending before it starts
curl -X POST 'https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update' \
-H "Cookie: rigel_session=$RIGEL_SESSION" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA' \
-d '{
"visit_id": "vst_01JC00000000000000000000V1",
"ends_at": "2025-11-10T13:00:00Z"
}'const response = await fetch("https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Idempotency-Key": "cmd_01JC4N0000AAAAAAAAAAAAAAAA",
Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
},
body: JSON.stringify({
visit_id: "vst_01JC00000000000000000000V1",
ends_at: "2025-11-10T13:00:00Z",
}),
});
const data = await response.json();POST /api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Content-Type: application/json
Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA
{
"visit_id": "vst_01JC00000000000000000000V1",
"ends_at": "2025-11-10T13:00:00Z"
}HTTP/1.1 409 Conflict
Content-Type: application/json
X-Request-Id: req_01K9D9S2R0J6MCG521EGAMAJR9
{
"error": {
"code": "invalid_range",
"message": "The visit can't end before it starts. No changes were applied.",
"details": {},
"recovery": "Read the current state, then send a command that fits it.",
"request_id": "req_01K9D9S2R0J6MCG521EGAMAJR9"
}
}A new item at another property
curl -X POST 'https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update' \
-H "Cookie: rigel_session=$RIGEL_SESSION" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA' \
-d '{
"visit_id": "vst_01JC00000000000000000000V1",
"asset_ids": [
"ast_01JC00000000000000000000A2"
]
}'const response = await fetch("https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Idempotency-Key": "cmd_01JC4N0000AAAAAAAAAAAAAAAA",
Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
},
body: JSON.stringify({
visit_id: "vst_01JC00000000000000000000V1",
asset_ids: [
"ast_01JC00000000000000000000A2",
],
}),
});
const data = await response.json();POST /api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Content-Type: application/json
Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA
{
"visit_id": "vst_01JC00000000000000000000V1",
"asset_ids": [
"ast_01JC00000000000000000000A2"
]
}HTTP/1.1 409 Conflict
Content-Type: application/json
X-Request-Id: req_01K9D9S2R0TEQFEZ92MW8C95JY
{
"error": {
"code": "different_property",
"message": "That item is at a different property. No changes were applied.",
"details": {
"property_id": "prp_01JC00000000000000000000P2"
},
"recovery": "Read the current state, then send a command that fits it.",
"request_id": "req_01K9D9S2R0TEQFEZ92MW8C95JY"
}
}A contractor that isn't there
curl -X POST 'https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update' \
-H "Cookie: rigel_session=$RIGEL_SESSION" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA' \
-d '{
"visit_id": "vst_01JC00000000000000000000V1",
"contractor_id": "ctr_01JC00000000000000000000K2"
}'const response = await fetch("https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Idempotency-Key": "cmd_01JC4N0000AAAAAAAAAAAAAAAA",
Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
},
body: JSON.stringify({
visit_id: "vst_01JC00000000000000000000V1",
contractor_id: "ctr_01JC00000000000000000000K2",
}),
});
const data = await response.json();POST /api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Content-Type: application/json
Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA
{
"visit_id": "vst_01JC00000000000000000000V1",
"contractor_id": "ctr_01JC00000000000000000000K2"
}HTTP/1.1 404 Not Found
Content-Type: application/json
X-Request-Id: req_01K9D9S2R0JYC0FRTBDDBS3FF4
{
"error": {
"code": "contractor_not_found",
"message": "That contractor isn't there any more. No changes were applied.",
"details": {
"contractor_id": "ctr_01JC00000000000000000000K2"
},
"recovery": "Read the current state, then send a command that fits it.",
"request_id": "req_01K9D9S2R0JYC0FRTBDDBS3FF4"
}
}A visit that isn't there
curl -X POST 'https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update' \
-H "Cookie: rigel_session=$RIGEL_SESSION" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA' \
-d '{
"visit_id": "vst_01JC00000000000000000000V1",
"title": "x"
}'const response = await fetch("https://rigel.house/api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Idempotency-Key": "cmd_01JC4N0000AAAAAAAAAAAAAAAA",
Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
},
body: JSON.stringify({
visit_id: "vst_01JC00000000000000000000V1",
title: "x",
}),
});
const data = await response.json();POST /api/v1/households/hh_01K9BKKP003AHRZ6DMV29GQY5C/commands/maintenance.visit.update HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Content-Type: application/json
Idempotency-Key: cmd_01JC4N0000AAAAAAAAAAAAAAAA
{
"visit_id": "vst_01JC00000000000000000000V1",
"title": "x"
}HTTP/1.1 404 Not Found
Content-Type: application/json
X-Request-Id: req_01K9D9S2R0KN18ZNHKTVKPDJSF
{
"error": {
"code": "visit_not_found",
"message": "That visit isn't there any more. No changes were applied.",
"details": {
"visit_id": "vst_01JC00000000000000000000V1"
},
"recovery": "Read the current state, then send a command that fits it.",
"request_id": "req_01K9D9S2R0KN18ZNHKTVKPDJSF"
}
}Move a visit
The calendar event moves with it.
curl -X POST 'https://rigel.house/api/v1/households/hh_01M6V9CS6GGVFCY7NAS8ZTQV95/commands/maintenance.visit.update' \
-H "Cookie: rigel_session=$RIGEL_SESSION" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: cmd_01M6V9CSZ9EA65BWNSJ8ARKYJD' \
-d '{
"visit_id": "vst_01M6V9CSZ6JREAG7RJGS2CZF57",
"starts_at": "2026-11-13T09:00:00-06:00",
"ends_at": "2026-11-13T11:00:00-06:00"
}'const response = await fetch("https://rigel.house/api/v1/households/hh_01M6V9CS6GGVFCY7NAS8ZTQV95/commands/maintenance.visit.update", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Idempotency-Key": "cmd_01M6V9CSZ9EA65BWNSJ8ARKYJD",
Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
},
body: JSON.stringify({
visit_id: "vst_01M6V9CSZ6JREAG7RJGS2CZF57",
starts_at: "2026-11-13T09:00:00-06:00",
ends_at: "2026-11-13T11:00:00-06:00",
}),
});
const data = await response.json();POST /api/v1/households/hh_01M6V9CS6GGVFCY7NAS8ZTQV95/commands/maintenance.visit.update HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Content-Type: application/json
Idempotency-Key: cmd_01M6V9CSZ9EA65BWNSJ8ARKYJD
{
"visit_id": "vst_01M6V9CSZ6JREAG7RJGS2CZF57",
"starts_at": "2026-11-13T09:00:00-06:00",
"ends_at": "2026-11-13T11:00:00-06:00"
}HTTP/1.1 200 OK
Content-Type: application/json
X-Request-Id: req_01M6V9CSZ98PT74NH9YWTF42N0
{
"result": {},
"version": 220
}For Rigel#
Rigel's tool for this command is maintenance_visit_update. Rigel runs this on its own, then says what it did. The agent guide has the rest.