Skip to main content

Insert or Upsert Records

POST 

/v1/rdb/rest/:table

Insert single or multiple records, supports upsert operation

Request

Path Parameters

    table stringrequired

    Table name

Query Parameters

    select string

    Return fields, supports * or specified field list

Header Parameters

    Prefer string

    Preference setting, such as return=representation returns inserted data; upsert(update or delete data)resolution=merge-duplicates indicates merge strategy when data conflicts, resolution=ignore-duplicates indicates ignore strategy when data conflicts

Body

required
    oneOf

    object

Responses

Insert successful

Response Headers
  • Content-Range string

    Number of affected rows

  • Preference-Applied string

    Applied preference settings

Schema
    oneOf
  • Array [
  • object

  • ]
Loading...