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

# Set Pref Value At Level_ P O S T

> Sets the preference value for specific section + key.

Calls the Preference agent service SetPreference or SetPreferenceEntity.



## OpenAPI

````yaml /openapi/rest/openapi-v3-Preference.json post /api/v1/Preference/{section}/{key}/{prefLevel}
openapi: 3.0.0
info:
  version: v1-REST
  title: SuperOffice REST API v1
  description: SuperOffice REST API - Preference
  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/Preference/{section}/{key}/{prefLevel}:
    post:
      tags:
        - Preference
      summary: Set Pref Value At Level_ P O S T
      description: |-
        Sets the preference value for specific section + key.

        Calls the Preference agent service SetPreference or SetPreferenceEntity.
      operationId: v1Preference_SetPrefValueAtLevel_POST
      parameters:
        - name: section
          in: path
          description: The name of the preference section.
          required: true
          schema:
            type: string
        - name: key
          in: path
          description: The name of the preference key.
          required: true
          schema:
            type: string
        - name: prefLevel
          in: path
          description: >-
            The level the preference is defined at. 0 or Undefined = the level
            closest to the user.
          required: true
          schema:
            type: string
            enum:
              - Undefined
              - HardDefault
              - SystemWide
              - Database
              - Group
              - Individual
              - PC
        - name: value
          in: query
          description: The preference value as a string
          required: true
          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
      responses:
        '204':
          description: No Content
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components: {}

````

## Related topics

- [Set Pref Value At Level](/en/api/reference/restful/rest/preference/set-pref-value-at-level.md)
- [Get Pref Value At Level](/en/api/reference/restful/rest/preference/get-pref-value-at-level.md)
- [Set Pref Value_ P O S T](/en/api/reference/restful/rest/preference/set-pref-value_-p-o-s-t.md)
- [Set Pref Value](/en/api/reference/restful/rest/preference/set-pref-value.md)
- [Enum values for PreferenceLevel](/en/database/tables/enums/preferencelevel.md)
- [PrefDesc table](/en/database/tables/prefdesc.md)
