Addyvan opened a new issue, #18011:
URL: https://github.com/apache/pulsar/issues/18011

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Version
   
   2.10.1
   
   ### Minimal reproduce step
   
   
   I'm running a python script:
   ```python
   import requests
   
   properties = { "test": "test" }
   
   headers={ 'Content-Type': 'application/json' }
   resp = requests.put(
       
f"{PULSAR_ADMIN_ENDPOINT}/admin/v2/persistent/{tenant}/{namespace}/{topic}/properties",
       data=properties,
       headers=headers
   )
   
   print(resp)
   print(resp.reason)
   ```
   
   Response:
   ```
   <Response [405]>
   Method Not Allowed
   ```
   
   This should be the equivalent curl command: 
   ```bash
   curl -L 
http://<ENDPOINT>:8080/admin/v2/persistent/<tenant>/<namespace>/<topic>/properties
 -X PUT -H 'Content-Type: application/json' -d '{"test":"test"}'
   ```
   
   
   ### What did you expect to see?
   
   Response code 200 or 204 with the topic's properties having been updated. 
   
   ### What did you see instead?
   
   Response code 405 with the topic's properties remaining the same. 
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to