> ## 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.

# Save Default Value Info

> Save information about a default value for an ERP field

NsApiSlow threshold: 5000 ms.
<para />## Online Restricted: ## The ErpSync agent is not available in Online by default. Access must be requested specifically when app is registered. Intended for ERP integration apps.



## OpenAPI

````yaml /openapi/agent/openapi-v3-ErpSyncAgent.json post /api/v1/Agents/ErpSync/SaveDefaultValueInfo
openapi: 3.0.0
info:
  version: v1-Agents
  title: SuperOffice Agent API v1
  description: SuperOffice Agent API - ErpSyncAgent
  contact:
    name: SuperOffice DevNet
    url: https://docs.superoffice.com/en/api/index.html
    email: sdk@superoffice.com
servers:
  - url: http://localhost:56350
  - url: https://localhost:56350
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/ErpSync/SaveDefaultValueInfo:
    post:
      tags:
        - ErpSync_Agent
      summary: Save Default Value Info
      description: "Save information about a default value for an ERP field\n\nNsApiSlow threshold: 5000 ms.\r\n<para />## Online Restricted: ## The ErpSync agent is not available in Online by default. Access must be requested specifically when app is registered. Intended for ERP integration apps."
      operationId: v1ErpSyncAgent_SaveDefaultValueInfo
      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
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ErpSyncCarriers.SaveDefaultValueInfoRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ErpSyncCarriers.SaveDefaultValueInfoRequest
          application/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ErpSyncCarriers.SaveDefaultValueInfoRequest
          text/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ErpSyncCarriers.SaveDefaultValueInfoRequest
          application/x-www-form-urlencoded:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ErpSyncCarriers.SaveDefaultValueInfoRequest
          application/json-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ErpSyncCarriers.SaveDefaultValueInfoRequest
          application/merge-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ErpSyncCarriers.SaveDefaultValueInfoRequest
        description: ErpSyncDefaultValue
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.ErpSyncDefaultValue
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.ErpSyncDefaultValue
            application/xml:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.ErpSyncDefaultValue
            text/xml:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.ErpSyncDefaultValue
            application/json-patch+json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.ErpSyncDefaultValue
            application/merge-patch+json:
              schema:
                $ref: >-
                  #/components/schemas/SuperOffice.CRM.Services.ErpSyncDefaultValue
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components:
  schemas:
    SuperOffice.WebApi.v1.Carriers.ErpSyncCarriers.SaveDefaultValueInfoRequest:
      description: >-
        SaveDefaultValueInfo: Save information about a default value for an ERP
        field
      type: object
      properties:
        ErpSyncDefaultValue:
          $ref: '#/components/schemas/SuperOffice.CRM.Services.ErpSyncDefaultValue'
    SuperOffice.CRM.Services.ErpSyncDefaultValue:
      description: "Contains default value information for one ERP field\r\n<para />\r\nCarrier object for ErpSyncDefaultValue.\r\nServices for the ErpSyncDefaultValue Carrier is available from the <see cref=\"T:SuperOffice.CRM.Services.IErpSyncAgent\">ErpSync Agent</see>."
      type: object
      properties:
        ErpFieldId:
          format: int32
          description: Primary key
          type: integer
        DefaultValue:
          description: >-
            Default value, stored using CultureDataFormatter format if it is not
            a string
          type: string
        HasFirstSyncDefaultValue:
          description: Should a default value be set on first sync
          type: boolean
        FirstSyncDefaultValue:
          description: The default value to be set, can be blank
          type: string
        PromptUser:
          description: >-
            Should the field be shown in the first-sync GUI; independent of
            whether a default value should be set
          type: boolean
        Mandatory:
          description: >-
            Should the user be forced to set a value (the Erp Connector may
            declare fields mandatory as well)
          type: boolean
        ErpFieldKey:
          description: The ERP field key
          type: string
        FieldType:
          description: Field type
          enum:
            - Checkbox
            - Text
            - Password
            - Integer
            - Double
            - List
            - Date
            - Label
          type: string
        ListName:
          description: >-
            The ERP list name, if the field has a list of values supplied by the
            ERP Connector
          type: string
        Access:
          description: Access restrictions for the field
          enum:
            - Normal
            - Mandatory
            - ReadOnly
          type: string
        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.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

````

## Related topics

- [SuperOffice.WebApi.Data.ErpSync SaveDefaultValueInfoRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.ErpSync_SaveDefaultValueInfoRequest.md)
- [SuperOffice.WebApi.Agents.ErpSyncAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ErpSyncAgent.md)
- [SuperOffice.WebApi.Agents.IErpSyncAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IErpSyncAgent.md)
- [Get Default Value Info](/en/api/reference/restful/agent/erpsync_agent/get-default-value-info.md)
- [Save Restrictions](/en/api/reference/restful/agent/find_agent/save-restrictions.md)
- [Save Default Numbering](/en/api/reference/restful/agent/numberallocation_agent/save-default-numbering.md)
