Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
JavaScript
const options = { method: 'POST', headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'}, body: JSON.stringify({ organization_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', campaign_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', values: [ { kpi_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', value_numeric: 123, value_text: '<string>', value_date: '2023-12-25' } ], facility_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', attachment_file_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'] }) }; fetch('https://api.dcycle.io/v1/custom-kpi-datasets/{dataset_id}/responses', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "campaign_assignment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "submitted_at": "2023-11-07T05:31:56Z", "values": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "assignment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "kpi_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "submitted_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "value_numeric": 123, "value_text": "<string>", "value_date": "2023-12-25", "submitter_email": "<string>", "submitter_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } ], "attachments": [ { "file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "file_name": "<string>", "file_url": "<string>" } ] }
Submit a Custom KPI response with optional evidence attachments.
Request schema for submitting a Custom KPI response.
1 - 100
Hide child attributes
10000
20
Successful Response
Returned after creating an in-app response.
The assignment id.