# Set field properties

Change supported field parameters on an existing collection field.

SDK: `@zilliz/milvus2-sdk-node@3.0.10` · Tested with Milvus 3.0.6

Canonical documentation: https://milvus-io.github.io/milvus-sdk-node/rest-api/schema/fields/alter-properties/

## Section links

- [cURL command](https://milvus-io.github.io/milvus-sdk-node/rest-api/schema/fields/alter-properties/#curl-command)
- [Default request](https://milvus-io.github.io/milvus-sdk-node/rest-api/schema/fields/alter-properties/#default-request)
- [Sample response](https://milvus-io.github.io/milvus-sdk-node/rest-api/schema/fields/alter-properties/#sample-response)
- [Request fields](https://milvus-io.github.io/milvus-sdk-node/rest-api/schema/fields/alter-properties/#request-fields)

`POST /v2/vectordb/collections/fields/alter_properties`

Replace `https://your-cluster.example.com` with your Milvus endpoint. Set `MILVUS_TOKEN` for authentication or omit the Authorization header on an unauthenticated cluster.

## cURL command

```bash
curl --request POST --url 'https://your-cluster.example.com/v2/vectordb/collections/fields/alter_properties' \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer ${MILVUS_TOKEN}" \
  --data-raw '{
  "dbName": "default",
  "collectionName": "books",
  "fieldName": "title",
  "fieldParams": {
    "max_length": "256"
  }
}'
```

## Default request

```json
{
  "dbName": "default",
  "collectionName": "books",
  "fieldName": "title",
  "fieldParams": {
    "max_length": "256"
  }
}
```

## Sample response

```json
{
  "code": 0,
  "data": {}
}
```

## Request fields

- `dbName` string
  Database name. Operations on collections use default when omitted.
- `collectionName` string (required)
  Name of the collection.
- `fieldName` string (required)
  Name of the target field.
- `fieldParams` object
  Updated field parameters as a key-value object.

See [`HttpClient.alterCollectionFieldProperties`](https://milvus-io.github.io/milvus-sdk-node/api-reference/http-client/#altercollectionfieldproperties) for the Node.js SDK method.
