-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for updating multiple tags with one request. #130
Comments
See if the |
@RyanBuhrWA , didn't see that functionality, was looking specifically on DocumentTags endpoints. I will try your suggestion today to see if it works fine for me and will come back with details later. Thanks! |
@Stason1o We will add this to our roadmap. |
So, follow up to workaround @RyanBuhrWA mentioned with patch endpoint. I tried to send a payload, having only list of tags supplied, without content, and then, all getDocumentContent requests are failing with 500, but I couldn't find logs for the root cause of this( limited access to company CloudWatch) so, I guess this does not fit my case(unless I get access to CW and investigate logs). Will stick to current implementation - looping through tags and calling PUT document tag one by one, until new endpoint is released |
@Stason1o Can you provide the request you sent using PATCH /documents/{documentId} and we can look into the 500 error you are seeing. |
@mfriesen Hi,
I am not supplying content for this request, because I don't have it fetched at that moment from Formkiq. Sending content as a part of this request will require addiitional GetDocumentContent, which is "redundand" for me, because I am working with tags only at that moment.
If I call GetDocumentContent before calling Patch Document, I receive 200 Response and document content. After calling Patch Document, and then GetDocumentContent - I get 500 response. |
@Stason1o I assume you mean to add a PUT /documents/{documentId}/tags instead of /documents/{documentId}/tags/{tagKey} which would replace all the tags in a document? |
@mfriesen, so basically I need an endpoint, which will accept body Scenario:
Result - document tags are updated and document has tags:[id, type(png), subtype(city), case, comment, description, status] |
@Stason1o |
@mfriesen So, I tried this morning and got same results.
Note: At this point GET /documents/{documentId} and GET /documents/{documentId}/content are working as expected.
Response is 200.
|
@Stason1o Thank you so much for the details. I'm still not able to replicate the issue. Which version of FormKiQ are you using? From the logs, it looks like you are on v1.8.9? |
@mfriesen Yeah, it's 1.8.X (not sure about minor version), we will be migrating to newer version as soon as v1.12 will be out =) |
* updated library dependencies / gradle * replaced @ReflectableImport with graalvm annotationProcessor * #130 added PUT/PATCH /documents/{documentId}/tags * 138 post documents with reservered tag keys (#141) * updated localstack from 0.12.2 to 2.1 * #138 - POST /documents with reservered tag keys * #139 - Add permissions to documents POST / PATCH /documents/{documentId} * updated to aws-cognito 1.5.1 * change Folder 'indexKey' to not be UrlEncoded. * added ApiAuthorizationInterceptor * added GET / POST / DELETE /folders * added ApiRequestHandlerResponseInterceptor * added FolderIndexRecord * added interceptor before request is processed * FolderIndexProcessor: added getFoldersByDocumentId
* #130 - Feature: Added PUT/PATCH /documents/{documentId}/tags to allow adding/updating multiple tags to a document at once * #131 - Feature: Added POST /documents/compress to create a ZIP file of multiple document's contents. * #133 - Feature: Added PATCH /documents/tags to allow adding tags to documents based on tag search criteria * #138 - Bug: Added validation for reservered tag keys when using POST /documents * #144 - Bug: DELETE /indices/folder return 500 when invalid siteId is used * #145 - Feature: Added Typesense support to API GET documents/{id}/fulltext * #150 - Bug: Renamed module 'fulltext' to 'opensearch' * #151 - Bug: Documentation for POST /documents/upload, missing contentLength * #158 - Bug: Improved Actions API validation * #159 - Feature: API Keys added READ / WRITE / DELETE permissions * #161 - Bug: POST /documents/upload generates incorrect URL
Recently changes where introduced for POST /documents/{documentId}/tags, to support adding List of tags.
I would like to suggest adding same support for updating multiple document tags in one request for
PUT /documents/{documentId}/tags/{tagKey}
The text was updated successfully, but these errors were encountered: