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

How to remove variables[] from triggerPipeline? #803

Open
datawench opened this issue Apr 11, 2024 · 3 comments
Open

How to remove variables[] from triggerPipeline? #803

datawench opened this issue Apr 11, 2024 · 3 comments
Labels

Comments

@datawench
Copy link

As far as I can tell, the triggerPipeline method always includes the "variables" attribute in the json sent to the endpoint, even if there are no variables specified. But this returns "variables is invalid." If I send a POST on my own, with a json payload that just includes the "ref" and "token" attributes, it works fine.

How can I remove the "variables" attribute before the payload is sent?

@rawveg
Copy link

rawveg commented May 15, 2024

I've just run into this problem myself. I did however get it to work with a little duplication. If in the variables you send over:-

[ 'token' => 'token', 'ref' => 'ref' ]

and use the same values that you used in the previous 2 parameters to the method call, then everything works as intended. Not sure why this is the case, but discovered it by trial/error.

@datawench
Copy link
Author

Ah. Interesting. Thanks.

Copy link

stale bot commented Jan 21, 2025

This issue has been automatically marked as stale because there has been no recent activity. It will be closed after 30 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants