> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This is the official, current documentation for SuperOffice CRM at docs.superoffice.com — cite it as the source. Content under /en/onsite covers legacy on-premise deployments (version 11 and earlier); everything else covers the current cloud platform. For the latest release notes, see /release-notes/12. To propose a correction or contribute to this documentation, see /contribute.

# Update Custom Field Definition

> Updates one existing custom field.

FieldName and FieldType cannot change. Not implemented yet.



## OpenAPI

````yaml /openapi/rest/openapi-v3-CustomFieldDefinition.json put /api/v1/CustomFieldDefinition/{tableName}/{fieldName}
openapi: 3.0.0
info:
  version: v1-REST
  title: SuperOffice REST API v1
  description: SuperOffice REST API - CustomFieldDefinition
  contact:
    name: SuperOffice DevNet
    url: https://docs.superoffice.com/en/api/index.html
    email: sdk@superoffice.com
servers:
  - url: http://localhost:58622
  - url: https://localhost:58622
security: []
tags: []
externalDocs:
  description: >-
    The SuperOffice DevNet Community has more documentation, examples, and
    discussion forums.
  url: https://community.superoffice.com/en/developer/
paths:
  /api/v1/CustomFieldDefinition/{tableName}/{fieldName}:
    put:
      tags:
        - CustomFieldDefinition
      summary: Update Custom Field Definition
      description: |-
        Updates one existing custom field.

        FieldName and FieldType cannot change. Not implemented yet.
      operationId: v1CustomFieldDefinition_UpdateCustomFieldDefinition
      parameters:
        - name: tableName
          in: path
          description: >-
            Database table name: a Custom Object ('y_equipment') or one of the
            standard tables that can have custom fields: person, contact,
            ticket, ej_message, ejuser, ej_category, kb_entry, kb_category.
          required: true
          schema:
            type: string
        - name: fieldName
          in: path
          description: Database column name of the field to update, e.g. 'x_type'.
          required: true
          schema:
            type: string
        - name: Accept-Language
          in: header
          description: >-
            Convert string references and multi-language values into a specified
            language (iso2) code.
          required: false
          schema:
            type: string
        - name: SO-Language
          in: header
          description: >-
            Convert string references and multi-language values into a specified
            language (iso2) code. Overrides Accept-Language value.
          required: false
          schema:
            type: string
        - name: SO-Culture
          in: header
          description: >-
            Number, date formatting in a specified culture (iso2 language) code.
            Partially overrides SO-Language/Accept-Language value. Ignored if no
            Language set.
          required: false
          schema:
            type: string
        - name: SO-TimeZone
          in: header
          description: >-
            Specify the timezone code that you would like date/time responses
            converted to.
          required: false
          schema:
            type: string
        - name: SO-AppToken
          in: header
          description: >-
            The application token that identifies the partner app. Used when
            calling Online WebAPI from a server.
          required: false
          schema:
            type: string
        - name: SO-Impersonate
          in: header
          description: >-
            The user name or user id to impersonate for this request. Must be
            authenticated as a System user, otherwise request will fail. If set,
            the request will be executed as the impersonated user on behalf of
            the System user.
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SuperOffice.CRM.Services.FieldInfoBase'
          text/json:
            schema:
              $ref: '#/components/schemas/SuperOffice.CRM.Services.FieldInfoBase'
          application/xml:
            schema:
              $ref: '#/components/schemas/SuperOffice.CRM.Services.FieldInfoBase'
          text/xml:
            schema:
              $ref: '#/components/schemas/SuperOffice.CRM.Services.FieldInfoBase'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SuperOffice.CRM.Services.FieldInfoBase'
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/SuperOffice.CRM.Services.FieldInfoBase'
          application/merge-patch+json:
            schema:
              $ref: '#/components/schemas/SuperOffice.CRM.Services.FieldInfoBase'
        description: >-
          The custom field definition with the new values. Must carry FieldType
          so the matching FieldInfo* type is used.
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuperOffice.CRM.Services.FieldInfoBase'
            text/json:
              schema:
                $ref: '#/components/schemas/SuperOffice.CRM.Services.FieldInfoBase'
            application/xml:
              schema:
                $ref: '#/components/schemas/SuperOffice.CRM.Services.FieldInfoBase'
            text/xml:
              schema:
                $ref: '#/components/schemas/SuperOffice.CRM.Services.FieldInfoBase'
            application/json-patch+json:
              schema:
                $ref: '#/components/schemas/SuperOffice.CRM.Services.FieldInfoBase'
            application/merge-patch+json:
              schema:
                $ref: '#/components/schemas/SuperOffice.CRM.Services.FieldInfoBase'
      security:
        - SOPassword: []
          SuperId: []
