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

Not found response on create or update pipeline #83

Closed
hamcher opened this issue Jan 5, 2020 · 2 comments
Closed

Not found response on create or update pipeline #83

hamcher opened this issue Jan 5, 2020 · 2 comments

Comments

@hamcher
Copy link

hamcher commented Jan 5, 2020

use plural pipelines instead of pipeline in the url of create and update methods
according to the description of hubspot

https://api.hubapi.com/crm-pipelines/v1/pipelines/deals?hapikey=demo

    def create(self, object_type, data=None, **options):
        data = data or {}
        return self._call(
            "pipeline/{}".format(object_type), data=data, method="POST", **options
        )

    def update(self, object_type, key, data=None, **options):
        data = data or {}
        return self._call(
            "pipeline/{}/{}".format(object_type, key),
            data=data,
            method="PUT",
            **options
        )
@jpetrucciani
Copy link
Owner

Hmm, interesting - I'll see if I can get that updated here soon.

@jpetrucciani
Copy link
Owner

This fix is now live on pip as version 3.2.42

Thanks again for bringing this to my attention! 😄

@hamcher hamcher changed the title Not fouad response on create or update pipeline Not found response on create or update pipeline Jan 6, 2020
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

No branches or pull requests

2 participants