MrShandy Posted November 21, 2022 Report Share Posted November 21, 2022 Попробовал загружать файлы через API, но почему то ругается Спойлер { "errorCode": "1S303/7", "errorMessage": "NO_CATEGEORY" } В postman отправлял такой JSON Спойлер {"category": 1, "author": 1, "title": "Test File", "description": "Test Description", "files": { "test.txt": "test file for some tests" } } Оборачивание цифр в кавычки ничего не дало В headers использовал content type application/json Категория с ID 1 точно существует, но почему то не работает. Помогите, пожалуйста Quote Link to comment Share on other sites More sharing options...
HooLIGUN Posted November 21, 2022 Report Share Posted November 21, 2022 https://invisioncommunity.com/developers/rest-api?endpoint=downloads/files/POSTindex 1 час назад, MrShandy сказал: Оборачивание цифр в кавычки ничего не дало category - тип int , нужно без кавычек Quote Link to comment Share on other sites More sharing options...
MrShandy Posted November 21, 2022 Author Report Share Posted November 21, 2022 20 минут назад, HooLIGUN сказал: https://invisioncommunity.com/developers/rest-api?endpoint=downloads/files/POSTindex category - тип int , нужно без кавычек Пробовал и 1 и "1". Разницы никакой Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.