Unset/clear a field (set to null)
Add or update a child object (array field) If the child array does not exist, it is created. If the child object has primary keys, provide them for update; otherwise, it will be added.
Update a child object (array field) by primary key(s) or href. This is semantically clearer than addChild for updating existing children. Under the hood, it pushes to the child array (like addChild). Example: .updateChild('assetmeter', { metername: 'HOURS', lastreading: 99 })
Remove a child object by key(s) (adds _action: 'Delete' to the child object) Example: .removeChild('assetmeter', { metername: 'TEMP-F' })
Set the patch type for update (MERGE or UPDATE)
Build the final payload object
Adds an attachment (doclink) using the single-call approach. This is a specialized version of addChild specifically for attachments.
The attachment data (including documentdata if using Base64)
Convenience method to add a file attachment using Base64 data.
Name of the file (e.g., 'report.pdf')
Base64 encoded file content
Optionaldescription: stringOptional description
Optional document type (defaults to 'Attachments')
Fluent builder for constructing update/create payloads for Maximo resources. Supports field setting, unsetting, child add/update/delete, patch type, etc.