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

API DELETE method doesn´t take body parameters #686

Closed
sandrovj opened this issue Mar 6, 2019 · 1 comment
Closed

API DELETE method doesn´t take body parameters #686

sandrovj opened this issue Mar 6, 2019 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@sandrovj
Copy link

sandrovj commented Mar 6, 2019

I´m trying to run the code below:

$Endpoint = New-UDEndpoint -Url "/admwin/" -Method "DELETE" -Endpoint {
param($Body)
$Parameters = $Body | ConvertFrom-Json
$Computer = $Parameters.Computer
$User = $Parameters.User

....

}

But, when I debug the code and try to get the values of $User and $Computer, both variables are empty.
Does DELETE method take data from body?

@adamdriscoll adamdriscoll added the enhancement New feature or request label Mar 7, 2019
@adamdriscoll
Copy link
Member

Looks like the delete method for the API was never setup to process the body. Will have to get that implemented.

@adamdriscoll adamdriscoll added this to the 2.4 milestone Mar 13, 2019
adamdriscoll added a commit that referenced this issue Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants