files.com 1.0.60 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/api_key.md +4 -2
- data/docs/as2_key.md +4 -2
- data/docs/automation.md +4 -2
- data/docs/behavior.md +4 -2
- data/docs/bundle.md +6 -3
- data/docs/file.md +6 -3
- data/docs/file_action.md +6 -3
- data/docs/file_comment.md +4 -2
- data/docs/file_comment_reaction.md +2 -1
- data/docs/group.md +4 -2
- data/docs/group_user.md +4 -2
- data/docs/history_export.md +2 -1
- data/docs/lock.md +2 -1
- data/docs/message.md +4 -2
- data/docs/message_comment.md +4 -2
- data/docs/message_comment_reaction.md +2 -1
- data/docs/message_reaction.md +2 -1
- data/docs/notification.md +4 -2
- data/docs/project.md +4 -2
- data/docs/public_key.md +4 -2
- data/docs/remote_server.md +4 -2
- data/docs/request.md +2 -1
- data/docs/style.md +4 -2
- data/docs/user.md +10 -5
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 0b09e6ed543889e7e479258251d52d0b107268d1f433193f288173901f503941
         | 
| 4 | 
            +
              data.tar.gz: f4234f67b3d797ba688dacbb3afba2572995157ad298d8f261024ea9c50d3ff3
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: bfc55bd3614d89dadd955e5952234c82e949ff68664a9d309c0c4edd691ddd11e0e0300f2b95cb3256f3d48266bb535f7cdf907f44532f7512900d70da215cc3
         | 
| 7 | 
            +
              data.tar.gz: 9caf19959a456c7c83fd0efe1d21bdc5066bbabaaf765fc6cbc13a48b44e602dd17807d873d63066bd8bcca509d096523a06f92f4b0cc4f4e4943bd40f5cbb00
         | 
    
        data/_VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1.0. | 
| 1 | 
            +
            1.0.61
         | 
    
        data/docs/api_key.md
    CHANGED
    
    | @@ -158,7 +158,8 @@ Files::ApiKey.delete(id) | |
| 158 158 | 
             
            ## Update Api Key
         | 
| 159 159 |  | 
| 160 160 | 
             
            ```
         | 
| 161 | 
            -
            api_key = Files::ApiKey. | 
| 161 | 
            +
            api_key = Files::ApiKey.list_for(path).first
         | 
| 162 | 
            +
             | 
| 162 163 | 
             
            api_key.update(
         | 
| 163 164 | 
             
              name: "My Key",
         | 
| 164 165 | 
             
              permission_set: "full",
         | 
| @@ -179,7 +180,8 @@ api_key.update( | |
| 179 180 | 
             
            ## Delete Api Key
         | 
| 180 181 |  | 
| 181 182 | 
             
            ```
         | 
| 182 | 
            -
            api_key = Files::ApiKey. | 
| 183 | 
            +
            api_key = Files::ApiKey.list_for(path).first
         | 
| 184 | 
            +
             | 
| 183 185 | 
             
            api_key.delete
         | 
| 184 186 | 
             
            ```
         | 
| 185 187 |  | 
    
        data/docs/as2_key.md
    CHANGED
    
    | @@ -105,7 +105,8 @@ Files::As2Key.delete(id) | |
| 105 105 | 
             
            ## Update As2 Key
         | 
| 106 106 |  | 
| 107 107 | 
             
            ```
         | 
| 108 | 
            -
            as2_key = Files::As2Key. | 
| 108 | 
            +
            as2_key = Files::As2Key.list_for(path).first
         | 
| 109 | 
            +
             | 
| 109 110 | 
             
            as2_key.update(
         | 
| 110 111 | 
             
              as2_partnership_name: "Test"
         | 
| 111 112 | 
             
            )
         | 
