Records

Update multiple records

POST
/api/records/batch/update

Updates several records at once, matched by search_key (default record_key).

Authorization

bearerAuth
AuthorizationBearer <token>

Access token from POST /oauth2/token (valid for 300 seconds).

In: header

Request Body

application/json

search_key?string

Field used to match the records to update.

Default"record_key"
country*string
records*array<>

Response Body

application/json

curl -X POST "https://example.com/api/records/batch/update" \  -H "Content-Type: application/json" \  -d '{    "search_key": "record_key",    "country": "se",    "records": [      {        "record_key": "d1c2e12cfeababc8b95daf6902e210b1",        "key10": "Shipped"      }    ]  }'
[  {    "record_key": "string",    "key": "string",    "body": "string",    "precommit_body": "string",    "profile_key": "string",    "parent_key": "string",    "range_key": 0,    "range_key1": 0,    "range_key2": 0,    "range_key3": 0,    "range_key4": 0,    "range_key5": 0,    "range_key6": 0,    "range_key7": 0,    "range_key8": 0,    "range_key9": 0,    "range_key10": 0,    "service_key1": "string",    "service_key2": "string",    "service_key3": "string",    "service_key4": "string",    "service_key5": "string",    "key1": "string",    "key2": "string",    "key3": "string",    "key4": "string",    "key5": "string",    "key6": "string",    "key7": "string",    "key8": "string",    "key9": "string",    "key10": "string",    "key11": "string",    "key12": "string",    "key13": "string",    "key14": "string",    "key15": "string",    "key16": "string",    "key17": "string",    "key18": "string",    "key19": "string",    "key20": "string",    "expires_at": "2019-08-24T14:15:22Z",    "country": "se",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z",    "version": 0,    "attachments": [      {        "file_id": "string",        "filename": "string",        "hash": "string",        "mime_type": "string",        "size": 0,        "created_at": "2019-08-24T14:15:22Z",        "updated_at": "2019-08-24T14:15:22Z",        "download_link": "string"      }    ]  }]