Skip to content

Commit

Permalink
fix: change organisation update endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
M4rc0Russ0 committed Mar 4, 2025
1 parent d853e61 commit 6cd2348
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public ResponseEntity<?> organisationCreate(@Valid @RequestBody OrganisationCrea
" \"detail\": \"Unable to create Organisation\"\n" +
"}"))})
})
@PutMapping(value = "/organisation/{orgId}", produces = "application/json")
@PostMapping(value = "/organisation/{orgId}", produces = "application/json")
@PreAuthorize("hasRole(@securityConfig.getManagerRole())")
public ResponseEntity<?> organisationUpdate(@PathVariable("orgId") @Parameter(example = "75f95560c1d883ee7628993da5adf725a5d97a13929fd4f477be0faf5020ca94") String orgId, @Valid @RequestBody OrganisationUpdate organisationUpdate) {
Optional<Organisation> organisationChe = organisationService.findById(orgId);
Expand Down

0 comments on commit 6cd2348

Please sign in to comment.