Skip to content
Snippets Groups Projects
Verified Commit 12b732b8 authored by Martin Weise's avatar Martin Weise
Browse files

Wrong code

parent 844dbc51
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -1673,7 +1673,7 @@ class RestClient:
"""
url = f'/api/identifier/{identifier_id}/publish'
response = self._wrapper(method="put", url=url, force_auth=True)
if response.status_code == 202:
if response.status_code == 201:
body = response.json()
return Identifier.model_validate(body)
if response.status_code == 400:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment