Records
Duplicate a record
Duplicates the record matching filter, as-is or with the values in update_with applied to the copy.
Authorization
bearerAuth AuthorizationBearer <token>
Access token from POST /oauth2/token (valid for 300 seconds).
In: header
Request Body
application/json
filter*
Filter criteria. Every record field can be used; all conditions must match.
update_with?
Values to change on the duplicate. Omit to duplicate the record as-is.
Response Body
application/json
curl -X POST "https://example.com/api/records/clone" \ -H "Content-Type: application/json" \ -d '{ "filter": { "record_key": "d1c2e12cfeababc8b95daf6902e210b1" }, "update_with": { "record_key": "d1c6e12cfea6abc4t95daf6902ht10b1", "range_key1": 5000 } }'{ "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" } ]}