﻿# EntityModelSetUniqueKeysRequest

Schema definition for EntityModelSetUniqueKeysRequest

# EntityModelSetUniqueKeysRequest

Schema definition for EntityModelSetUniqueKeysRequest

## Schema Viewer

<JsonSchemaViewer
  schema={schema}
  name="EntityModelSetUniqueKeysRequest"
  category="model"
  bases={[{ name: "BaseEvent", url: "/reference/schemas/common/base-event/", category: "common", schema: base0 }]}
  client:load
/>

## Description

This schema defines the structure and validation rules for EntityModelSetUniqueKeysRequest.

## Properties

- **model** (object, required): Entity model specification. The model must be unlocked.
- **uniqueKeys** (array, required): The model's composite unique keys. They replace the keys the model has; an empty array removes them all.

### Inherited from [BaseEvent](/reference/schemas/common/base-event/)

- **error** (object): Error details (if present).
- **id** (string, required): Event ID.
- **success** (boolean): Flag indicates whether this message relates to some failure.
- **warnings** (array): Warnings (if applicable).

## Related Schemas

See other schemas in the [model](/reference/schemas/model/) category.