最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

catalystbyzoho - How to perform bulk write operation for the file store? - Stack Overflow

programmeradmin0浏览0评论

I have a CSV file stored in the Catalyst Stratus bucket, and I need to perform a bulk write insert operation into a Catalyst Datastore using the data from this CSV file. I am looking for a way to achieve this through a REST API.

I have a CSV file stored in the Catalyst Stratus bucket, and I need to perform a bulk write insert operation into a Catalyst Datastore using the data from this CSV file. I am looking for a way to achieve this through a REST API.

Share Improve this question edited 2 days ago DarkBee 15.6k8 gold badges70 silver badges115 bronze badges asked Feb 6 at 6:48 johnwickjohnwick 585 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You can use the bulkWrite.createJob() method in the Node.js SDK to perform a bulk write insert operation using a file stored in Stratus. You only need to pass the object details into the bucket. You can refer to the official help documentation here.

Additionally, if you prefer to use the Catalyst REST API, you can pass the object details into the Bulk Write API as shown below.

POST https://api.catalyst.zoho.com/baas/v1/project/<project-id>/bulk/write HTTP/1.1
Content-Type: application/json
Authorization: Zoho-oauthtoken secret_oauth_access_token

{
  "table_identifier": "table_Name",
  "object_details": {
    "bucket_name": "bucket_Name",
    "object_key": "object_path"
  }
}
发布评论

评论列表(0)

  1. 暂无评论