Forms
Authorizations
Path parameters
formstringRequiredExample:
The form ID which the cases are linked to.
1
Query parameters
per_pageintegerOptionalExample:
Number of items to retireve, maximum of 500
20
sort_typestringOptionalExample:
Property by which to sort the results
created_at
sort_orderstringOptionalExample:
Order of results (asc or desc)
desc
pageintOptionalExample:
Page to retrieve number, to be used with per_page
1
filterobject[]Optional
Filter cases on custom fields
Responses
200
OK
401
Unauthorized - Credentials Incorrect
403
Forbidden - You cannot access this site
404
Not Found - The form does not contain any cases
422
Unprocessable Entity - Required data missing or data invalid
get
GET /api/site/v2/forms/{form}/cases HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Accept: */*
No content
Authorizations
Path parameters
formstring · idRequiredExample:
The ID of your form
1
idstring · idRequiredExample:
The ID of the case
1234
Responses
200
OK
401
Unauthorized - Credentials Incorrect
403
Forbidden - You cannot access this site
404
Not Found - Case does not exist
422
Unprocessable Entity - Required data missing or data invalid
get
GET /api/site/v2/forms/{form}/cases/{id} HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Accept: */*
No content
Authorizations
Path parameters
formstring · idRequiredExample:
The ID of your form
1
Body
userIDstringRequired
Responses
200
OK
401
Unauthorized - Credentials Incorrect
403
Forbidden - You cannot access this site
404
Not Found - Case does not exist
422
Unprocessable Entity - Required data missing or data invalid
post
POST /api/site/v2/forms/{form}/cases/create HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"userID": "text"
}
No content
Last updated
Was this helpful?