mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
* Expose Saved Objects client in request context * API Integration test for savedobjects in req context * SavedObjectsClient docs * SavedObjectsClient#find remove dependency on indexPatterns And use the saved objects mappings instead * Review comments * Review comments, fixes and tests * Use correct type for KQL syntax check
806 B
806 B
Home > kibana-plugin-server > SavedObjectsClient > create
SavedObjectsClient.create() method
Persists a SavedObject
Signature:
create<T extends SavedObjectAttributes = any>(type: string, attributes: T, options?: SavedObjectsCreateOptions): Promise<SavedObject<T>>;
Parameters
Parameter | Type | Description |
---|---|---|
type | string |
|
attributes | T |
|
options | SavedObjectsCreateOptions |
Returns:
Promise<SavedObject<T>>