Assign Files

Add files to a class.

Request

POST https://test-uni.cloudplan.biz/api/docclass/assign_files

{
    "class_id": ...       //(string) the class to be assigned
    "file_ids": ["..."]   //(list of strings) file ids to be assinged
}

Example 0

REQUEST
{
    "class_id": "5FCA267D02E8E1A82F0B87F6C145DE35",
    "file_ids": ["BBFBCD5F127652CCF6CB945E49BF2E2B"]
}

REPLY
{
    "result": true
}

Error Codes

file_not_indexed_centrally

error codes from :doc:`api/user/login`