Bills
Updates bill metadata
Changed onIMPORTANT: This is a full-replace operation (PUT semantics). Every active metadata key omitted from the request body is cleared. To set or clear individual keys without disturbing the rest, use patch-bill-metadata instead. Null, empty, and whitespace-only values clear a single key. 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.
put/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 update 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