API Reference
Shares
Check app.capabilities for feature support and app.access plus host permissions for authorization. Examples use synthetic values; replace paths, IDs, inputs and filters before calling.
Type Definitions
graphql
type Mutation {
createShare(input: ShareInput!): Share!
deleteShare(id: ID!): Boolean!
updateShare(id: ID!, input: ShareInput!): Share!
}
type Query {
share(id: ID!): Share
shares: [Share!]!
}
scalar Instant
type Share {
id: ID!
name: String!
password: String!
expiresAt: Instant
readOnly: Boolean!
data: [SharePath!]!
url: String!
}
input ShareInput {
name: String!
password: String!
expiresAt: Instant
readOnly: Boolean!
data: [SharePathInput!]!
}
type SharePath {
virtualPath: String!
realPath: String!
isDir: Boolean!
}
input SharePathInput {
virtualPath: String!
realPath: String!
isDir: Boolean!
}