Skip to content

Commit

Permalink
fix: publishing view must use POST instead of PUT (#55)
Browse files Browse the repository at this point in the history
* Convert PUT to POST

It's unable to publish with a specific version in the params. To resolve it , it must be POST and also based on the documentation they use POST instead of PUT

* fix: publish view put to post
  • Loading branch information
glespinosa authored May 10, 2024
1 parent e3bb34d commit daebb97
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/FetchWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,9 @@ export default class FetchWrapper {
let url =
this.getInstanceAPIURL() +
this.instanceAPIEndpoints.views +
"/" +
viewZUID +
"?action=publish"
return await this.makeRequest(url, "PUT", payload)
`/${viewZUID}?action=publish`

return await this.makeRequest(url, "POST", payload)
}

// APP installations Section
Expand Down

0 comments on commit daebb97

Please sign in to comment.