removeDocumentFromFolder

@DELETE(value = "folders/{folderId}/documents")
abstract suspend fun removeDocumentFromFolder(@Path(value = "folderId") folderId: String, @Query(value = "documentIds") documentIds: String): Response<DocumentsAddedOrRemovedFromFolderResponseDto>

Remove document(s) from folder This endpoint allows you to remove multiple documents from a folder owned by the user Responses:

  • 200: Success. Documents were successfully removed from the folder

  • 401: Unauthorized. This will occur if you do not supply an access-token to this endpoint, or if you provide an expired or invalid access token.

  • 404: Not Found. The folderID or one of the receipt IDs you have provided do not exist or do not belong to the user.

Return

DocumentsAddedOrRemovedFromFolderResponseDto

Parameters

folderId

A unique ID that identifies this folder in the Sensibill system.

documentIds

This is a list of document IDs that you want deleted from the folder. It should be a comma separated list and may be passed as a query parameter or in a JSON body in the request.