The Wayback Machine - https://web.archive.org/web/20201029120145/https://github.com/directus/api/issues/1989
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

401 Error creating (with files) - via API #1989

Open
acamenhas opened this issue Oct 5, 2020 · 0 comments
Open

401 Error creating (with files) - via API #1989

acamenhas opened this issue Oct 5, 2020 · 0 comments

Comments

@acamenhas
Copy link

@acamenhas acamenhas commented Oct 5, 2020

Hi all,

I have a feedback collection:

feedback

My relation:
relation

And my public permissions:
roles

Without the last field "response_files", my post calls worked fine:

data post: {"client_id": "1", "subject": "test", "message": "test", "status": "published"}

When i create the "response_files" new field, it started to give a 401 error.
I also tried to pass a empty array, this no success:

data post: {"client_id": "1", "subject": "test", "message": "test", "response_files": [], "status": "published"}

I have many cases that I need to create a record without passing files.

Can anyone help me?

@acamenhas acamenhas changed the title 401 Error creating (with files) 401 Error creating (with files) - via API Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.