Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.gravixlayer.ai/llms.txt

Use this file to discover all available pages before exploring further.

Sets permission bits using a chmod-style octal string (for example "644" or "0755").
from gravixlayer import GravixLayer

client = GravixLayer()
runtime = client.runtime.create(template="python-3.14-base-small")

# Create the file first so we have something to chmod
runtime.file.write("/workspace/file.txt", "hello\n")

runtime.file.set_permissions("/workspace/file.txt", "644")

runtime.kill()

Parameters

ParameterTypeRequiredDescription
pathstringYesFile or directory path
modestringYesOctal mode string, e.g. "644", "0755"

Response (SetPermissionsResponse)

FieldTypeDescription
messagestringConfirmation message
successbooleanWhether the operation succeeded