# Attribute

Manage custom lead attributes in your Tomba account.

## Usage

```bash
tomba attribute list
tomba attribute get --id <attribute_id>
tomba attribute create --name "<name>" --type "<type>"
tomba attribute update --id <attribute_id> --name "<new_name>"
tomba attribute delete --id <attribute_id>
```

## Examples

### List Attributes

```bash
tomba attribute list
tomba attribute list --json
```

### Create Attribute

```bash
tomba attribute create --name "Company Size" --type "string"
tomba attribute create --name "Deal Value" --type "number"
tomba attribute create --name "Last Contact" --type "date"
```

### Get Attribute

```bash
tomba attribute get --id 123
```

### Update Attribute

```bash
tomba attribute update --id 123 --name "Updated Name"
```

### Delete Attribute

```bash
tomba attribute delete --id 123
```

## HTTP call

```bash
# List attributes
curl --request GET \
  --url 'http://127.0.0.1:3001/attributes'

# Create attribute
curl --request POST \
  --url 'http://127.0.0.1:3001/attributes' \
  --header 'Content-Type: application/json' \
  --data '{"name": "Company Size", "type": "string"}'

# Delete attribute
curl --request DELETE \
  --url 'http://127.0.0.1:3001/attributes/123'
```
