Records
Create multiple records
Authorization
bearerAuth AuthorizationBearer <token>
Access token from POST /oauth2/token (valid for 300 seconds).
In: header
Request Body
application/json
country*string
records*array<>
Response Body
application/json
curl -X POST "https://example.com/api/records/batch" \ -H "Content-Type: application/json" \ -d '{ "country": "se", "records": [ { "record_key": "d1c2e12cfeababc8b95daf6902e210b1", "profile_key": "4274e510a2f41aeb9e8e0f8b56ff6c2", "range_key1": 2000, "key1": "Additional info", "key4": "Shipping", "key10": "New", "body": "{\\"name\\":\\"John\\",\\"vehicle\\":\\"Audi\\"}", "country": "se" }, { "record_key": "69f6a71405facac91d002dc9adce85fa", "profile_key": "baab015f2f9c350ab610fddd3986c53", "range_key1": 3000, "body": "{\\"name\\":\\"Alice\\",\\"vehicle\\":\\"Mercedes\\"}" } ] }'[ { "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" } ] }]