---
title: "Update a custom field already created"
method: PATCH
path: "/position/custom-fields"
tags: ["CustomFields"]
---

# Update a custom field already created

`PATCH /position/custom-fields`

Update a custom field. If fieldtype is "select" and options is not sent, it will get its past options. Also, it can not exist more than one location field of the same type, example: two fields of type cities, two fields of type states, two fields of type countries

## Request body

- object
  - `title` string — Title of the field
  - `fieldType` 'text' | 'select' | 'number' | 'boolean' | 'date' | 'cities' | 'states' | 'countries' | 'customFieldFile' — Typeof field you want to edit into. If fieldtype is "select" and options is not sent, it will get its past options. Also, it is not possible to exist more than one location field of the same type (example: two fields of "cities" type)
  - `options` string[] — Options to be selected when fieldType is "select"
  - `isRequired` boolean — Decides whether the field is mandatory or not
  - `isIntegrated` boolean — Decides whether the field should be integrated or not
  - `propertyId` string, required — Internal property id

## Response `200`

Successful operation

- object
  - `id` number
  - `companyId` number
  - `jsonSchema` object
    - `type` string
    - `required` string[] — List of fields internal id that are mandatory to answer
    - `properties` object
      - `field` object
        - `type` string
        - `title` string
        - `enum` string[] — Here are the options to be selected when fieldtype is select
        - `isIntegrated` boolean
        - `isDefault` boolean
  - `uiSchema` object
    - `field` object
      - `ui:field` string — typeof field
    - `ui:order` string[]

## Other responses

- `400` — Bad request

---

[API](https://skmtc.net/gupy/apis/gupy-public-api.md) · [All operations](https://skmtc.net/gupy/apis/gupy-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gupy/gupy-public-api/versions/3f26defa2a42/schema)
