SchemasApi
@interface SchemasApi : NodeDependant
Provides access to Textile schemas related APIs
-
Add a new schema
Declaration
Objective-C
- (id)add:(id)schemaNode error:(NSError *_Nullable *_Nullable)error;
Swift
func add(_ schemaNode: Any!) throws -> Any
Parameters
schemaNode
The node that describes the new schema to add
error
A reference to an error pointer that will be set in the case of an error
Return Value
The FileIndex representing the added schema