I have even tried with files=@… and with files[ ]=@… and I am getting in the three cases: {“type”:“invalidParamError”,“title”:“Invalid request body”,“detail”:“Missing parameter: ‘files’”}
I have an API and I also tested with a smaller sample:
openapi: 3.0.0
info:
title: Simple Test API
version: 1.0.0
paths:
/ping:
get:
summary: Health check
responses:
'200':
description: OK.
It works to import directly from postman, but I want to do it from a bash.
What seems to be the problem
{
"error": {
"name": "instanceNotFoundError",
"message": "Missing request header. For v10 and later APIs, ensure that your request sends the \"application/vnd.api.v10+json\" Accept header."
}
}
Based only on that response - We can’t actually see what’s been done here.
We’re unable to see what you have in front of you, without more visual information about what it looked like before and what you’re expecting to see changed after your update - It’s going to be difficult for us to suggest anything.
Are you looking for a change in the UI? Does refreshing the UI show the change?
It looks like you’re using this request but the request body you have sent doesn’t match that request.
Hi, @mbraidy!
The API PUT endpoint only updates the API resource, not the schema files. To update files, you have to use the schema files APIs (the PUT operation).
Basically, an API has a schema, and the schema has files that you can update.
You can find information and code related to the APIs APIs in this article.