You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sources/platform/actors/development/actor_definition/input_schema/specification.md
+23-12Lines changed: 23 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -831,9 +831,9 @@ As with objects, the sub-schema feature for arrays only works for level 1 sub-pr
831
831
Resource type identifies what kind of Apify Platform object is referred to in the input field. For example, the Key-value store resource type can be referred to using a string ID.
832
832
Currently, it supports storage resources only, allowing the reference of a Dataset, Key-Value Store or Request Queue.
833
833
834
-
For Actor developers, the resource input value is a string representing the storage ID.
835
-
The type of the property is either `string` or `array`. In case of `array` (for multiple resources) the return value is an array of IDs.
836
-
In the user interface, a picker is provided for easy selection, where users can search and choose from their own storages or those they have access to.
834
+
For Actor developers, the resource input value is a string representing either the resource ID or (unique) name.
835
+
The type of the property is either `string` or `array`. In case of `array` (for multiple resources) the return value is an array of IDs or names.
836
+
In the user interface, a picker (`resourcePicker` editor) is provided for easy selection, where users can search and choose from their own resources or those they have access to.
837
837
838
838
Example of a Dataset input:
839
839
@@ -869,12 +869,23 @@ Rendered input:
869
869
870
870

|`type`| One of <ul><li>`string`</li><li>`array`</li></ul> | Yes | Specifies the type of input - string for single value or array for multiple values |
877
-
|`editor`| One of <ul><li>`resourcePicker`</li><li>`hidden`</li></ul> | No | Visual editor used for <br/>the input field. Defaults to `resourcePicker`. |
878
-
|`resourceType`| One of <ul><li>`dataset`</li><li>`keyValueStore`</li><li>`requestQueue`</li></ul> | Yes | Type of Apify Platform resource |
879
-
|`minItems`| Integer | No | Minimum number of items the array can contain. Only for `type: array`|
880
-
|`maxItems`| Integer | No | Maximum number of items the array can contain. Only for `type: array`|
|`type`|`string`| Yes | Specifies the type of input - `string` for single value. |
877
+
|`editor`| One of <ul><li>`resourcePicker`</li><li>`textfield`</li><li>`hidden`</li></ul> | No | Visual editor used for <br/>the input field. Defaults to `resourcePicker`. |
878
+
|`resourceType`| One of <ul><li>`dataset`</li><li>`keyValueStore`</li><li>`requestQueue`</li></ul> | Yes | Type of Apify Platform resource |
879
+
|`pattern`| String | No | Regular expression that will be used to validate the input. If validation fails, the Actor will not run. |
880
+
|`minLength`| Integer | No | Minimum length of the string. |
881
+
|`maxLength`| Integer | No | Maximum length of the string. |
|`type`|`array`| Yes | Specifies the type of input - `array` for multiple values. |
888
+
|`editor`| One of <ul><li>`resourcePicker`</li><li>`hidden`</li></ul> | No | Visual editor used for <br/>the input field. Defaults to `resourcePicker`. |
889
+
|`resourceType`| One of <ul><li>`dataset`</li><li>`keyValueStore`</li><li>`requestQueue`</li></ul> | Yes | Type of Apify Platform resource |
890
+
|`minItems`| Integer | No | Minimum number of items the array can contain. |
891
+
|`maxItems`| Integer | No | Maximum number of items the array can contain. |
0 commit comments