# Add a housekeeping task for a room

`POST /lodging/desk/tasks` · Rivier · bookings

Add a housekeeping task for a room.

- Scope: bookings:write
- Mcp: rivier_frontdesk_task_create
- Graphql: Mutation.createHousekeepingTask
- Sdk: bookings.housekeeping.create
- Cli: bookings housekeeping create

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "propertyId": {
      "type": "string",
      "format": "uuid"
    },
    "unitId": {
      "type": "string",
      "format": "uuid"
    },
    "kind": {
      "type": "string",
      "enum": [
        "checkout_clean",
        "stayover",
        "inspection",
        "turndown",
        "deep_clean",
        "custom"
      ],
      "default": "custom"
    },
    "dueDate": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "priority": {
      "type": "integer",
      "minimum": 0,
      "maximum": 3,
      "default": 0
    },
    "assignedTo": {
      "type": "string",
      "maxLength": 120
    },
    "notes": {
      "type": "string",
      "maxLength": 500,
      "default": ""
    }
  },
  "required": [
    "propertyId",
    "unitId"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/lodging/desk/tasks' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "propertyId": "string",
  "unitId": "string"
}'
```
