Record ID Generators API
Learn about configure and use the Record ID Generators API to generate unique IDs for entity records.
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}/generatorsROLE_ADMIN_TENANT to complete a POST{serverURL}/generators request. Open a Support ticket if you do not have this credential, see Contact a support person.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 UUIDs. 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:
| |
overflowConfig | no | Overflow handling strategy configuration. See also overflowRangeStart. |