---
title: Propose, Confirm, or Decline Schedule Dates
description: 'Store resident availability, confirm a site-visit / installation datetime, or decline proposed dates on a project phase'
sidebar:
  hidden: true
ai:
  exclude: true
seo:
  noindex: true
---

These endpoints let you update scheduling after project creation — either because the resident's preferred dates were not known yet, or because you are responding to a pro's counter-proposal from a `project-phase.schedule.proposed` webhook.

Calling these endpoints notifies the assigned pro (propose), records the confirmed datetime and fires the usual schedule webhooks (confirm), or flags the phase for manual scheduling (decline).

Whether Sibi also contacts the resident depends on your integration and on the program. Where resident notifications are suppressed, Sibi never emails or texts them and coordinating with the resident is yours to own — see [Resident notifications](/projects#resident-notifications).

## Typical flows

**Dates after create**

1. Create the project without `siteVisit` (or with incomplete availability).
2. Ask the resident for preferred windows in your own product.
3. Call [Propose](#propose-dates) with those dates.

**Respond to a pro counter-proposal**

1. Receive `project-phase.schedule.proposed` with up to three `proposedDates`. See [Project Phase Events](/events/projects).
2. Present those options to the resident.
3. Call [Confirm](#confirm-a-date) with the chosen datetime, **or** [Decline](#decline-proposed-dates) if none of the dates work — the pro and Sibi will coordinate a time with the resident directly.

You can still pass `siteVisit.residentProposedDates` on [Create Project](/projects/create-project) when you already have them — these endpoints cover the cases where you learn (or change) availability later.

---

## Propose dates

**Endpoint:** `https://api.sibipro.com/projects/v1/phases/{projectPhaseId}/schedule/propose`

**Authentication:** Bearer token with the `write:phase-schedule` scope (`Authorization: Bearer {accessToken}`)

Stores 1–3 preferred datetimes from the resident for a site visit or installation. Replaces any prior resident-proposed dates on that schedule, and clears an earlier [decline](#decline-proposed-dates) so the schedule can be negotiated again. Notifies the assigned pro; does not contact the resident.

Returns **409** if the schedule is already confirmed.

### Path parameters

#### `projectPhaseId`

`string` — **Required.** ID of the project phase (returned from [Create Project](/projects/create-project) or project webhooks).

### Request body

```json
{
  "scheduleType": "SITE_VISIT",
  "residentProposedDates": ["2026-06-15T14:00:00Z", "2026-06-16T15:00:00Z"],
  "notes": "I'm available in the evenings only"
}
```

#### `scheduleType`

`SITE_VISIT | INSTALLATION` — **Required.** Which schedule on the phase to update.

#### `residentProposedDates`

`string[]` — **Required.** 1–3 ISO 8601 datetimes the resident is available. Each must carry a `Z` suffix or a numeric UTC offset (for example `+00:00`).

#### `notes`

`string | undefined` — Optional free-form scheduling context (max 2000 characters). Surfaced to the assigned pro alongside the dates. Omitting it leaves any earlier notes in place.

### Response

**Status: 200 OK**

```json
{
  "projectPhaseId": "phase_abc123",
  "scheduleType": "SITE_VISIT",
  "residentProposedDates": ["2026-06-15T14:00:00Z", "2026-06-16T15:00:00Z"],
  "notes": "I'm available in the evenings only",
  "residentProposedAt": "2026-07-09T21:00:00.000Z"
}
```

`notes` is returned only when you sent it.

---

## Confirm a date

**Endpoint:** `https://api.sibipro.com/projects/v1/phases/{projectPhaseId}/schedule/confirm`

**Authentication:** Bearer token with the `write:phase-schedule` scope (`Authorization: Bearer {accessToken}`)

Confirms a site-visit or installation datetime on behalf of the resident.

- If the pro has counter-proposed dates (`schedule.proposed` webhook), `confirmedDate` **must** be one of those, otherwise the call returns **400** `BAD_INPUT`. Dates are compared as instants, so the same moment written with a different UTC offset matches.
- If there is no outstanding pro proposal, any agreed ISO datetime is accepted (for example, when you scheduled outside Sibi).
- Confirming the same date again is idempotent (**200**). Confirming a different date after confirmation returns **409**.

Whether Sibi then sends the resident a confirmation follows your [resident notification](/projects#resident-notifications) setup: where resident notifications are suppressed, the resident is not emailed or texted.

### Path parameters

#### `projectPhaseId`

`string` — **Required.** ID of the project phase.

### Request body

```json
{
  "scheduleType": "SITE_VISIT",
  "confirmedDate": "2026-06-15T14:00:00Z"
}
```

#### `scheduleType`

`SITE_VISIT | INSTALLATION` — **Required.**

#### `confirmedDate`

`string` — **Required.** ISO 8601 datetime to confirm, with a `Z` suffix or a numeric UTC offset (for example `+00:00`).

### Response

**Status: 200 OK**

```json
{
  "projectPhaseId": "phase_abc123",
  "scheduleType": "SITE_VISIT",
  "confirmedDate": "2026-06-15T14:00:00Z",
  "confirmedAt": "2026-07-09T21:05:00.000Z"
}
```

Fires `project-phase.site-visit.scheduled` or `project-phase.installation.scheduled` (see [Project Phase Events](/events/projects)).

---

## Decline proposed dates

**Endpoint:** `https://api.sibipro.com/projects/v1/phases/{projectPhaseId}/schedule/decline`

**Authentication:** Bearer token with the `write:phase-schedule` scope (`Authorization: Bearer {accessToken}`)

Declines all of the pro's proposed dates (from the `schedule.proposed` webhook) without counter-proposing. The phase is flagged as needing manual scheduling — the assigned pro and Sibi staff coordinate a time with the resident offline and confirm it in Sibi, which fires the usual scheduled webhooks.

- Requires an outstanding pro proposal; with nothing to decline the call returns **409**.
- Declining the same proposal again is idempotent (**200**).
- Does not contact the resident — tell them to expect a call from the pro.

### Path parameters

#### `projectPhaseId`

`string` — **Required.** ID of the project phase.

### Request body

```json
{
  "scheduleType": "SITE_VISIT",
  "notes": "Resident traveling until July"
}
```

#### `scheduleType`

`SITE_VISIT | INSTALLATION` — **Required.**

#### `notes`

`string | undefined` — Optional context for why the dates don't work (max 2000 characters). Surfaced to the assigned pro and Sibi staff.

### Response

**Status: 200 OK**

```json
{
  "projectPhaseId": "phase_abc123",
  "scheduleType": "SITE_VISIT",
  "declinedDates": ["2026-06-15T14:00:00Z", "2026-06-16T15:00:00Z"],
  "declinedAt": "2026-07-09T21:10:00.000Z"
}
```

---

### Error responses

All errors follow this shape:

```json
{
  "code": "FORBIDDEN",
  "message": "Not allowed to schedule this project phase"
}
```

| Status | `code`               | Condition                                                                                                                           |
| ------ | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| 400    | `VALIDATION_ERROR`   | Invalid body (wrong date count, a datetime without a UTC offset, unknown `scheduleType`, `notes` over 2000 characters). Includes a `details` array with field-level errors. |
| 400    | `BAD_INPUT`          | Confirm: `confirmedDate` is not one of the pro-proposed dates.                                                                      |
| 401    | `UNAUTHORIZED`       | Missing or invalid Bearer token.                                                                                                    |
| 403    | `INSUFFICIENT_SCOPE` | The token does not carry `write:phase-schedule`.                                                                                    |
| 403    | `FORBIDDEN`          | The authenticated user lacks permission to schedule this phase, including a `projectPhaseId` that does not exist.                   |
| 404    | `NOT_FOUND`          | The phase has been cancelled.                                                                                                       |
| 409    | `CONFLICT`           | The schedule is already confirmed (propose/decline, or confirm with a different date), or decline with no outstanding pro proposal. |
| 500    | `INTERNAL_ERROR`     | Unhandled server error.                                                                                                             |
| 503    | `AUTH_UNAVAILABLE`   | The authentication service is temporarily unavailable. Retry shortly.                                                               |
