docs/flow.md in losant_rest-1.2.3 vs docs/flow.md in losant_rest-1.3.0

- old
+ new

@@ -4,20 +4,60 @@ Flow resource, including the expected parameters and the potential responses. ##### Contents +* [Clear Storage Entries](#clear-storage-entries) * [Delete](#delete) * [Get](#get) * [Get Log Entries](#get-log-entries) * [Get Storage Entries](#get-storage-entries) * [Patch](#patch) * [Press Virtual Button](#press-virtual-button) * [Set Storage Entry](#set-storage-entry) <br/> +## Clear Storage Entries + +Clear all storage entries + +```ruby +result = client.flow.clear_storage_entries( + applicationId: my_application_id, + flowId: my_flow_id) + +puts result +``` + +#### Authentication +The client must be configured with a valid api access token to call this +action. The token must include at least one of the following scopes: +all.Application, all.Organization, all.User, flow.*, or flow.clearStorageEntries. + +#### Available Parameters + +| Name | Type | Required | Description | Default | Example | +| ---- | ---- | -------- | ----------- | ------- | ------- | +| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 | +| flowId | string | Y | ID associated with the flow | | 575ed18f7ae143cd83dc4aa6 | + +#### Successful Responses + +| Code | Type | Description | +| ---- | ---- | ----------- | +| 200 | [Workflow Storage Entries](_schemas.md#workflow-storage-entries) | The current storage entries | + +#### Error Responses + +| Code | Type | Description | +| ---- | ---- | ----------- | +| 400 | [Error](_schemas.md#error) | Error if malformed request | +| 404 | [Error](_schemas.md#error) | Error if flow was not found | + +<br/> + ## Delete Deletes a flow ```ruby @@ -161,10 +201,10 @@ #### Successful Responses | Code | Type | Description | | ---- | ---- | ----------- | -| 200 | [Workflow Storage Entries](_schemas.md#workflow-storage-entries) | The stored values | +| 200 | [Workflow Storage Entries](_schemas.md#workflow-storage-entries) | The current storage entries | #### Error Responses | Code | Type | Description | | ---- | ---- | ----------- |