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

Patch Event wrong path #13

Closed
tilchl opened this issue Nov 1, 2023 · 1 comment
Closed

Patch Event wrong path #13

tilchl opened this issue Nov 1, 2023 · 1 comment

Comments

@tilchl
Copy link

tilchl commented Nov 1, 2023

in events_api.py>EventsApi>patch_event_with_http_info
the call is made to /events/{id} which returns HTTP response body: b'{"code":404,"message":"Resource Not Found","description":"The resource was not found."}'

        return self.api_client.call_api(
            '/events/{id}', 'PATCH',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Event',  # noqa: E501
            auth_settings=auth_settings,
            async_req=params.get('async_req'),
            _return_http_data_only=params.get('_return_http_data_only'),
            _preload_content=params.get('_preload_content', True),
            _request_timeout=params.get('_request_timeout'),
            collection_formats=collection_formats)

I think this should be /event/{id}

@NicolasCARPi
Copy link
Contributor

Hello,

Thank you for reporting this issue. It is fixed in https://github.com/elabftw/elabapi-python/releases/tag/0.4.1

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

No branches or pull requests

2 participants