> ## 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 Object Definition

> Updates the table properties of an existing Custom Object.

Fields is ignored; use CreateCustomFieldDefinitions, UpdateCustomFieldDefinition and DeleteCustomFieldDefinition to change fields. Not implemented yet.
NsApiSlow threshold: 5000 ms.
<para />## Experimental: ## The CustomObject agent is experimental, subject to change, and not intended for partners.



## OpenAPI

````yaml /openapi/agent/openapi-v3-CustomObjectAgent.json post /api/v1/Agents/CustomObject/UpdateCustomObjectDefinition
openapi: 3.0.0
info:
  version: v1-Agents
  title: SuperOffice Agent API v1
  description: SuperOffice Agent API - CustomObjectAgent
  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/Agents/CustomObject/UpdateCustomObjectDefinition:
    post:
      tags:
        - CustomObject_Agent
      summary: Update Custom Object Definition
      description: "Updates the table properties of an existing Custom Object.\n\nFields is ignored; use CreateCustomFieldDefinitions, UpdateCustomFieldDefinition and DeleteCustomFieldDefinition to change fields. Not implemented yet.\r\nNsApiSlow threshold: 5000 ms.\r\n<para />## Experimental: ## The CustomObject agent is experimental, subject to change, and not intended for partners."
      operationId: v1CustomObjectAgent_UpdateCustomObjectDefinition
      parameters:
        - name: $select
          in: query
          description: >-
            Optional comma separated list of properties to include in the
            result. Other fields are then nulled out to reduce payload size:
            "Name,department,category". Default = show all fields.
          required: false
          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.WebApi.v1.Carriers.CustomObjectCarriers.UpdateCustomObjectDefinitionRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.CustomObjectCarriers.UpdateCustomObjectDefinitionRequest
          application/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.CustomObjectCarriers.UpdateCustomObjectDefinitionRequest
          text/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.CustomObjectCarriers.UpdateCustomObjectDefinitionRequest
          application/x-www-form-urlencoded:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.CustomObjectCarriers.UpdateCustomObjectDefinitionRequest
          application/json-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.CustomObjectCarriers.UpdateCustomObjectDefinitionRequest
          application/merge-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.CustomObjectCarriers.UpdateCustomObjectDefinitionRequest
        description: ObjectName, CustomObjectDefinition
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.CustomObjectDefinition
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.CustomObjectDefinition
            application/xml:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.CustomObjectDefinition
            text/xml:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.CustomObjectDefinition
            application/json-patch+json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.CustomObjectDefinition
            application/merge-patch+json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.CustomObjectDefinition
      security:
        - SOPassword: []
          SuperId: []
