resource_file_readonly

Check if resource file is read-only because it's part of the filestore template threshold (configured with $fstemplate_alt_threshold).

Available from version 10.5+.

Variable Description Data type Default
$ref * Resource ID integer N/A

Response

A 200 HTTP status will be returned with a payload detailing if successful or a 400 status otherwise.

Examples

Bad input submitted (HTTP status - 400):

Array
(
    [status] => fail
    [data] => Array
        (
            [message] => ERROR - Resource IDs should be numeric please check your submission
        )
)

Resource file is NOT read-only:

Array
(
    [status] => success
    [data] => Array
        (
            [readonly] => false
        )
)

Resource file is read-only::

Array
(
    [status] => success
    [data] => Array
        (
             [readonly] => true
        )
)