diff --git a/docs/content/dev/public_api.yml b/docs/content/dev/public_api.yml index e3fb3ebf7..545462ed5 100644 --- a/docs/content/dev/public_api.yml +++ b/docs/content/dev/public_api.yml @@ -346,7 +346,7 @@ paths: content: text/plain: example: my-note - /notes/{note}/permissions: + /notes/{note}/metadata/permissions: put: tags: [ note ] summary: Set permissions of a note diff --git a/src/api/public/notes/notes.controller.ts b/src/api/public/notes/notes.controller.ts index e50437867..8cf74bb4b 100644 --- a/src/api/public/notes/notes.controller.ts +++ b/src/api/public/notes/notes.controller.ts @@ -115,7 +115,7 @@ export class NotesController { } } - @Put(':noteIdOrAlias/permissions') + @Put(':noteIdOrAlias/metadata/permissions') async updateNotePermissions( @Param('noteIdOrAlias') noteIdOrAlias: string, @Body() updateDto: NotePermissionsUpdateDto,