# Copy a form

Duplicates a form, along with its fields and its visibility rules, and returns the
copy. Submissions are not copied.
Copying within the same account returns the new form and appends `(Copy)` to its
name. Copying into another account - send that account's id as `account_id` -
returns a short confirmation instead of the form, because the caller cannot
necessarily read what was just created there. Any custom attributes the fields
depend on are recreated in the target account if it does not already have them,
and a field whose attribute exists there with a different type is skipped rather
than copied wrongly.

Endpoint: POST /api/v2/form/{form_id}/copy
Version: 2.0.0
Security: default

## Path parameters:

  - `form_id` (integer, required)
    The ID of the form.

## Header parameters:

  - `Rosterfy-Platform` (string)

## Request fields (application/json):

  - `account_id` (integer)
    The account to copy the form into. Defaults to the
  account the form is already in.

## Response 200 fields (application/json):

  - `message` (string)

  - `object` (object)

  - `object.id` (integer)

  - `object.form_type_id` (integer)

  - `object.name` (string)

  - `object.form_title` (string)

  - `object.form_category_id` (string | null)

  - `object.success_content` (string)

  - `object.close_content` (string)

  - `object.options` (array)

  - `object.rules` (array)

  - `object.cost` (string)

  - `object.tax_percentage` (string)

  - `object.close_at` (string | null)

  - `object.public` (integer)

  - `object.is_archived` (integer)

  - `object.token` (string)

  - `object.deleted_at` (string | null)

  - `object.created_at` (string)

  - `object.updated_at` (string)

  - `object.deleted_by` (string | null)

  - `nice` (object)

  - `nice.rrn` (string)

  - `nice.is_open` (string)

  - `nice.close_at` (string | null)

  - `nice.is_foreign_account` (boolean)

  - `relations` (object)

  - `relations.form_type` (object)

  - `relations.form_type.id` (integer)

  - `relations.form_type.name` (string)

  - `relations.form_type.code` (string)

  - `relations.form_type.main_entity` (string)

  - `relations.form_type.entities` (object)

  - `relations.form_type.entities.user_form_submission` (object)

  - `relations.form_type.entities.user_form_submission.create` (boolean)

  - `relations.form_type.public_field` (object)

  - `relations.form_type.public_field.form_title` (object)

  - `relations.form_type.public_field.form_title.rules` (string)

  - `relations.form_type.public_field.form_title.validation` (string)

  - `relations.form_type.public_field.close_content` (object)

  - `relations.form_type.public_field.close_content.rules` (string)

  - `relations.form_type.public_field.close_content.validation` (string)

  - `relations.form_type.public_field.success_content` (object)

  - `relations.form_type.public_field.success_content.rules` (string)

  - `relations.form_type.public_field.success_content.validation` (string)

  - `relations.form_type.access` (string)

  - `permissions` (object)

  - `permissions.read` (boolean)

  - `permissions.update` (boolean)

  - `permissions.delete` (boolean)

  - `permissions.copy` (boolean)