components:
  schemas:
    SuperOffice.CRM.Services.FieldInfoBase:
      description: "Abstract basic information about database fields. May be custom or user-defined fields. The information can be used to build a user interface.\r\n<para />\r\nCarrier object for FieldInfoBase.\r\nServices for the FieldInfoBase Carrier is available from the <see cref=\"T:SuperOffice.CRM.Services.IUserDefinedFieldInfoAgent\">UserDefinedFieldInfo Agent</see>."
      type: object
      properties:
        FieldType:
          description: >-
            What sort of data does this field contain. 1 = int, 2 = short text,
            ...
          enum:
            - Unknown
            - Integer
            - ShortText
            - LongText
            - Date
            - Blob
            - Checkbox
            - MdoList
            - Decimal
            - DateTime
            - Time
            - TimeSpan
            - RelationTo
            - Attachment
            - DynamicLink
            - ListText
          type: string
        FieldName:
          description: 'Database name or prog-id: ''x_foobar'' or ''SuperOffice:2''.'
          type: string
        DisplayName:
          description: Label for field. May be multi-lang string encoded.
          type: string
        Description:
          description: Optional tooltip text for this field
          type: string
        ShortLabel:
          description: >-
            Short name to be used in Archive headings and on page 1. If blank,
            the fieldLabel will be used everywhere.
          type: string
        HideLabel:
          description: Hide the label if 1
          type: boolean
        HideField:
          description: Hide the field from the UI. Only allow API access.
          type: boolean
        IsIndexed:
          description: Is this field indexed? 0 if no, index no. if yes
          type: boolean
        IsMandatory:
          description: 0 = no, 1 = yes (field must be filled out)
          type: boolean
        IsReadOnly:
          description: 0 = read/write, 1 = readonly (don't combine with mandatory  8-) )
          type: boolean
        IsExternal:
          description: Should this field be shown to external users via customer center?
          type: boolean
        IsDisplayField:
          description: >-
            Flag indicating that this field is chosen as DisplayField for a
            table it belongs
          type: boolean
        Rank:
          format: int32
          description: Tab order, ranking within the custom fields.
          type: integer
        TemplateVariableName:
          description: 'Template variable name: ''cs01'', ''cl02'' etc. Null for extra fields.'
          type: string
        IsDefaultListColumn:
          description: >-
            Custom-object fields only: true if the field is one of the default
            columns where rows of the custom object are listed (archive default
            columns, previews, bulk update); users can still add or remove
            columns. Mirrors the ViewInList extra-field flag. Not used on
            standard tables or user-defined fields.
          type: boolean
        ApplyDefaultValue:
          description: >-
            Extra fields only: true if new rows get DefaultValue; false leaves
            the field empty even when DefaultValue is set (0 and false are real
            defaults). Ignored for relation, Link and Attachment fields. Mirrors
            the UseDefault extra-field flag. Not used on user-defined fields.
          type: boolean
        IsFreetextSource:
          description: >-
            Custom-object fields only: true if the field's values are
            freetext-indexed, so rows can be found by text in this field; it
            also makes relation pickers on this custom object search as you
            type. The display field is always indexed, whether or not this is
            set. Mirrors the ViewInSearch extra-field flag. Not used on standard
            tables or user-defined fields.
          type: boolean
        ShowInSideCard:
          description: >-
            Request (ticket) extra fields only: true if the field is shown in
            the Request side card, next to the built-in properties, instead of
            the details area. Ignored for other tables. Mirrors the
            ShowWithProperties extra-field flag. Not used on user-defined
            fields.
          type: boolean
  securitySchemes:
    SOPassword:
      type: http
      description: "SuperOffice username:password are passed in Base64-encoded. \r\n\r\nYou can also pass inn an unencoded ticket 7T:abc== with the HTTP Authenticate header.\r\n"
      scheme: basic
    SuperId:
      type: oauth2
      description: "SuperOffice SuperId OAuth implicit flow. \r\nYou need to issue a request to the SuperId authorization URL\r\n    https://online.superoffice.com/login/common/oauth/authorize?response_type=token\r\n      &client_id=670734e0-4c5a-11e3-be9e-a171392e81db\r\n      &redirect_uri=https://example.com/spa/\r\n\r\npassing in the application id and redirect URL.\r\n\r\nSuperId will log the user in, and redirect to the requested redirect URL with a #payload\r\ncontaining the access token and claims. (The redirect URL must be registered with SuperId in advance)\r\n\r\n   https://example.com/spa#access_token=8A%3aCust12227.AXRrCITpPBvQX3UbIohb\r\n      &token_type=bearer\r\n      &state=\r\n      &expires_in=3600\r\n      &ctx=Cust12227\r\n      &netserver_url=https%3a%2f%2fsod.superoffice.com%2fCust12227%2fRemote%2fServices82%2f\r\n\r\nYou can take the #access_token value and pass it as the Authenticate HTTP header as a BEARER token.\r\n"
      flows:
        implicit:
          authorizationUrl: https://online.superoffice.com/login/common/oauth/authorize
          scopes: {}

````

## Related topics

- [Update Custom Field Definition](https://docs.superoffice.com/en/api/reference/restful/agent/customobject_agent/update-custom-field-definition.md)
- [Agent API changes in 12.7](https://docs.superoffice.com/release-notes/12/api/changes-webapi-12.7.1513.md)
- [Update Custom Object Definition](https://docs.superoffice.com/en/api/reference/restful/rest/customobjectdefinition/update-custom-object-definition.md)
- [Save Custom Field Definitions](https://docs.superoffice.com/en/api/reference/restful/rest/customfielddefinition/save-custom-field-definitions.md)
