I’d need to see your request code to be sure, but at a guess you’re not passing it with application/x-www-form-urlencoded
Alternatively you could use our oauth2 wrappers, namely this one as every wrapper goes through request() function it will have the proper parameters passed with the calls.
I do appreciate that our oauth may not look overly great at the moment, there are severe changes coming to it, including a lot better shot at explaining the wrappers, documentations, logs etc.
In any case, I do think that you’re missing the application/x-www-form-urlencoded in your call.
I am able to upload, assign to a playlist, and schedule the playlist with no issues.
I was not passing application/x-www-form-urlencoded, but even with it added, I am getting the same results. I tried sending JSON as well, to match the generated example in the Swagger documentation and still no luck. The httpClient is a Guzzle client.
That is rather odd, I think we will need to look at it from the web ui side as well.
Can this file be deleted from web ui (with the checkbox enabled)?
If yes:
You can also navigate to the logs page, switch channel to API in filter and see what’s logged there when you execute your script (obviously in this case with different mediaId)
If not
Navigate to the Log page and see what’s logged when you try to delete it via web ui
Yes I tried yesterday to delete it via the web ui to ensure that it was working there. It deletes fine from the web ui.
I also tried to delete items via the api that had been added via the web ui, to ensure that I wasn’t doing something wrong when I was uploading via the api. Still couldn’t delete via the api, if the media is assigned.
It deletes as expected using the api if the media is not assigned.
Nothing is being logged when the 422 return code is generated.
I’m using the docker install, with an external mysql database, just for further info.