website logo
⌘K
πŸ–οΈIntroduction to hyper cloud
🍎Getting Started
😍What's New
Blueberry Migration Guide
πŸ’ͺWorkshops
Deno Workshops
NodeJS Workshops
⚑Quickstarts
NodeJS Quickstarts
πŸ”ŒAPI Reference (hyper cloud)
🍎Basics
⚑hyper connect
πŸ”‘JWT Auth
πŸ’ΎData API
🏎️Cache API
πŸ”ŽSearch API
πŸ—„οΈStorage API
πŸ€“Queue API
πŸ”“Sign In
⚑Applications
βš™οΈSettings
πŸ”‘App Keys
πŸ‘₯Teams
Switching Between Accounts
Application Services
Application Service Instances
Adding a Queue Service
Adding a Search Service
Subscriptions
πŸ€‘Upgrade
πŸ“•Terminology
Parameters
πŸ’³Billing
Payment and Pricing Terms
πŸ’ΌLegal
Terms of Service
Acceptable Use Policy
Privacy Policy
πŸ•ΆοΈHyper Vision
Docs powered byΒ archbeeΒ 
12min

Bulk Documents

POST /{appname}/data/{servicename}/_bulk

Allows the client to submit an array of JSON documents to hyper for batch loading into the data service. A bulk update can handle inserting, updating, and deleting documents. Use _deleted: true flag to delete a record. It is also important to note that you need to supply an _id for each document.

Parameters

Path

  • appname - string - path parameters
  • servicename - value requirements
    • See parametersο»Ώ

Request Body

The request body takes an array of objects in JSON.

Bulk Request Payload Limit

When submitting bulk documents, the request payload size limit isΒ 10MB.

JSON
|

Examples (Bulk Insert/Update)

Don't forget!

Be sure to set your HYPER environment variable with the value of your hyper app's connection string.

Node.js
Curl
|

Example (Bulk Delete)

Node.js
Curl
|

Responses

Status Code

Description

Example Response

200

Successfully returned results for your query

{"ok": true, "results": [{"id": '1', "ok": true}, ....]}

500

Error occurred trying to run your query

{"ok": false, "msg": ""}

Need Help?Need Help?

You can always reach out to our support team for any additional assistance on slack.

Updated 24 Mar 2022
Did this page help you?
Yes
No
UP NEXT
Query Selectors
Docs powered byΒ archbeeΒ 
TABLE OF CONTENTS
POST /{appname}/data/{servicename}/_bulk
Parameters
Path
Request Body
Bulk Request Payload Limit
Examples (Bulk Insert/Update)
Don't forget!
Example (Bulk Delete)
Responses
Need Help?Need Help?