About this endpoint
What it does
Generates a UUID and returns it as a JSON object with the generated uuid string and its version integer. Use the version query parameter to choose UUID v1 or v4; if omitted, the default is v4.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| version | Integer | No | Allowed values: 1, 4.<br>Default: 4. |
Response
Returns a JSON object with a uuid string field and a version integer field.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| uuid | String | Yes | The generated UUID string. |
| version | Integer | Yes | The UUID version used to generate uuid. |