---
title: "Put Attribute Automation"
method: PUT
path: "/api/v1/attributes/{definition_id}/automation"
tags: ["attributes"]
---

# Put Attribute Automation

`PUT /api/v1/attributes/{definition_id}/automation`

Configure (upsert) an automation rule and run an initial sync.

## Path parameters

- `definition_id` string, uuid, required

## Request body

- AttributeAutomationWrite
  - `entity_id` string, uuid, required
  - `match_kind` 'email' | 'user_id', required
  - `match_column` string, required
  - `value_column` string, required

## Response `200`

Successful Response

- AttributeAutomationConfigured
  - `automation` AttributeAutomationRead, required
    - `definition_id` string, uuid, required
    - `entity_id` string, uuid, required
    - `match_kind` string, required
    - `match_column` string, required
    - `value_column` string, required
    - `is_active` boolean, required
    - `last_synced_at` string, date-time, nullable, required
    - `last_sync_matched` integer, nullable, required
    - `last_sync_unmatched` integer, nullable, required
  - `stats` AttributeSyncStats, required
    - `matched` integer, required
    - `unmatched` integer, required
    - `total_rows` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/netter/apis/dmi-backend.md) · [All operations](https://skmtc.net/netter/apis/dmi-backend/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netter/dmi-backend/versions/a59877bf911b/schema)