components:
  schemas:
    SuperOffice.WebApi.v1.Carriers.CustomObjectCarriers.UpdateCustomObjectDefinitionRequest:
      description: >-
        UpdateCustomObjectDefinition: Updates the table properties of an
        existing Custom Object. Fields is ignored; use
        CreateCustomFieldDefinitions, UpdateCustomFieldDefinition and
        DeleteCustomFieldDefinition to change fields. Not implemented yet.
      type: object
      properties:
        ObjectName:
          type: string
        CustomObjectDefinition:
          $ref: '#/components/schemas/SuperOffice.CRM.Services.CustomObjectDefinition'
    SuperOffice.CRM.Services.CustomObjectDefinition:
      description: "Schema definition for a Custom Object: the underlying table and its fields.\r\n<para />\r\nCarrier object for CustomObjectDefinition.\r\nServices for the CustomObjectDefinition Carrier is available from the <see cref=\"T:SuperOffice.CRM.Services.ICustomObjectAgent\">CustomObject Agent</see>."
      type: object
      properties:
        Id:
          format: int32
          description: Primary key in the extra-tables table.
          type: integer
        ObjectName:
          description: Database table name of the Custom Object, e.g. 'y_equipment'.
          type: string
        Title:
          description: User-visible title of the Custom Object.
          type: string
        DisplayField:
          description: Name of the field used to represent a row in lists and previews.
          type: string
        Description:
          description: Description of the Custom Object.
          type: string
        IconId:
          format: int32
          description: Icon binary-object id used in the UI.
          type: integer
        IconHint:
          description: >-
            Resolved icon hint for the UI: 'ph-<name>' for a Phosphor icon, the
            table name for an uploaded SVG icon, or 'CustomObject' for the
            default icon.
          type: string
        Flags:
          format: int32
          description: Bitmask of ExtraTableFlag values.
          type: integer
        Fields:
          description: >-
            Field definitions for this Custom Object, in rank order. Each
            element is a FieldInfo* type selected by FieldType.
          type: array
          items:
            $ref: '#/components/schemas/SuperOffice.CRM.Services.FieldInfoBase'
        IconName:
          description: >-
            Name of a Phosphor icon, e.g. 'truck'. Takes priority over IconId;
            IconHint shows the resolved result.
          type: string
        IsHidden:
          description: >-
            True if the Custom Object is left out of every list that offers
            custom objects (navigator, menu, Find, webhook events, lists). Its
            data is kept. Mirrors the Hidden extra-table flag.
          type: boolean
        HideIdField:
          description: >-
            True if archives hide the id field (column and criterion), as long
            as another visible field exists. Mirrors the HideId extra-table
            flag.
          type: boolean
        ShowInFind:
          description: >-
            True if the Custom Object is offered in Find. Ignored when IsHidden
            is set. Mirrors the ShowInFind extra-table flag.
          type: boolean
        ShowInNavigator:
          description: >-
            True if the Custom Object gets a navigator button and main-menu
            entry. Ignored when IsHidden is set. Mirrors the ShowInNavigator
            extra-table flag.
          type: boolean
        ParentField:
          description: >-
            Name of the field that points to the parent row, which makes the
            Custom Object a tree in relation lists. Empty: flat list.
          type: string
        FullNameField:
          description: >-
            Name of the field holding each row's full path in the tree, e.g.
            'Support/Hardware/Keyboards'; shown in relation lists and archives.
            Requires ParentField.
          type: string
        SortField:
          description: >-
            Name of the field that orders rows in relation lists (dropdowns and
            pickers) before a search term is typed. Default 'id'. Archives sort
            independently.
          type: string
        SortDescending:
          description: True to sort relation lists by SortField in descending order.
          type: boolean
        HierarchyId:
          format: int32
          description: >-
            Folder (HierarchyEntity in the ExtraTables domain) the Custom Object
            is listed under in admin lists. 0: top level.
          type: integer
        TableRight:
          $ref: '#/components/schemas/SuperOffice.CRM.Security.TableRight'
        FieldProperties:
          description: >-
            Field property dictionary mapping field names to field access
            rights.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/SuperOffice.CRM.Security.FieldProperty'
    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
    SuperOffice.CRM.Security.TableRight:
      description: "Wraps a table right together with an explanatory reason.\r\nCode can indicate why access is restricted."
      type: object
      properties:
        Mask:
          type: string
        Reason:
          type: string
    SuperOffice.CRM.Security.FieldProperty:
      description: >-
        Class holding properties like field length, field type about a field in
        the carrier.
      type: object
      properties:
        FieldRight:
          $ref: '#/components/schemas/SuperOffice.CRM.Security.FieldRight'
        FieldType:
          type: string
        FieldLength:
          format: int32
          description: ''
          type: integer
    SuperOffice.CRM.Security.FieldRight:
      description: "Wraps the field right together with an explanatory reason.\r\nAlso adds logical operators to the field rights so that they can be easily combined."
      type: object
      properties:
        Mask:
          type: string
        Reason:
          type: string
  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 Object Definition](https://docs.superoffice.com/en/api/reference/restful/rest/customobjectdefinition/update-custom-object-definition.md)
- [Agent API changes in 12.7](https://docs.superoffice.com/release-notes/12/api/changes-webapi-12.7.1513.md)
- [Update Custom Field Definition](https://docs.superoffice.com/en/api/reference/restful/agent/customobject_agent/update-custom-field-definition.md)
- [Update Custom Object](https://docs.superoffice.com/en/api/reference/restful/rest/customobject/update-custom-object.md)
