curl --request POST \
--url https://apix.spotzee.com/api/ext/generic/data/generate/helpers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data method=arrayElement{
"status": "success",
"data": {
"helpers": [
{
"method": "arrayElement",
"value": "alpha",
"input": {
"itemCount": 3
}
}
],
"generated": 1,
"locale": "en",
"method": "arrayElement"
},
"performance": {
"generationTime": 1,
"itemsGenerated": 1,
"locale": "en"
}
}Applies approved bounded helper operations for test fixtures, custom sample sets, weighted selections, object selections, slug and symbol templates, and constrained pattern strings. Callback and template-dispatch helpers are not exposed.
curl --request POST \
--url https://apix.spotzee.com/api/ext/generic/data/generate/helpers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data method=arrayElement{
"status": "success",
"data": {
"helpers": [
{
"method": "arrayElement",
"value": "alpha",
"input": {
"itemCount": 3
}
}
],
"generated": 1,
"locale": "en",
"method": "arrayElement"
},
"performance": {
"generationTime": 1,
"itemsGenerated": 1,
"locale": "en"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.spotzee.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer token authentication. Use format: Bearer YOUR_API_KEY
Approved safe helper method to apply.
arrayElement, arrayElements, weightedArrayElement, shuffle, objectKey, objectValue, objectEntry, enumValue, rangeToNumber, replaceSymbols, replaceCreditCardSymbols, slugify, fromRegExp, uniqueArray "arrayElement"
Number of helper records to generate (1-100). Passed as string but must be numeric.
^[1-9]\d?$|^100$"10"
Locale for generated data (e.g., en, es, fr, de, pt_BR, zh_CN)
"en"
Seed for deterministic generation. Same seed produces same results.
"12345"
JSON array of scalar values for arrayElement, arrayElements, shuffle, and uniqueArray. Maximum 100 entries.
"[\"alpha\",\"bravo\",\"charlie\"]"
JSON object with scalar values for objectKey, objectValue, objectEntry, and enumValue. Maximum 100 entries.
"{\"small\":1,\"medium\":2,\"large\":3}"
JSON array of weighted scalar values for weightedArrayElement. Each entry must include positive finite weight and scalar value.
"[{\"weight\":5,\"value\":\"sunny\"},{\"weight\":1,\"value\":\"rainy\"}]"
Text, symbol template, card-pattern template, slug input, or bounded pattern string for text-backed helper methods.
256"Hello world"
Helper output length for arrayElements and uniqueArray. Capped at 100.
^[1-9]\d*$"2"
Minimum count or numeric input for arrayElements and rangeToNumber.
^-?(?:\d+|\d*\.\d+)$"1"
Maximum count for arrayElements or maximum numeric range value for rangeToNumber.
^-?(?:\d+|\d*\.\d+)$"3"
Single replacement symbol for replaceCreditCardSymbols.
256"#"
Whether shuffle should use in-place behavior internally. The request input is never persisted.
true, false "false"
Successfully generated helper data
success Hide child attributes
Hide child attributes
Resolved helper method.
arrayElement, arrayElements, weightedArrayElement, shuffle, objectKey, objectValue, objectEntry, enumValue, rangeToNumber, replaceSymbols, replaceCreditCardSymbols, slugify, fromRegExp, uniqueArray "arrayElement"
Primary scalar helper output when the method returns one value.
"alpha"
Generated helper output when the method returns multiple values.
["bravo", "alpha"]Selected object key for object-backed methods.
"medium"
Selected object entry as key and value.
["medium", 2]Summary of bounded input used by the helper.
Hide child attributes
Number of input array items.
3
Number of input object keys.
3
Number of weighted input entries.
2
Length of the supplied text input.
11
Requested helper output length.
2
Minimum numeric input used by the helper.
1
Maximum numeric input used by the helper.
3
Replacement symbol used by the helper.
"#"
Whether shuffle used in-place behavior internally.
false
arrayElement, arrayElements, weightedArrayElement, shuffle, objectKey, objectValue, objectEntry, enumValue, rangeToNumber, replaceSymbols, replaceCreditCardSymbols, slugify, fromRegExp, uniqueArray Was this page helpful?