Form API
Get Form Data by Form Id, Field Name, and Field Value
Method | GET |
Media Type | application/json |
URL | http://[server]/dolphin/apiv1/graph/forms/formData?formId=[formId]&fieldName=[fieldName]&start=0&count=1 |
Header | Authorization : Bearer [generatedToken] Form Id : [formId] Field Name : [fieldName] |
Body | |
Status | 200 |
Response | { “status”: “success”, “data”: [ { “email_address”: “yolo” “spell”: [ “yolo” ], “form_id”: “[formId]”, “created_date”: 1591851606605, “id”: “[id]”, “_version_”: 1669177390257930200 } ], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 1 } |
Get Form Data by param, startDate, and EndDate
Method | GET |
Media Type | application/json |
URL | https://[server]/dolphin/apiv1/graph/forms/data?formId=[form_id]&startDate=2020-09-14&endDate=2020-09-14&start=0&count=10 |
Header | Authorization : Bearer [generatedToken] Form Id : [form_id] startDate : [startDate] endDate : [endDate] |
Body | |
Status | 200 |
Response | { “status”: “success”, “data”: [ { “comment”: “Hallo”, “ticket_number”: “[ticketNumber]”, “form_id”: “[form_id]”, “channel_type”: “[channel_type]”, “channel_key”: “[channel_key] “, “channel”: “[channel]”, “account_id”: “[account_id]”, “account_name”: “[account_name]”, “created_date”: 1600076391136, “id”: “[id]”, “_version_”: 1677801702193889280 } ], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 1 } |
Get Form by Form Id
Method | GET |
Media Type | application/json |
URL | http://[server]/dolphin/apiv1/graph/forms/form?formId=[formId] |
Header | Authorization : Bearer [generatedToken] Form Id : [formId] |
Body | |
Status | 200 |
Response | { “status”: “success”, “data”: { “id”: “[id]”, “spell”: [ “”, “Comment” ], “owner”: “[owner_id]”, “createdDate”: 1564406718494, “createdBy”: “19119b20259b7ae38e80462cf449ae98”, “modifiedDate”: 1564406718494, “modifiedBy”: “19119b20259b7ae38e80462cf449ae98”, “dataRepository”: “[dataRepository]”, “description”: “”, “formSchema”: “[]”, “formOptions”:”[]”, “formData”: “[]”, “formDefinitionKey”: “”, “title”: “Comment”, “total”: “31” }, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 } |
Get Form by Form Owner
Method | GET |
Media Type | application/json |
URL | http://[server]/dolphin/apiv1/graph/forms?start=0&count=1 |
Header | Authorization : Bearer [generatedToken] |
Body | |
Status | 200 |
Response | { “status”: “success”, “data”: [ { “id”: “[id]”, “spell”: [ “Booking appointment and product specialist”, “Branch Appointment” ], “owner”: “[owner_id]”, “createdDate”: 1547132442169, “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”, “modifiedDate”: 1557987095681, “modifiedBy”: “19119b20259b7ae38e80462cf449ae98”, “dataRepository”: “[dataRepository]”, “description”: “Booking appointment and product specialist”, “formSchema”: “[formSchema]”, “formOptions”:”[formOptions]”, “formData”: “[]”, “formDefinitionKey”: “”, “title”: “Branch Appointment” }, ], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 } |
Add Form data by Form Id
Method | POST |
Media Type | application/json |
URL | http://[server]/dolphin/apiv1/graph/forms/add/[formId]/tickets/[ticketNumber] |
Header | Authorization : Bearer [generatedToken] Form Id : [formId] Ticket Number : [ticketNumber] |
Body | |
Status | 200 |
Response | { “status”: “success”, “data”: “{}”, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 } |
Delete Form data by Id
Method | DELETE |
Media Type | application/json |
URL | http://[server]/dolphin/apiv1/graph/forms/delete/[formId]/[Id] |
Header | Authorization : Bearer [generatedToken] Form Id : [formId] Id : [Id] |
Body | |
Status | 200 |
Response | { “status”: “success”, “data”: “Successfully Deleted Form Data”, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 } |
Get Form Data by Id
Method | GET |
Media Type | application/json |
URL | http://[server]/dolphin/apiv1/graph/forms/get/[form_id]/[id] |
Header | Authorization : Bearer [generatedToken] Form Id : [form_id] Id : [Id] |
Body | |
Status | 200 |
Response | { “status”: “success”, “data”: { “address”: “[address]”, “ktp”: [ktp], “npwp”: [npwp], “form_id”: “[form_id]”, “channel”: “[channel]”, “last_name”: “[last_name]”, “ticket_number”: “[ticket_number]”, “email_address”: “[email_address]”, “account_id”: “[account_id]”, “_version_”: 1679425928220901400, “encrypt”: true, “account_name”: “[account_name]”, “created_date”: “Fri Oct 02 14:56:13 WIB 2020”, “id”: “[id]”, “channel_type”: “[channel_type]”, “first_name”: “[first_name]”, “channel_key”: “[channel_key]” }, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 } |
Last updated