Edit File API
POST /editFile
Description
This API endpoint allows an admin to edit the details of an existing file by providing the file's unique identifier and the updated details such as title, description, URL, and associated roles.
Request Body
The request utilizes GraphQL to perform the editFile
mutation.
Mutation:
mutation editFile ($id: Int!, $file: FileEdit) {
editFile (id: $id, file: $file) {
id
title
description
url
}
}