Skip to main content

PUT

File (Update)

/api/v1/app/file/update/<int:file_id>

Endpoint

/api/v1/app/file/update/<int:file_id>

Headers

{
    "Content-Type": "application/json",
    "Authorization": "Bearer <str:token>"
}

Body

{
    "filename": "<str:filename>",
    "panel_id": "<int:panel_id>",
    "thread_id": "<int:thread_id>",
    "meta": {json}
}

Response

{
    "id": "<int:id>",
    "status": "success",
    "message": "File updated successfully",
    "filename": "<str:filename>",
    "filepath": "<str:filepath>",
    "panel_id": "<int:panel_id>",
    "thread_id": "<int:thread_id>",
    "created_by": "<str:created_by>",
    "created_on": "<datetime:created_on>",
    "updated_at": "<datetime:updated_at>",
    "meta": {json}
}