Manage ID Generation API
Learn how to manage ID generators for an RDM tenant.
Use the ID Generation API to manage generators that produce ID values for lookup types.
You can use this API to:
- List generators defined for a tenant
- Retrieve generator details
- Generate the next ID value
- Delete generators
HTTP method and endpoint
| Operation | HTTP method | Endpoint |
|---|---|---|
| List generators | GET | {{rdm_uri}}/generators/{{rdm_tenant_name}} |
| Get generator | GET | {{rdm_uri}}/generators/{{rdm_tenant_name}}/{{generator_name}} |
| Generate next value | GET | {{rdm_uri}}/generators/{{rdm_tenant_name}}/{{generator_name}}/generate |
| Delete generator | DELETE | {{rdm_uri}}/generators/{{rdm_tenant_name}}/{{generator_name}} |
| Parameter | Type | Required | Description |
|---|---|---|---|
rdm_tenant_name | String | Yes | The unique identifier of the tenant. Specifies the tenant context for the request. Example: |
rdm_uri | String | Yes | The base URI for the RDM service. Example: rdm.reltio.com |
generator_name | String | Yes (where applicable) | The name of the generator. Example: CountryIDGenerator |
Request headers
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | Yes |
Authorization | Bearer {{access_token}} | Yes |
Request body
The following table describes the request body parameters, including accepted values and defaults.
| Parameter | Type | Required | Description | Accepted values / Default |
|---|---|---|---|---|
name | String | Yes | Unique generator name for the tenant. | Example: CountryIDGenerator |
type | String | Yes | Generator type. | Accepted values: UUID, SEQUENTIAL |
rangeStart | Number | No | Starting value for a sequential generator. | Default: 0 Example: 100 |
currentValue | Number | No | Current generator value | For SEQUENTIAL: any non-negative integer ≥ rangeStart. For UUID: not applicable (field is not returned) |
Response body
The following table describes the fields returned in the response body.
| Field | Type | Description |
|---|---|---|
name | String | Generator name. |
type | String | Generator type. |
rangeStart | Number | Starting value for a sequential generator. Applicable only for SEQUENTIAL generators. |
currentValue | Number | Current generator value. Applicable only for SEQUENTIAL generators. |
List generators
- Example request
-
The following example shows a request for listing all generators configured for an RDM tenant.
GET https://rdm.reltio.com/generators/sample-rdm-tenant - Example response
-
The following example shows a response that lists the generators configured for an RDM tenant.
[ { "name": "Test_1", "type": "SEQUENTIAL", "rangeStart": 100, "currentValue": 105 }, { "name": "Test_2", "type": "UUID" }, { "name": "Test_3", "type": "UUID" } ]
Get generator
| SEQUENTIAL | UUID |
|---|---|
Example request:Example response: | Example request:Example response: |
Generate next value
Generates the next value for the specified generator. For a SEQUENTIAL generator, the system increments the current numeric value by 1 and returns the new value. For example, if the currentValue is 100, the response is 101. For a UUID generator, the system generates and returns a new unique identifier value.
The following table provides example requests and responses for each generator type.
| SEQUENTIAL | UUID |
|---|---|
Example request:Example response: | Example request:Example response: |
Delete generator
Deletes the specified generator from the RDM tenant.
- Example request
-
The following example shows a request for deleting the
CountrySequenceGeneratorgenerator.DELETE https://rdm.reltio.com/generators/sample-rdm-tenant/CountrySequenceGenerator
- Example response
-
The following example shows a response that confirms deletion of the
CountrySequenceGeneratorgenerator.[ { "status" : "success" } ]