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

# Upsert Recent Navigation

> Upsert Recent navigation entries for the logged-in associate and the given client.

The entries are ranked so that the first element in the array becomes the most recent. The list is capped by the RecentNavigationLimit preference; the oldest entries beyond the cap are removed.
NsApiSlow threshold: 5000 ms.



## OpenAPI

````yaml /openapi/agent/openapi-v3-ViewStateAgent.json post /api/v1/Agents/ViewState/UpsertRecentNavigation
openapi: 3.0.0
info:
  version: v1-Agents
  title: SuperOffice Agent API v1
  description: SuperOffice Agent API - ViewStateAgent
  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/ViewState/UpsertRecentNavigation:
    post:
      tags:
        - ViewState_Agent
      summary: Upsert Recent Navigation
      description: "Upsert Recent navigation entries for the logged-in associate and the given client.\n\nThe entries are ranked so that the first element in the array becomes the most recent. The list is capped by the RecentNavigationLimit preference; the oldest entries beyond the cap are removed.\r\nNsApiSlow threshold: 5000 ms."
      operationId: v1ViewStateAgent_UpsertRecentNavigation
      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: 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.ViewStateCarriers.UpsertRecentNavigationRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ViewStateCarriers.UpsertRecentNavigationRequest
          application/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ViewStateCarriers.UpsertRecentNavigationRequest
          text/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ViewStateCarriers.UpsertRecentNavigationRequest
          application/x-www-form-urlencoded:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ViewStateCarriers.UpsertRecentNavigationRequest
          application/json-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ViewStateCarriers.UpsertRecentNavigationRequest
          application/merge-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.ViewStateCarriers.UpsertRecentNavigationRequest
        description: Client, Elements
        required: true
      responses:
        '204':
          description: No Content
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components:
  schemas:
    SuperOffice.WebApi.v1.Carriers.ViewStateCarriers.UpsertRecentNavigationRequest:
      description: >-
        UpsertRecentNavigation: Upsert Recent navigation entries for the
        logged-in associate and the given client. The entries are ranked so that
        the first element in the array becomes the most recent. The list is
        capped by the RecentNavigationLimit preference; the oldest entries
        beyond the cap are removed.
      type: object
      properties:
        Client:
          type: string
        Elements:
          type: array
          items:
            $ref: '#/components/schemas/SuperOffice.CRM.Services.NavigationElement'
    SuperOffice.CRM.Services.NavigationElement:
      description: "A single navigation entry - a key and its navigation value (soprotocol).\r\n<para />\r\nCarrier object for NavigationElement.\r\nServices for the NavigationElement Carrier is available from the <see cref=\"T:SuperOffice.CRM.Services.IViewStateAgent\">ViewState Agent</see>."
      type: object
      properties:
        Key:
          description: >-
            Navigation key; identifies the screen/panel for Current, or the
            entry for Recent
          type: string
        NavigationValue:
          description: The navigation value (soprotocol string)
          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

- [recentnavigation](/en/api/mdo-providers/reference/recentnavigation.md)
- [navigation_history table](/en/database/tables/navigation-history.md)
- [Upsert](/en/api/reference/restful/agent/databasetable_agent/upsert.md)
- [Enum values for NavigationKind](/en/database/tables/enums/navigationkind.md)
- [What's new in version 12.3.2195.0](/release-notes/database/changelog.md)
- [Working with Upsert](/en/api/bulk-operations/mass-operations/upsert.md)
