upsertFolder

@PUT(value = "folders/{folderId}")
abstract suspend fun upsertFolder(@Path(value = "folderId") folderId: String, @Body folderUpdateRequestDto: FolderUpdateRequestDto): Response<EmptyObjectResponseDto>

Update a folder for a user This endpoint allows you to update a folder in the authenticating user's account. Responses:

  • 200: Success. The folder was successfully updated.

  • 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 you have provided is not one of this user's folders. See the user object for a list of their folders.

Return

EmptyObjectResponseDto

Parameters

folderId

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

folderUpdateRequestDto

Add a new folder for a user