> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # UnarchiveIntakeForm # Package: intakeForms # Namespace: IntakeFormsService # Method link: https://dev.wix.com/docs/api-reference/crm/forms/other-services/intake-forms/intake-forms/unarchive-intake-form.md ## Permission Scopes: Manage Intake Form (PII): SCOPE.INTAKE-FORM.MANAGE_LIMITED ## Introduction Unarchives an intake form, enabling it to accept new submissions. --- ## REST API ### Schema ``` Method: unarchiveIntakeForm Description: Unarchives an intake form, enabling it to accept new submissions. URL: https://www.wixapis.com/_api/intake-forms/v1/intake-forms/{intakeFormId}/unarchive Method: POST # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: formRevision Method parameters: param name: formRevision | type: formRevision | description: Revision number, which increments by 1 each time the intake form is updated. To prevent conflicting changes, you must specify the current revision when updating the intake form. | required: true Return type: UnarchiveIntakeFormResponse - name: intakeForm | type: IntakeForm | description: Unarchived intake form. - name: id | type: string | description: Intake form GUID. Identical to the [Wix Forms form GUID](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/form-object.md). - name: expirationPeriodInMonths | type: integer | description: Expiration period in months. If not set, submissions don't expire. - name: archived | type: boolean | description: Whether the intake form is archived and disabled from accepting new submissions. - name: name | type: string | description: Intake form name. - name: createdDate | type: string | description: Date and time the intake form was created in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format. - name: updatedDate | type: string | description: Date and time the intake form was updated in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format. - name: revision | type: string | description: Revision number, which increments by 1 each time the intake form is updated. To prevent conflicting changes, the current revision must be passed when updating the intake form. ``` ### Examples ### Unarchive intake form ```curl curl -X POST \ 'https://www.wixapis.com/intake-forms/v1/intake-forms/550e8400-e29b-41d4-a716-446655440000/unarchive' \ -H 'Authorization: ' \ -H 'Content-Type: application/json' \ -d '{ "intakeFormId": "550e8400-e29b-41d4-a716-446655440000", "formRevision": 5 }' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.intakeForms.IntakeFormsService.unarchiveIntakeForm(intakeFormId, formRevision) Description: Unarchives an intake form, enabling it to accept new submissions. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: intakeFormId, formRevision Method parameters: param name: formRevision | type: string | description: Revision number, which increments by 1 each time the intake form is updated. To prevent conflicting changes, you must specify the current revision when updating the intake form. | required: true param name: intakeFormId | type: string | description: Intake form GUID. | required: true Return type: PROMISE - name: intakeForm | type: IntakeForm | description: Unarchived intake form. - name: _id | type: string | description: Intake form GUID. Identical to the [Wix Forms form GUID](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/form-object.md). - name: expirationPeriodInMonths | type: integer | description: Expiration period in months. If not set, submissions don't expire. - name: archived | type: boolean | description: Whether the intake form is archived and disabled from accepting new submissions. - name: name | type: string | description: Intake form name. - name: _createdDate | type: Date | description: Date and time the intake form was created in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format. - name: _updatedDate | type: Date | description: Date and time the intake form was updated in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format. - name: revision | type: string | description: Revision number, which increments by 1 each time the intake form is updated. To prevent conflicting changes, the current revision must be passed when updating the intake form. ``` ### Examples ### unarchiveIntakeForm ```javascript import { intakeForms } from '@wix/intake-forms'; async function unarchiveIntakeForm(intakeFormId,formRevision) { const response = await intakeForms.unarchiveIntakeForm(intakeFormId,formRevision); }; ``` ### unarchiveIntakeForm (with elevated permissions) ```javascript import { intakeForms } from '@wix/intake-forms'; import { auth } from '@wix/essentials'; async function myUnarchiveIntakeFormMethod(intakeFormId,formRevision) { const elevatedUnarchiveIntakeForm = auth.elevate(intakeForms.unarchiveIntakeForm); const response = await elevatedUnarchiveIntakeForm(intakeFormId,formRevision); } ``` ### unarchiveIntakeForm (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { intakeForms } from '@wix/intake-forms'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { intakeForms }, // Include the auth strategy and host as relevant }); async function unarchiveIntakeForm(intakeFormId,formRevision) { const response = await myWixClient.intakeForms.unarchiveIntakeForm(intakeFormId,formRevision); }; ``` ---