Community
Do the document type IDs need to be persisted when creating a document?
I'm creating a document using the "Create Document" endpoint "fleet/documents". The documentation states that a UUID is required for creating the document, but it's unclear as to whether or not that UUID should persist.
For example, if I create a document named "ABC" for driver X, and give it a UUID of "123" (for the sake of brevity here), then when I create another instance of the document "ABC", but this time for driver "Y", does that document also need a UUID of "123"?
Posted by tester222 about 3 years ago
Time-out setting on webhook
Hi,
Currently we using the webhook for 'ritdocumenten ingediend'. In the webhook we're doing an request to the Samsara API to create anPDF. We've noticed that sometimes they photo's in the PDF aren't available. We suspect because we do the request for the PDF to quickly right after the webhook. Our first solution was to create an delay in the webhook, but as you documents are stating this is not preferred, as you wish to do such tasks asynchronously. What is the maxium time we can delay and perhaps you do have another solution or approach?
Posted by Ralph Buijtendorp over 3 years ago
Document API
Hey all,
Document API contains a list of questions and their answers. Each question has the format { "value", "label", "type" }, and in the case of a multiple-choice question, the "value" detail is in the format { "multipleChoiceValue": [ { "selected": true/false }, "value": text ] }.
However, there is no way of being able to identify specific questions for querying at a later point.
Would it be possible to add a property to the questions, that would allow us to tag the question with a descriptor? Ideally we'd be able to tag each question with ExternalIds, but short of that, even being able to just manually write in a descriptor when designing the document template would suffice, or, if that's not possible, even simply auto-setting an incremental number to each question would probably work.
As it stands, we have to rely on the order of the questions from the API being in the same order as we had written them in, and that feels risky.
Posted by Kiran Ramaswamy over 3 years ago
Different type off notification dependant on type of submitted document
Hi,
For the notifications specifically on 'submitted document by driver' I want to create 2 events:
1. For 'ongevallen' I want to send a SMS and mail
2. For 'urenbriefje' and 'Ritdocumenten' I want to call my webhook.
It looks like you can only create one event per type of document, is that correct? And if so, is this possible to change?
Posted by Ralph Buijtendorp almost 4 years ago
Webhook when archiving an document
Because the pdf creation can take quitte a while we want to do this in the background. I see there is a webhook for when a document is created, but not for when the state has changed.
Is that correct? And is it possible to add this webhook?
Thanks and Regards,
Ralph
Posted by Ralph Buijtendorp almost 4 years ago
Editing documents through API
Hi team,
I couldn't find any endpoint where I can update an document (I want to change the 'notes' field). I see create and delete but not update, is dat correct? And if so, can this be added?
Posted by Ralph Buijtendorp almost 4 years ago