Duplicate
Used to duplicate a record taking into consideration the values that should not be copied like igsn
, auto increments, and combined_id
URL : /api/v1/form/duplicate/
URL Parameters :
- name=[string] : a valid data model name
- id=[integer] : a valid id of the record you want to duplicate
Method : POST
Auth required : YES
Permissions required
- Roles:
_administrator_
,developer
,operator
- Permissions:
form-<data model name>:edit
Success Response
POST /api/v1/form/duplicate?name=cores&id=335
Code : 200 OK
{
"rqd_abundance": 0,
"rqd_intensity": 0,
"hole_id": 205,
"core": 279,
"analyst": "NB",
"bottom_depth": 24,
"continuity": null,
"core_catcher": 1,
"core_diameter": null,
"core_loss_reason": null,
"core_ondeck": "2019-04-24 10:37:00",
"core_recovery": null,
"core_recovery_pc": 0,
"core_type": "H",
"drilled_length": 12,
"last_section": 2,
"mcd_offset": null,
"oriented": null,
"remarks": null,
"temperature": null,
"top_depth": 12,
"site_id": 41,
"expedition_id": 1,
"program_id": 1,
"archive_files": {
"filter": {
"expedition": 1,
"site": 41,
"hole": 205,
"core": null
},
"files": []
}
}