Formigros PROD

Delete File from Azure Storage

Deletes a file from the configured Azure storage provider.

delete
https://api.migros.ch/migros/forms/v1/{formPath}/storage/azure

Query Parameters

namestringrequired

File name

Example:tmp-6ffe3dac-57e5-459e-8dc7-fd96266b3d8b.pdf

keystringrequired

Storage key

Example:tmp-6ffe3dac-57e5-459e-8dc7-fd96266b3d8b.pdf

Path Parameters

formPathstringrequired

Form Alias

Example:AmazingContactForm

Response

204

File deleted

delete/migros/forms/v1/{formPath}/storage/azure
 
204

Get Azure Storage Files

This will retrieve the files stored in the configured Azure storage provider.

get
https://api.migros.ch/migros/forms/v1/{formPath}/storage/azure

Path Parameters

formPathstringrequired

Form Alias

Example:AmazingContactForm

Headers

x-jwt-tokenstring

Example:{{token}}

Response

200 application/json

Get Azure Storage Files

object
get/migros/forms/v1/{formPath}/storage/azure
 
200 application/json

Upload File to Azure Storage

Uploads a file through Form.io to the configured Azure storage provider.

post
https://api.migros.ch/migros/forms/v1/{formPath}/storage/azure

Path Parameters

formPathstringrequired

Form Alias

Example:AmazingContactForm

Body

application/json
groupIdstring | null

Optional group id

Example:null

groupPermissionsstring | null

Optional group permissions identifier

Example:null

namestringrequired

File name

Example:tmp-6ffe3dac-57e5-459e-8dc7-fd96266b3d8b.pdf

sizeintegerrequired

File size in bytes

Example:12

typestringrequired

MIME type

Example:application/pdf

Response

200 application/json

File uploaded

object
post/migros/forms/v1/{formPath}/storage/azure

Body

{ "groupId": null, "groupPermissions": null, "name": "tmp-6ffe3dac-57e5-459e-8dc7-fd96266b3d8b.pdf", "size": 12, "type": "application/pdf" }
 
200 application/json

Get Form Submissions

Retrieves submissions for the given form alias. Kong proxies to Form.io’s submission index API (resourcejs), which applies the same limit / skip / Range pagination and query filtering as the native project URL.

Extra query keys may filter on indexed submission fields using Form.io / resourcejs conventions (for example data.someKey=value or operator suffixes such as __regex where supported).

Auth: Form.io enforces roles such as the form’s submission viewer permissions using this JWT.

get
https://api.migros.ch/migros/forms/v1/{formPath}/submission

Query Parameters

limitinteger

Maximum submissions to return. Form.io (resourcejs) defaults to 10 when limit, skip, and Range are all omitted.

>= 0

Example:50

skipinteger

Number of submissions to skip (offset before limit).

>= 0

Example:0

sortstring

Mongo-style sort, e.g. -created for newest first, created for oldest first.

Example:-created

Path Parameters

formPathstringrequired

Form Alias

Example:AmazingContactForm

Headers

x-jwt-tokenstringrequired

Form.io JWT token for the signed-in user.

Rangestring

Optional pagination header; must use the items unit. Example: items=0-49.
Equivalent to setting limit and skip from the range; do not rely on mixing both in one request without verifying behavior on your Form.io version.

Example:items=0-49

Response

application/json

JSON array of submissions—either the full matching set in one response, or the last page of a paginated request.

array[object]
get/migros/forms/v1/{formPath}/submission
 
application/json

Create Form Submission

Creates a new submission for the given form alias. Include _fvid to target a specific form revision.

post
https://api.migros.ch/migros/forms/v1/{formPath}/submission

Path Parameters

formPathstringrequired

Form Alias

Example:AmazingContactForm

Body

application/json
_fvidstring

Example:2

dataobject
Show Child Parameters

Response

201 application/json

Create Form Submission / Create Submission / Create Form Revision Submission

_fvidnumber

Example:1

_idstring

Example:5fc7c4082a992abe68b247b9

_vidnumber

Example:0

accessarray

Example:[]

createdstring

Example:2020-12-02T16:42:48.128Z

dataobject
Show Child Parameters
externalIdsarray

Example:[]

formstring

Example:5fc7c25a2a992abe68b247b4

modifiedstring

Example:2020-12-02T16:42:48.129Z

ownerstring

Example:5fc7beeb2a992abe68b2475c

projectstring

Example:5fc7befe2a992abe68b24765

rolesarray

Example:[]

statestring

Example:submitted

post/migros/forms/v1/{formPath}/submission

Body

{ "_fvid": "2", "data": { "email": "joe@example.com", "firstName": "Joe", "lastName": "Smith", "phoneNumber": "(123) 123-1234" } }
 
201 application/json