> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Is valid UUID

> Checks if the value is a valid UUID.

export const FormField = ({property, label, required = false, diType, uiPatterns, children}) => {
  const patterns = Array.isArray(uiPatterns) ? uiPatterns : uiPatterns ? [uiPatterns] : [];
  return <div style={{
    margin: '1.5rem 0'
  }}>
      <div style={{
    display: 'flex',
    alignItems: 'baseline',
    flexWrap: 'wrap',
    gap: '0.5rem',
    marginBottom: '0.25rem'
  }}>
        <strong>{label}</strong>
        <span style={{
    fontSize: '0.7rem',
    fontWeight: 600,
    textTransform: 'uppercase',
    letterSpacing: '0.04em',
    color: required ? '#6241f5' : '#6b7280'
  }}>
          {required ? 'Required' : 'Optional'}
        </span>
      </div>

      <div>{children}</div>

      {diType || patterns.length > 0 ? <p style={{
    fontSize: '0.85rem',
    color: '#6b7280',
    marginBottom: 0
  }}>
          {diType ? <>
              See the <a href={`/references/${diType}`}>{diType}</a> reference.{' '}
            </> : null}
          {patterns.length > 0 ? <>
              Accepts a <a href={`/documentation/placeholders-and-patterns/patterns#${patterns[0]}`}>pattern</a>.
            </> : null}
        </p> : null}
    </div>;
};

Checks whether the incoming value is a valid UUID, the long unique identifier written as five groups of hexadecimal characters separated by dashes, such as `f47ac10b-58cc-4372-a567-0e02b2c3d479`. Use this to confirm an identifier field holds a properly shaped UUID before you use it as a key or pass it to another system, or to route records with a missing or malformed identifier down a different path. By default any valid UUID format is accepted; set a Version to require a specific kind of UUID.

This documentation describes: [Schema](/schemas/condition/format-uuid)

## Fields

<FormField property="version" label="Version">
  The kind of UUID you want to require. UUIDs come in several flavours that differ in how they are generated, and the kind is encoded inside the identifier itself. Choose **Any valid format** to accept any well-formed UUID, **NIL** to accept only the special all-zeros UUID, or one of **V1**, **V2**, **V3**, **V4**, or **V5** to accept only that specific kind. Most integrations use **Any valid format** unless the system you are working with mandates a particular version.
</FormField>

## Sample data

The condition was run against an identifier field with no version set, so any valid UUID format is accepted.

| Incoming value                         | Result         |
| -------------------------------------- | -------------- |
| `f47ac10b-58cc-4372-a567-0e02b2c3d479` | Matches        |
| `12345`                                | Does not match |

```json Configuration theme={null}
{
  "prototype": "format-uuid",
  "parameters": {}
}
```
