Record ID Generators API
Work with auto-generated IDs.
Use the ID Generators API to work with auto-generated IDs:
All requests to this API require the URL of the server as shown in the following example:
POST{serverURL}/generators
ROLE_ADMIN
to complete the
POST{serverURL}/generators
request. Open a support ticket if you do
not have this credential.Generator Parameters
Example
{
"name": "Generator_NAME",
"type": "SEQUENTIAL",
"valueType" : "HEX",
"rangeStart" : "0"
"step": "1"
}
Name | Required | Description |
---|---|---|
Authorization | Yes | Bearer <access_token> |
Content-Type | Yes | application/json |
Parameter | Required | Default Value | Description |
---|---|---|---|
name | yes | Name of the generator. It should be unique across the environment. | |
type | yes |
SEQUENTIAL generators have boundaries:
| |
valueType | no | DECIMAL |
|
rangestart | no | "0" | The starting value in the sequence. Can be applied only to
SEQUENTIAL generators. If
|
step | no | The increment. If omitted, the default is 1. Can be applied only to
SEQUENTIAL generators. | |
rangeEnd | no | 9,223372037E18 | The ending value in the sequence. Can be applied only to
SEQUENTIAL generators.If
|
fixedLength | no |
Sets the fixed length for values by adding zeros before number. Can
be applied only to
If a generated value length exceeds the | |
uuidversion | yes, if type is UUID | The version of UUID s. Should be four (random UUIDs).
Can be applied only to UUID generators. | |
overflowRangeStart | no | The starting value for overflow range sequence. Used only if
rangeEnd is present. Can be applied only to
SEQUENTIAL
generators.Example:
The
auto-generated sequence is:
|