upsertRepoCustomRecords
Create or update up to 500 records of a custom model in one write, all or none. match_on names a unique custom field; each row must give it a value. A row whose value a live record holds updates that record, as updateRepoCustomRecord would, and any other row creates a record, as createRepoCustomRecord would. Two rows can't hold the same value. data holds one { action, record } per row, in row order: action is "created" or "updated", and record is the record written. Sending the same rows again creates nothing.
POST
/repos/{repo_id}/branches/{branch}/custom-models/{model_api_name}/records/bulk-upsertPath parameters
Query parameters
Request body JSON required
Returns
400
InvalidMatchField | InvalidRequest | RequestBodyTooDeep
JSON
One of the following:
- InvalidMatchFieldEncoded
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
RecordWriteDenied | Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- RecordWriteDeniedEncoded
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
BranchNotFound | CustomModelNotFound | CustomRecordNotFound | RepoNotFound
JSON
One of the following:
- BranchNotFoundEncoded
- CustomModelNotFoundEncoded
- CustomRecordNotFoundEncoded
- RepoNotFoundEncoded
413
WriteTooLarge | RequestBodyTooLarge
JSON
One of the following:
- WriteTooLargeEncoded
- RequestBodyTooLargeEncoded
422
BulkWriteRefused | WriteRefused
JSON
One of the following:
- BulkWriteRefusedEncoded
- WriteRefusedEncoded
503
RepoBusy | SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded