---
title: "Get Form Revisions"
url: "https://developer-qual.migros.ch/apis/formigros-qual-0/versions/5cf4bb7f-1e47-4efc-a301-5c2ff79fea16/operations/getFormRevisions"
---

> Full API specification: https://developer-qual.migros.ch/apis/formigros-qual-0/versions/5cf4bb7f-1e47-4efc-a301-5c2ff79fea16.md

# Get Form Revisions

`GET` `/migros/forms/v1/form/{formId}/v`

Operation ID: `getFormRevisions`

This API will fetch all revisions for a specific form.

## Path parameters

- `formId` (string, required) - Form Id

## Header parameters

- `x-jwt-token` (string, optional)

## Responses

- `200` - Get Form Revisions

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: Formigros QUAL
  version: 0.0.1
servers:
  - url: https://api-qual.migros.ch
paths:
  /migros/forms/v1/form/{formId}/v:
    get:
      description: This API will fetch all revisions for a specific form.
      operationId: getFormRevisions
      parameters:
        - description: Form Id
          in: path
          name: formId
          required: true
          schema:
            example: "{{formId}}"
            type: string
        - example: "{{token}}"
          in: header
          name: x-jwt-token
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              example:
                - _id: 5fc7c2d02a992abe68b247b6
                  _rid: 5fc7c25a2a992abe68b247b4
                  _vid: 1
                  _vnote: ""
                  _vuser: user522
                  access:
                    - roles:
                        - 5fc7befe2a992abe68b24766
                        - 5fc7befe2a992abe68b24767
                        - 5fc7befe2a992abe68b24768
                      type: read_all
                  components:
                    - conditional:
                        eq: ""
                        show: ""
                        when: null
                      defaultValue: ""
                      input: true
                      inputMask: ""
                      inputType: text
                      isNew: false
                      key: firstName
                      label: First Name
                      lockKey: true
                      multiple: false
                      persistent: true
                      placeholder: ""
                      prefix: ""
                      protected: false
                      suffix: ""
                      tableView: true
                      tags: []
                      type: textfield
                      unique: false
                      validate:
                        custom: ""
                        customPrivate: false
                        maxLength: ""
                        minLength: ""
                        pattern: ""
                        required: false
                    - conditional:
                        eq: ""
                        show: ""
                        when: null
                      defaultValue: ""
                      input: true
                      inputMask: ""
                      inputType: text
                      isNew: false
                      key: lastName
                      label: Last Name
                      lockKey: true
                      multiple: false
                      persistent: true
                      placeholder: ""
                      prefix: ""
                      protected: false
                      suffix: ""
                      tableView: true
                      tags: []
                      type: textfield
                      unique: false
                      validate:
                        custom: ""
                        customPrivate: false
                        maxLength: ""
                        minLength: ""
                        pattern: ""
                        required: false
                    - defaultValue: ""
                      input: true
                      inputType: email
                      isNew: false
                      key: email
                      kickbox:
                        enabled: false
                      label: Email
                      lockKey: true
                      persistent: true
                      placeholder: Enter your email address
                      prefix: ""
                      protected: false
                      suffix: ""
                      tableView: true
                      type: email
                      unique: false
                    - conditional:
                        eq: ""
                        show: ""
                        when: null
                      defaultValue: ""
                      input: true
                      inputMask: (999) 999-9999
                      isNew: false
                      key: phoneNumber
                      label: Phone Number
                      lockKey: true
                      multiple: false
                      persistent: true
                      placeholder: ""
                      prefix: ""
                      protected: false
                      suffix: ""
                      tableView: true
                      tags: []
                      type: phoneNumber
                      unique: false
                      validate:
                        required: false
                    - action: submit
                      block: false
                      disableOnInvalid: false
                      input: true
                      key: submit
                      label: Submit
                      leftIcon: ""
                      rightIcon: ""
                      size: md
                      tableView: false
                      theme: primary
                      type: button
                  created: 2020-12-02T16:35:38.683Z
                  display: form
                  modified: 2020-12-02T16:37:36.283Z
                  name: synthesize
                  owner: 5fc7beeb2a992abe68b2475c
                  path: iterate
                  project: 5fc7befe2a992abe68b24765
                  revisions: original
                  submissionAccess: []
                  tags:
                    - register
                  title: navigating
                  type: form
              schema:
                items:
                  properties:
                    _id:
                      type: string
                    _rid:
                      type: string
                    _vid:
                      type: integer
                    _vnote:
                      type: string
                    _vuser:
                      type: string
                    access:
                      items:
                        properties:
                          roles:
                            items:
                              type: string
                            type: array
                          type:
                            type: string
                        type: object
                      type: array
                    components:
                      items:
                        properties:
                          conditional:
                            properties:
                              eq:
                                type: string
                              show:
                                type: string
                              when:
                                example: null
                                nullable: true
                                type: string
                            type: object
                          defaultValue:
                            type: string
                          input:
                            type: boolean
                          inputMask:
                            type: string
                          inputType:
                            type: string
                          isNew:
                            type: boolean
                          key:
                            type: string
                          label:
                            type: string
                          lockKey:
                            type: boolean
                          multiple:
                            type: boolean
                          persistent:
                            type: boolean
                          placeholder:
                            type: string
                          prefix:
                            type: string
                          protected:
                            type: boolean
                          suffix:
                            type: string
                          tableView:
                            type: boolean
                          tags:
                            items: {}
                            type: array
                          type:
                            type: string
                          unique:
                            type: boolean
                          validate:
                            properties:
                              custom:
                                type: string
                              customPrivate:
                                type: boolean
                              maxLength:
                                type: string
                              minLength:
                                type: string
                              pattern:
                                type: string
                              required:
                                type: boolean
                            type: object
                        type: object
                      type: array
                    created:
                      format: date-time
                      type: string
                    display:
                      type: string
                    modified:
                      format: date-time
                      type: string
                    name:
                      type: string
                    owner:
                      type: string
                    path:
                      type: string
                    project:
                      type: string
                    revisions:
                      type: string
                    submissionAccess:
                      items: {}
                      type: array
                    tags:
                      items:
                        type: string
                      type: array
                    title:
                      type: string
                    type:
                      type: string
                  type: object
                type: array
          description: Get Form Revisions
          headers:
            Accept-Ranges:
              example: items
              schema:
                type: string
            Access-Control-Allow-Origin:
              example: https://form.io
              schema:
                type: string
            Access-Control-Expose-Headers:
              example: Content-Range, Accept-Ranges, Range-Unit
              schema:
                type: string
            Cache-Control:
              example: no-cache,max-age=0
              schema:
                type: string
            Connection:
              example: keep-alive
              schema:
                type: string
            Content-Length:
              example: 2284
              schema:
                type: integer
            Content-Range:
              example: 0-0/1
              schema:
                type: string
            Date:
              example: Wed, 02 Dec 2020 16:39:03 GMT
              schema:
                type: string
            ETag:
              example: W/"8ec-BzhKp6IzE5tO/Et6WjY9G7JQ6/c"
              schema:
                type: string
            Link:
              example: ""
              schema:
                type: string
            Range-Unit:
              example: items
              schema:
                type: string
            Vary:
              example: Origin
              schema:
                type: string
            X-Powered-By:
              example: Express
              schema:
                type: string
            x-jwt-token:
              example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7Il9pZCI6IjVmYzdiZWViMmE5OTJhYmU2OGIyNDc1YyJ9LCJpc3MiOiJodHRwczovL2FwaS5mb3JtLmlvOjMwMDAiLCJzdWIiOiI1ZmM3YmVlYjJhOTkyYWJlNjhiMjQ3NWMiLCJqdGkiOiI1ZmM3YmVmMjJhOTkyYWJlNjhiMjQ3NjEiLCJmb3JtIjp7Il9pZCI6IjVlZDE4MGYzZDM2MGEyM2FlNTBiMDBkYSIsInByb2plY3QiOiI1ZWQxODBmMmQzNjBhMjNhZTUwYjAwZDYifSwicHJvamVjdCI6eyJfaWQiOiI1ZWQxODBmMmQzNjBhMjNhZTUwYjAwZDYifSwiaWF0IjoxNjA2OTI3MTQzLCJleHAiOjE2MDY5NDE1NDN9.UPLwDNKDudotIphfGlRM-5gSslyBpSei71daxg7DzGM
              schema:
                type: string
      summary: Get Form Revisions
      tags:
        - Form API
```
