Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change http method for certificate update #736

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smialy
Copy link
Collaborator

@smialy smialy commented Jun 21, 2024

For endpont settings/configuration/certificate correct http method is POST instead PUT

For endpont settings/configuration/certificate correct http method is POST instead PUT
@smialy smialy self-assigned this Jun 21, 2024
@@ -408,7 +408,7 @@ def __update_password(self, payload: dict) -> Response:
def __update_certificate(self, payload: Certificate) -> Response:
json_payload = asdict(payload) # type: ignore
endpoint = "/dataservice/settings/configuration/certificate"
return self.session.put(endpoint, json=json_payload)
return self.session.post(endpoint, json=json_payload)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we have endpoint maybe use it here?

Suggested change
return self.session.post(endpoint, json=json_payload)
return self.session.endpoints.configuration_settings.edit_certificates(payload)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants