# Update a Custom field

## Update a Custom Field

<mark style="color:orange;">`PUT`</mark> `https://{{accountSlug}}.myeshopbox.com/api/platform/v1/property`

The endpoint allows you to update custom field.

#### Headers

| Name          | Type   | Description                                  |
| ------------- | ------ | -------------------------------------------- |
| Authorization | string | The Bearer token to grant access to the API. |

#### Request Body

| Name         | Type    | Description                                                                    |
| ------------ | ------- | ------------------------------------------------------------------------------ |
| label        | string  | It is the name with which the property will be identified.                     |
| internalName | string  | It is the unique name of the property.                                         |
| description  | string  | Short description of the property.                                             |
| isUnique     | boolean | It states whether the property is unique or not.                               |
| fieldType    | string  | It is the data type of property .                                              |
| options      | object  | Options are there, when the client selects`single_selects` or `multi_selects`. |
| scope        | object  | It is the name of the module to which property can be assigned.                |
| createdAt    | string  | Creation date and time.                                                        |
| updatedAt    | string  | Updation date and time.                                                        |

{% tabs %}
{% tab title="200 Custom field successfully updated." %}

```
{
    "items": [
        {
            "label": "fabric",
            "internalName": "style type",
            "description": "this is style code type property",
            "isUnique": "yes",
            "fieldType": "multi_select",
            "options": [
                "rock",
                "classy"
            ],
            "scope": [
                "product"
            ],
            "createdAt": "2020-03-09T17:16:20.645+05:30",
            "updatedAt": "2020-03-17T11:31:24.193+05:30"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="curl" %}

```
curl --location --request PUT 'http://localhost:8080/_ah/api/esb/v1/property' \
--header 'Content-Type: application/json' \
--header 'Authorization: ' \
--data-raw '{
   
    "internalName": "style type",
    "description": "this is style code type property",
    "isUnique": "yes"
   
}'
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://eshop.gitbook.io/eshopbox-developers/advanced/custom-fields/update-a-custom-field.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
