Jump to content

Загрузка файлов по API

Featured Replies

Posted

Попробовал загружать файлы через 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 точно существует, но почему то не работает. Помогите, пожалуйста :)

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.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.