Skip to content
API
On this pageParameters
Endpoints

Preview a unit timezone change

Preview a timezone change for one Unit, by its id or urlKey: every future Tour, Code, open house and scheduled message it would move, before and after, under both policies. Changes nothing; pass the returned expectedVersion to units.set_timezone. Requires `units:write`.

GET /v1/units/preview_timezone_change

Parameters

NameInRequiredTypeDescription
unitIdOrKeyqueryYesstringThe Unit's id, or its urlKey (the kebab-case slug in its page address).
proposedTimeZonequeryYesstring—

Request examples

Set MYREMOTELY_BASE_URL to the environment you intend to call.

bash
curl --fail-with-body \
  --header "x-api-key: $MYREMOTELY_API_KEY" \
  "$MYREMOTELY_BASE_URL/v1/units/preview_timezone_change"

Responses

200 Success

application/json

FieldTypeRequiredDescription
statusstringYes—
unitIdstringYes—
addressstringYes—
expectedVersionintegerYes—
currentTimeZoneanyOfYes—
proposedTimeZonestringYes—
beforeUsesUtcbooleanYes—
itemsarrayYes—
json
{
  "status": "string",
  "unitId": "string",
  "address": "string",
  "expectedVersion": 0,
  "currentTimeZone": "string",
  "proposedTimeZone": "string",
  "beforeUsesUtc": false,
  "items": [
    {
      "key": "string",
      "kind": "string",
      "title": "string",
      "startAt": "string",
      "endAt": "string",
      "beforeLabel": "string",
      "keepInstantLabel": "string",
      "keepWallClockLabel": "string",
      "wallClockStart": "string",
      "wallClockEnd": "string",
      "sharedLockConflict": false
    }
  ]
}

400 The list limit is outside the supported range or is not an integer.

application/problem+json

FieldTypeRequiredDescription
typestringYesA stable documentation URI for this problem.
titlestringYesA short problem title.
detailstringYesA safe explanation of this occurrence.
codestringYesA stable machine-readable problem code.
requestIdstringYesThe request ID to include when contacting MyRemotely support.
statusnumberYesThe HTTP status code.
json
{
  "type": "https://app.myremotely.ai/en/docs/errors#invalid-request",
  "title": "Invalid request",
  "status": 400,
  "detail": "The limit must be an integer from 1 to 100.",
  "code": "invalid_request",
  "requestId": "request_demo_01"
}

401 The API key is missing, invalid, expired, or revoked.

application/problem+json

FieldTypeRequiredDescription
typestringYesA stable documentation URI for this problem.
titlestringYesA short problem title.
detailstringYesA safe explanation of this occurrence.
codestringYesA stable machine-readable problem code.
requestIdstringYesThe request ID to include when contacting MyRemotely support.
statusnumberYesThe HTTP status code.
json
{
  "type": "https://app.myremotely.ai/en/docs/errors#invalid-api-key",
  "title": "Unauthorized",
  "status": 401,
  "detail": "Provide a valid API key.",
  "code": "invalid_api_key",
  "requestId": "request_demo_01"
}

403 The API key does not have the units:write scope.

application/problem+json

FieldTypeRequiredDescription
typestringYesA stable documentation URI for this problem.
titlestringYesA short problem title.
detailstringYesA safe explanation of this occurrence.
codestringYesA stable machine-readable problem code.
requestIdstringYesThe request ID to include when contacting MyRemotely support.
statusnumberYesThe HTTP status code.
json
{
  "type": "https://app.myremotely.ai/en/docs/errors#missing-scope",
  "title": "Forbidden",
  "status": 403,
  "detail": "The units:write scope is required.",
  "code": "missing_scope",
  "requestId": "request_demo_01"
}

429 The API key request budget is exhausted.

application/problem+json

FieldTypeRequiredDescription
typestringYesA stable documentation URI for this problem.
titlestringYesA short problem title.
detailstringYesA safe explanation of this occurrence.
codestringYesA stable machine-readable problem code.
requestIdstringYesThe request ID to include when contacting MyRemotely support.
statusnumberYesThe HTTP status code.
json
{
  "type": "https://app.myremotely.ai/en/docs/errors#rate-limited",
  "title": "Too many requests",
  "status": 429,
  "detail": "Try the request again later.",
  "code": "rate_limited",
  "requestId": "request_demo_01"
}

500 MyRemotely could not complete the request.

application/problem+json

FieldTypeRequiredDescription
typestringYesA stable documentation URI for this problem.
titlestringYesA short problem title.
detailstringYesA safe explanation of this occurrence.
codestringYesA stable machine-readable problem code.
requestIdstringYesThe request ID to include when contacting MyRemotely support.
statusnumberYesThe HTTP status code.
json
{
  "type": "https://app.myremotely.ai/en/docs/errors#internal-error",
  "title": "Internal error",
  "status": 500,
  "detail": "The request could not be completed.",
  "code": "internal_error",
  "requestId": "request_demo_01"
}

Last updated Oct 3, 2026