Bills
Patches bill metadata
Changed onPartial update. Keys omitted from the request body are left unchanged; send a key with a null, empty, or whitespace-only value to clear it. Prefer this over update-bill-metadata when setting or clearing individual keys, as it cannot disturb keys you did not name. Archived keys may only be cleared, never changed. Every key must name a definition assigned to bills: an unknown key, or one assigned only to another entity type, fails the request with a 400. Keys are never silently ignored. The write is atomic: if any key fails validation, nothing is written. Writes are rejected with a 400 while the bill has a pending approval request.
patch/bills/{bill_id}/metadata
Request
- Base URLhttps://api.rillet.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
bill_idstring required
UUID of the bill to patch metadata for.
Request body
Example request
{
"metadata": {
"metadata.source_invoice_id": "NS-INV-004821"
}
}Response
OK
Example response
{
"metadata": {
"metadata.source_invoice_id": "NS-INV-004821"
}
}Changes
- info
endpoint added
- info