Update a JsonFabrica sequence
jsonfabrica_update_sequenceUpdate a named sequence's current value or step increment for jsonfabrica data generation. Set currentValue to reset the counter or step to change the increment; omitted fields remain unchanged.
Instructions
Calls PATCH /v1/sequences/{name}. Only the provided fields (currentValue, step) are changed; fields you omit are left as-is. Use this when you need to set an explicit currentValue (e.g. resetting a counter) or change the step amount — use jsonfabrica_bump_sequence instead when you just want to advance the sequence by its existing configured step. This overwrites the sequence's stored state in place immediately; there is no undo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact name of the sequence to update. Required. | |
| step | No | Changes the increment applied by future jsonfabrica_bump_sequence calls; must be a non-zero finite number (negative allowed, to count down). Optional; if omitted, the existing step is left unchanged. | |
| currentValue | No | Resets the sequence's current counter value to this number, without changing `step`. Optional; if omitted, the current value is left unchanged (unless `step` is also provided, in which case only `step` changes). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Sequence name. | |
| step | No | Increment applied per bump (ignored for "uuid"). | |
| type | Yes | Value kind produced on each bump. | |
| start | No | Initial value the sequence was created with. | |
| tenantId | Yes | Owning tenant id. | |
| createdAt | Yes | ISO-8601 creation timestamp. | |
| updatedAt | Yes | ISO-8601 last-update timestamp. | |
| currentValue | Yes | Current stored counter value (unused by "uuid" sequences). |