| @@ -122,7 +123,8 @@ as2_key.update( | |
| 122 123 | 
             
            ## Delete As2 Key
         | 
| 123 124 |  | 
| 124 125 | 
             
            ```
         | 
| 125 | 
            -
            as2_key = Files::As2Key. | 
| 126 | 
            +
            as2_key = Files::As2Key.list_for(path).first
         | 
| 127 | 
            +
             | 
| 126 128 | 
             
            as2_key.delete
         | 
| 127 129 | 
             
            ```
         | 
| 128 130 |  | 
    
        data/docs/automation.md
    CHANGED
    
    | @@ -143,7 +143,8 @@ Files::Automation.delete(id) | |
| 143 143 | 
             
            ## Update Automation
         | 
| 144 144 |  | 
| 145 145 | 
             
            ```
         | 
| 146 | 
            -
            automation = Files::Automation. | 
| 146 | 
            +
            automation = Files::Automation.list_for(path).first
         | 
| 147 | 
            +
             | 
| 147 148 | 
             
            automation.update(
         | 
| 148 149 | 
             
              automation: "create_folder",
         | 
| 149 150 | 
             
              source: "source",
         | 
| @@ -171,7 +172,8 @@ automation.update( | |
| 171 172 | 
             
            ## Delete Automation
         | 
| 172 173 |  | 
| 173 174 | 
             
            ```
         | 
| 174 | 
            -
            automation = Files::Automation. | 
| 175 | 
            +
            automation = Files::Automation.list_for(path).first
         | 
| 176 | 
            +
             | 
| 175 177 | 
             
            automation.delete
         | 
| 176 178 | 
             
            ```
         | 
| 177 179 |  | 
    
        data/docs/behavior.md
    CHANGED
    
    | @@ -151,7 +151,8 @@ Files::Behavior.delete(id) | |
| 151 151 | 
             
            ## Update Behavior
         | 
| 152 152 |  | 
| 153 153 | 
             
            ```
         | 
| 154 | 
            -
            behavior = Files::Behavior. | 
| 154 | 
            +
            behavior = Files::Behavior.list_for(path).first
         | 
| 155 | 
            +
             | 
| 155 156 | 
             
            behavior.update(
         | 
| 156 157 | 
             
              value: "{\"method\": \"GET\"}"
         | 
| 157 158 | 
             
            )
         | 
| @@ -169,7 +170,8 @@ behavior.update( | |
| 169 170 | 
             
            ## Delete Behavior
         | 
| 170 171 |  | 
| 171 172 | 
             
            ```
         | 
| 172 | 
            -
            behavior = Files::Behavior. | 
| 173 | 
            +
            behavior = Files::Behavior.list_for(path).first
         | 
| 174 | 
            +
             | 
| 173 175 | 
             
            behavior.delete
         | 
| 174 176 | 
             
            ```
         | 
| 175 177 |  | 
    
        data/docs/bundle.md
    CHANGED
    
    | @@ -154,7 +154,8 @@ Files::Bundle.delete(id) | |
| 154 154 | 
             
            ## Send email(s) with a link to bundle
         | 
| 155 155 |  | 
| 156 156 | 
             
            ```
         | 
| 157 | 
            -
            bundle = Files::Bundle. | 
| 157 | 
            +
            bundle = Files::Bundle.list_for(path).first
         | 
| 158 | 
            +
             | 
| 158 159 | 
             
            bundle.share(
         | 
| 159 160 | 
             
              to: ["johndoe@gmail.com"],
         | 
| 160 161 | 
             
              note: "Just a note."
         | 
| @@ -173,7 +174,8 @@ bundle.share( | |
| 173 174 | 
             
            ## Update Bundle
         | 
| 174 175 |  | 
| 175 176 | 
             
            ```
         | 
| 176 | 
            -
            bundle = Files::Bundle. | 
| 177 | 
            +
            bundle = Files::Bundle.list_for(path).first
         | 
| 178 | 
            +
             | 
| 177 179 | 
             
            bundle.update(
         | 
| 178 180 | 
             
              password: "Password",
         | 
| 179 181 | 
             
              expires_at: "2000-01-01T01:00:00Z",
         | 
| @@ -198,7 +200,8 @@ bundle.update( | |
| 198 200 | 
             
            ## Delete Bundle
         | 
| 199 201 |  | 
| 200 202 | 
             
            ```
         | 
| 201 | 
            -
            bundle = Files::Bundle. | 
| 203 | 
            +
            bundle = Files::Bundle.list_for(path).first
         | 
| 204 | 
            +
             | 
| 202 205 | 
             
            bundle.delete
         | 
| 203 206 | 
             
            ```
         | 
| 204 207 |  | 
    
        data/docs/file.md
    CHANGED
    
    | @@ -150,7 +150,8 @@ Files::File.delete(path, | |
| 150 150 | 
             
            ## Download file
         | 
| 151 151 |  | 
| 152 152 | 
             
            ```
         | 
| 153 | 
            -
            file = Files::File. | 
| 153 | 
            +
            file = Files::File.list_for(path).first
         | 
| 154 | 
            +
             | 
| 154 155 | 
             
            file.download(
         | 
| 155 156 | 
             
              id: 1,
         | 
| 156 157 | 
             
              with_previews: true,
         | 
| @@ -172,7 +173,8 @@ file.download( | |
| 172 173 | 
             
            ## Update file/folder metadata
         | 
| 173 174 |  | 
| 174 175 | 
             
            ```
         | 
| 175 | 
            -
            file = Files::File. | 
| 176 | 
            +
            file = Files::File.list_for(path).first
         | 
| 177 | 
            +
             | 
| 176 178 | 
             
            file.update(
         | 
| 177 179 | 
             
              provided_mtime: "2000-01-01T01:00:00Z",
         | 
| 178 180 | 
             
              priority_color: "red"
         | 
| @@ -191,7 +193,8 @@ file.update( | |
| 191 193 | 
             
            ## Delete file/folder
         | 
| 192 194 |  | 
| 193 195 | 
             
            ```
         | 
| 194 | 
            -
            file = Files::File. | 
| 196 | 
            +
            file = Files::File.list_for(path).first
         | 
| 197 | 
            +
             | 
| 195 198 | 
             
            file.delete(
         | 
| 196 199 | 
             
              recursive: true
         | 
| 197 200 | 
             
            )
         | 
    
        data/docs/file_action.md
    CHANGED
    
    | @@ -63,7 +63,8 @@ Files::FileAction.begin_upload(path, | |
| 63 63 | 
             
            ## Copy file/folder
         | 
| 64 64 |  | 
| 65 65 | 
             
            ```
         | 
| 66 | 
            -
            file_action = Files::FileAction. | 
| 66 | 
            +
            file_action = Files::FileAction.list_for(path).first
         | 
| 67 | 
            +
             | 
| 67 68 | 
             
            file_action.copy(
         | 
| 68 69 | 
             
              destination: "destination"
         | 
| 69 70 | 
             
            )
         | 
| @@ -80,7 +81,8 @@ file_action.copy( | |
| 80 81 | 
             
            ## Move file/folder
         | 
| 81 82 |  | 
| 82 83 | 
             
            ```
         | 
| 83 | 
            -
            file_action = Files::FileAction. | 
| 84 | 
            +
            file_action = Files::FileAction.list_for(path).first
         | 
| 85 | 
            +
             | 
| 84 86 | 
             
            file_action.move(
         | 
| 85 87 | 
             
              destination: "destination"
         | 
| 86 88 | 
             
            )
         | 
| @@ -97,7 +99,8 @@ file_action.move( | |
| 97 99 | 
             
            ## Begin file upload
         | 
| 98 100 |  | 
| 99 101 | 
             
            ```
         | 
| 100 | 
            -
            file_action = Files::FileAction. | 
| 102 | 
            +
            file_action = Files::FileAction.list_for(path).first
         | 
| 103 | 
            +
             | 
| 101 104 | 
             
            file_action.begin_upload(
         | 
| 102 105 | 
             
              mkdir_parents: true,
         | 
| 103 106 | 
             
              part: 1,
         | 
    
        data/docs/file_comment.md
    CHANGED
    
    | @@ -88,7 +88,8 @@ Files::FileComment.delete(id) | |
| 88 88 | 
             
            ## Update File Comment
         | 
| 89 89 |  | 
| 90 90 | 
             
            ```
         | 
| 91 | 
            -
            file_comment = Files::FileComment. | 
| 91 | 
            +
            file_comment = Files::FileComment.list_for(path).first
         | 
| 92 | 
            +
             | 
| 92 93 | 
             
            file_comment.update(
         | 
| 93 94 | 
             
              body: "body"
         | 
| 94 95 | 
             
            )
         | 
| @@ -105,7 +106,8 @@ file_comment.update( | |
| 105 106 | 
             
            ## Delete File Comment
         | 
| 106 107 |  | 
| 107 108 | 
             
            ```
         | 
| 108 | 
            -
            file_comment = Files::FileComment. | 
| 109 | 
            +
            file_comment = Files::FileComment.list_for(path).first
         | 
| 110 | 
            +
             | 
| 109 111 | 
             
            file_comment.delete
         | 
| 110 112 | 
             
            ```
         | 
| 111 113 |  | 
| @@ -52,7 +52,8 @@ Files::FileCommentReaction.delete(id) | |
| 52 52 | 
             
            ## Delete File Comment Reaction
         | 
| 53 53 |  | 
| 54 54 | 
             
            ```
         | 
| 55 | 
            -
            file_comment_reaction = Files::FileCommentReaction. | 
| 55 | 
            +
            file_comment_reaction = Files::FileCommentReaction.list_for(path).first
         | 
| 56 | 
            +
             | 
| 56 57 | 
             
            file_comment_reaction.delete
         | 
| 57 58 | 
             
            ```
         | 
| 58 59 |  | 
    
        data/docs/group.md
    CHANGED
    
    | @@ -114,7 +114,8 @@ Files::Group.delete(id) | |
| 114 114 | 
             
            ## Update Group
         | 
| 115 115 |  | 
| 116 116 | 
             
            ```
         | 
| 117 | 
            -
            group = Files::Group. | 
| 117 | 
            +
            group = Files::Group.list_for(path).first
         | 
| 118 | 
            +
             | 
| 118 119 | 
             
            group.update(
         | 
| 119 120 | 
             
              name: "owners"
         | 
| 120 121 | 
             
            )
         | 
| @@ -134,7 +135,8 @@ group.update( | |
| 134 135 | 
             
            ## Delete Group
         | 
| 135 136 |  | 
| 136 137 | 
             
            ```
         | 
| 137 | 
            -
            group = Files::Group. | 
| 138 | 
            +
            group = Files::Group.list_for(path).first
         | 
| 139 | 
            +
             | 
| 138 140 | 
             
            group.delete
         | 
| 139 141 | 
             
            ```
         | 
| 140 142 |  | 
    
        data/docs/group_user.md
    CHANGED
    
    | @@ -81,7 +81,8 @@ Files::GroupUser.delete(id) | |
| 81 81 | 
             
            ## Update Group User
         | 
| 82 82 |  | 
| 83 83 | 
             
            ```
         | 
| 84 | 
            -
            group_user = Files::GroupUser. | 
| 84 | 
            +
            group_user = Files::GroupUser.list_for(path).first
         | 
| 85 | 
            +
             | 
| 85 86 | 
             
            group_user.update(
         | 
| 86 87 | 
             
              group_id: 1,
         | 
| 87 88 | 
             
              user_id: 1,
         | 
| @@ -102,7 +103,8 @@ group_user.update( | |
| 102 103 | 
             
            ## Delete Group User
         | 
| 103 104 |  | 
| 104 105 | 
             
            ```
         | 
| 105 | 
            -
            group_user = Files::GroupUser. | 
| 106 | 
            +
            group_user = Files::GroupUser.list_for(path).first
         | 
| 107 | 
            +
             | 
| 106 108 | 
             
            group_user.delete
         | 
| 107 109 | 
             
            ```
         | 
| 108 110 |  | 
    
        data/docs/history_export.md
    CHANGED
    
    
    
        data/docs/lock.md
    CHANGED
    
    
    
        data/docs/message.md
    CHANGED
    
    | @@ -115,7 +115,8 @@ Files::Message.delete(id) | |
| 115 115 | 
             
            ## Update Message
         | 
| 116 116 |  | 
| 117 117 | 
             
            ```
         | 
| 118 | 
            -
            message = Files::Message. | 
| 118 | 
            +
            message = Files::Message.list_for(path).first
         | 
| 119 | 
            +
             | 
| 119 120 | 
             
            message.update(
         | 
| 120 121 | 
             
              project_id: 1,
         | 
| 121 122 | 
             
              subject: "subject",
         | 
| @@ -136,7 +137,8 @@ message.update( | |
| 136 137 | 
             
            ## Delete Message
         | 
| 137 138 |  | 
| 138 139 | 
             
            ```
         | 
| 139 | 
            -
            message = Files::Message. | 
| 140 | 
            +
            message = Files::Message.list_for(path).first
         | 
| 141 | 
            +
             | 
| 140 142 | 
             
            message.delete
         | 
| 141 143 | 
             
            ```
         | 
| 142 144 |  | 
    
        data/docs/message_comment.md
    CHANGED
    
    | @@ -104,7 +104,8 @@ Files::MessageComment.delete(id) | |
| 104 104 | 
             
            ## Update Message Comment
         | 
| 105 105 |  | 
| 106 106 | 
             
            ```
         | 
| 107 | 
            -
            message_comment = Files::MessageComment. | 
| 107 | 
            +
            message_comment = Files::MessageComment.list_for(path).first
         | 
| 108 | 
            +
             | 
| 108 109 | 
             
            message_comment.update(
         | 
| 109 110 | 
             
              body: "body"
         | 
| 110 111 | 
             
            )
         | 
| @@ -121,7 +122,8 @@ message_comment.update( | |
| 121 122 | 
             
            ## Delete Message Comment
         | 
| 122 123 |  | 
| 123 124 | 
             
            ```
         | 
| 124 | 
            -
            message_comment = Files::MessageComment. | 
| 125 | 
            +
            message_comment = Files::MessageComment.list_for(path).first
         | 
| 126 | 
            +
             | 
| 125 127 | 
             
            message_comment.delete
         | 
| 126 128 | 
             
            ```
         | 
| 127 129 |  | 
| @@ -84,7 +84,8 @@ Files::MessageCommentReaction.delete(id) | |
| 84 84 | 
             
            ## Delete Message Comment Reaction
         | 
| 85 85 |  | 
| 86 86 | 
             
            ```
         | 
| 87 | 
            -
            message_comment_reaction = Files::MessageCommentReaction. | 
| 87 | 
            +
            message_comment_reaction = Files::MessageCommentReaction.list_for(path).first
         | 
| 88 | 
            +
             | 
| 88 89 | 
             
            message_comment_reaction.delete
         | 
| 89 90 | 
             
            ```
         | 
| 90 91 |  | 
    
        data/docs/message_reaction.md
    CHANGED
    
    
    
        data/docs/notification.md
    CHANGED
    
    | @@ -133,7 +133,8 @@ Files::Notification.delete(id) | |
| 133 133 | 
             
            ## Update Notification
         | 
| 134 134 |  | 
| 135 135 | 
             
            ```
         | 
| 136 | 
            -
            notification = Files::Notification. | 
| 136 | 
            +
            notification = Files::Notification.list_for(path).first
         | 
| 137 | 
            +
             | 
| 137 138 | 
             
            notification.update(
         | 
| 138 139 | 
             
              notify_on_copy: true,
         | 
| 139 140 | 
             
              notify_user_actions: true,
         | 
| @@ -154,7 +155,8 @@ notification.update( | |
| 154 155 | 
             
            ## Delete Notification
         | 
| 155 156 |  | 
| 156 157 | 
             
            ```
         | 
| 157 | 
            -
            notification = Files::Notification. | 
| 158 | 
            +
            notification = Files::Notification.list_for(path).first
         | 
| 159 | 
            +
             | 
| 158 160 | 
             
            notification.delete
         | 
| 159 161 | 
             
            ```
         | 
| 160 162 |  | 
    
        data/docs/project.md
    CHANGED
    
    | @@ -93,7 +93,8 @@ Files::Project.delete(id) | |
| 93 93 | 
             
            ## Update Project
         | 
| 94 94 |  | 
| 95 95 | 
             
            ```
         | 
| 96 | 
            -
            project = Files::Project. | 
| 96 | 
            +
            project = Files::Project.list_for(path).first
         | 
| 97 | 
            +
             | 
| 97 98 | 
             
            project.update(
         | 
| 98 99 | 
             
              global_access: "global_access"
         | 
| 99 100 | 
             
            )
         | 
| @@ -110,7 +111,8 @@ project.update( | |
| 110 111 | 
             
            ## Delete Project
         | 
| 111 112 |  | 
| 112 113 | 
             
            ```
         | 
| 113 | 
            -
            project = Files::Project. | 
| 114 | 
            +
            project = Files::Project.list_for(path).first
         | 
| 115 | 
            +
             | 
| 114 116 | 
             
            project.delete
         | 
| 115 117 | 
             
            ```
         | 
| 116 118 |  | 
    
        data/docs/public_key.md
    CHANGED
    
    | @@ -105,7 +105,8 @@ Files::PublicKey.delete(id) | |
| 105 105 | 
             
            ## Update Public Key
         | 
| 106 106 |  | 
| 107 107 | 
             
            ```
         | 
| 108 | 
            -
            public_key = Files::PublicKey. | 
| 108 | 
            +
            public_key = Files::PublicKey.list_for(path).first
         | 
| 109 | 
            +
             | 
| 109 110 | 
             
            public_key.update(
         | 
| 110 111 | 
             
              title: "My Main Key"
         | 
| 111 112 | 
             
            )
         | 
| @@ -122,7 +123,8 @@ public_key.update( | |
| 122 123 | 
             
            ## Delete Public Key
         | 
| 123 124 |  | 
| 124 125 | 
             
            ```
         | 
| 125 | 
            -
            public_key = Files::PublicKey. | 
| 126 | 
            +
            public_key = Files::PublicKey.list_for(path).first
         | 
| 127 | 
            +
             | 
| 126 128 | 
             
            public_key.delete
         | 
| 127 129 | 
             
            ```
         | 
| 128 130 |  | 
    
        data/docs/remote_server.md
    CHANGED
    
    | @@ -218,7 +218,8 @@ Files::RemoteServer.delete(id) | |
| 218 218 | 
             
            ## Update Remote Server
         | 
| 219 219 |  | 
| 220 220 | 
             
            ```
         | 
| 221 | 
            -
            remote_server = Files::RemoteServer. | 
| 221 | 
            +
            remote_server = Files::RemoteServer.list_for(path).first
         | 
| 222 | 
            +
             | 
| 222 223 | 
             
            remote_server.update(
         | 
| 223 224 | 
             
              hostname: "remote-server.com",
         | 
| 224 225 | 
             
              name: "My Remote server",
         | 
| @@ -276,7 +277,8 @@ remote_server.update( | |
| 276 277 | 
             
            ## Delete Remote Server
         | 
| 277 278 |  | 
| 278 279 | 
             
            ```
         | 
| 279 | 
            -
            remote_server = Files::RemoteServer. | 
| 280 | 
            +
            remote_server = Files::RemoteServer.list_for(path).first
         | 
| 281 | 
            +
             | 
| 280 282 | 
             
            remote_server.delete
         | 
| 281 283 | 
             
            ```
         | 
| 282 284 |  | 
    
        data/docs/request.md
    CHANGED
    
    
    
        data/docs/style.md
    CHANGED
    
    | @@ -65,7 +65,8 @@ Files::Style.delete(path) | |
| 65 65 | 
             
            ## Update Style
         | 
| 66 66 |  | 
| 67 67 | 
             
            ```
         | 
| 68 | 
            -
            style = Files::Style. | 
| 68 | 
            +
            style = Files::Style.list_for(path).first
         | 
| 69 | 
            +
             | 
| 69 70 | 
             
            style.update(
         | 
| 70 71 | 
             
              file: "file"
         | 
| 71 72 | 
             
            )
         | 
| @@ -82,7 +83,8 @@ style.update( | |
| 82 83 | 
             
            ## Delete Style
         | 
| 83 84 |  | 
| 84 85 | 
             
            ```
         | 
| 85 | 
            -
            style = Files::Style. | 
| 86 | 
            +
            style = Files::Style.list_for(path).first
         | 
| 87 | 
            +
             | 
| 86 88 | 
             
            style.delete
         | 
| 87 89 | 
             
            ```
         | 
| 88 90 |  | 
    
        data/docs/user.md
    CHANGED
    
    | @@ -371,7 +371,8 @@ Files::User.delete(id) | |
| 371 371 | 
             
            ## Unlock user who has been locked out due to failed logins
         | 
| 372 372 |  | 
| 373 373 | 
             
            ```
         | 
| 374 | 
            -
            user = Files::User. | 
| 374 | 
            +
            user = Files::User.list_for(path).first
         | 
| 375 | 
            +
             | 
| 375 376 | 
             
            user.unlock
         | 
| 376 377 | 
             
            ```
         | 
| 377 378 |  | 
| @@ -385,7 +386,8 @@ user.unlock | |
| 385 386 | 
             
            ## Resend user welcome email
         | 
| 386 387 |  | 
| 387 388 | 
             
            ```
         | 
| 388 | 
            -
            user = Files::User. | 
| 389 | 
            +
            user = Files::User.list_for(path).first
         | 
| 390 | 
            +
             | 
| 389 391 | 
             
            user.resend_welcome_email
         | 
| 390 392 | 
             
            ```
         | 
| 391 393 |  | 
| @@ -399,7 +401,8 @@ user.resend_welcome_email | |
| 399 401 | 
             
            ## Trigger 2FA Reset process for user who has lost access to their existing 2FA methods
         | 
| 400 402 |  | 
| 401 403 | 
             
            ```
         | 
| 402 | 
            -
            user = Files::User. | 
| 404 | 
            +
            user = Files::User.list_for(path).first
         | 
| 405 | 
            +
             | 
| 403 406 | 
             
            user.user_2fa_reset
         | 
| 404 407 | 
             
            ```
         | 
| 405 408 |  | 
| @@ -413,7 +416,8 @@ user.user_2fa_reset | |
| 413 416 | 
             
            ## Update User
         | 
| 414 417 |  | 
| 415 418 | 
             
            ```
         | 
| 416 | 
            -
            user = Files::User. | 
| 419 | 
            +
            user = Files::User.list_for(path).first
         | 
| 420 | 
            +
             | 
| 417 421 | 
             
            user.update(
         | 
| 418 422 | 
             
              avatar_delete: true,
         | 
| 419 423 | 
             
              email: "john.doe@files.com",
         | 
| @@ -498,7 +502,8 @@ user.update( | |
| 498 502 | 
             
            ## Delete User
         | 
| 499 503 |  | 
| 500 504 | 
             
            ```
         | 
| 501 | 
            -
            user = Files::User. | 
| 505 | 
            +
            user = Files::User.list_for(path).first
         | 
| 506 | 
            +
             | 
| 502 507 | 
             
            user.delete
         | 
| 503 508 | 
             
            ```
         | 
| 504 509 |  |