@@ -208,7 +208,6 @@ public async Task<OrganizationSponsorshipSyncResponseModel> Sync([FromBody] Orga
208208
209209 [ Authorize ( "Application" ) ]
210210 [ HttpDelete ( "{sponsoringOrganizationId}" ) ]
211- [ HttpPost ( "{sponsoringOrganizationId}/delete" ) ]
212211 [ SelfHosted ( NotSelfHostedOnly = true ) ]
213212 public async Task RevokeSponsorship ( Guid sponsoringOrganizationId )
214213 {
@@ -225,6 +224,15 @@ public async Task RevokeSponsorship(Guid sponsoringOrganizationId)
225224 await _revokeSponsorshipCommand . RevokeSponsorshipAsync ( existingOrgSponsorship ) ;
226225 }
227226
227+ [ Authorize ( "Application" ) ]
228+ [ HttpPost ( "{sponsoringOrganizationId}/delete" ) ]
229+ [ Obsolete ( "This endpoint is deprecated. Use DELETE /{sponsoringOrganizationId} instead." ) ]
230+ [ SelfHosted ( NotSelfHostedOnly = true ) ]
231+ public async Task PostRevokeSponsorship ( Guid sponsoringOrganizationId )
232+ {
233+ await RevokeSponsorship ( sponsoringOrganizationId ) ;
234+ }
235+
228236 [ Authorize ( "Application" ) ]
229237 [ HttpDelete ( "{sponsoringOrgId}/{sponsoredFriendlyName}/revoke" ) ]
230238 [ SelfHosted ( NotSelfHostedOnly = true ) ]
@@ -241,7 +249,6 @@ public async Task AdminInitiatedRevokeSponsorshipAsync(Guid sponsoringOrgId, str
241249
242250 [ Authorize ( "Application" ) ]
243251 [ HttpDelete ( "sponsored/{sponsoredOrgId}" ) ]
244- [ HttpPost ( "sponsored/{sponsoredOrgId}/remove" ) ]
245252 [ SelfHosted ( NotSelfHostedOnly = true ) ]
246253 public async Task RemoveSponsorship ( Guid sponsoredOrgId )
247254 {
@@ -257,6 +264,15 @@ public async Task RemoveSponsorship(Guid sponsoredOrgId)
257264 await _removeSponsorshipCommand . RemoveSponsorshipAsync ( existingOrgSponsorship ) ;
258265 }
259266
267+ [ Authorize ( "Application" ) ]
268+ [ HttpPost ( "sponsored/{sponsoredOrgId}/remove" ) ]
269+ [ Obsolete ( "This endpoint is deprecated. Use DELETE /sponsored/{sponsoredOrgId} instead." ) ]
270+ [ SelfHosted ( NotSelfHostedOnly = true ) ]
271+ public async Task PostRemoveSponsorship ( Guid sponsoredOrgId )
272+ {
273+ await RemoveSponsorship ( sponsoredOrgId ) ;
274+ }
275+
260276 [ HttpGet ( "{sponsoringOrgId}/sync-status" ) ]
261277 public async Task < object > GetSyncStatus ( Guid sponsoringOrgId )
262278 {
0 commit comments