---
title: "Rename, order, activate, or archive a workspace reason"
method: PATCH
path: "/api/bookings/outcome-reasons/{id}"
tags: ["Bookings"]
---

# Rename, order, activate, or archive a workspace reason

`PATCH /api/bookings/outcome-reasons/{id}`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/bookings/outcome-reasons/{id}`
- Auth: one of:
  - API key in cookie `luca.session_token`
  - API key in header `x-api-key`
  - HTTP bearer

Renames a reason, reorders it, or archives it with `active: false`. Archiving only hides it from the picker. Outcomes already recorded against it keep it.

**API key scopes:** `bookings:write`. You also need an `Idempotency-Key` header.

## Path parameters

- `id` string, uuid, required

## Headers

- `Luca-API-Version` '1'

## Request body

- SalesReasonDefinitionUpdate
  - `label` string
  - `active` boolean
  - `displayOrder` integer

## Response `200`

ok

- SalesReasonDefinitionResponse
  - `reason` object, required
    - `id` string, uuid, required
    - `bookingTypeId` string, uuid, nullable, required
    - `kind` 'lost_sale' | 'cancelled_call' | 'no_show', required
    - `code` string, required
    - `label` string, required
    - `active` boolean, required
    - `displayOrder` integer, required

## Other responses

- `401`: unauthorized
- `404`: not found
- `429`: rate limited
- `500`: internal error
- `503`: service unavailable

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
