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/global/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

Notes

  • This endpoint is used only for forms where such functionality is needed.
  • check duplicate under form controller for more real examples