# UUIDs

Generate a UUID as the value of a property in your schema, which will be generated and added to the Record at the time a Record is created.

* Versions supported include `v1`, `v3`, `v4,` `v5` and `short`
* If the version is unspecified, the default is currently `v4`

{% tabs %}
{% tab title="UUID v4" %}
{% code title="Generate a UUID" %}

```json
  "properties": {
    "myPropertyName": {
      "type": "string",
      "generate": {
        "type": "uuid",
        "format": "v4"
      }
    }
```

{% endcode %}

Example of generated value:

`3024e0fb-c080-4799-9e83-2ce54b165144`
{% endtab %}

{% tab title="Short UUID" %}
{% code title="Generate a Short UUID" lineNumbers="true" %}

```json
  "properties": {
    "myPropertyName": {
      "type": "string",
      "generate": {
        "type": "uuid",
        "format": "short"
      }
    }
```

{% endcode %}

Example of generated value:

`n3hF48shChakhS8hayPnyk`
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.contextual.io/documentation-and-resources/components-and-data/object-types/object-type-details/data-schema/generated-properties/uuids.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
