# Unable to change field type using API

**URL:** <https://community.dreamfactory.com/t/unable-to-change-field-type-using-api/3401>\
**Category:** Feature Requests, Bugs, Issues\
**Created:** [November 2, 2016, 10:38am UTC](https://community.dreamfactory.com/t/unable-to-change-field-type-using-api/3401 "2016-11-02T10:38:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijayst](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/vijayst/32/801_2.png) [@vijayst](https://community.dreamfactory.com/u/vijayst)\
**Post date:** [November 2, 2016, 10:38am UTC](https://community.dreamfactory.com/t/unable-to-change-field-type-using-api/3401/1 "2016-11-02T10:38:34Z")

</div>

I am unable to change the type of a field using the API.

I am using the PUT endpoint on PUT /xearch/\_schema/{table\_name}/{field\_name} replaceXearchField() - Update field type from string to integer as follows:

```
{
  "label": "Test 5",
  "type": "integer"
} 

```

The error message that I am receiving is

 ![](https://canada1.discourse-cdn.com/flex035/uploads/dreamfactory/original/1X/fd83934798a0f0aa2fb91fe935f8933fff301890.png)
