---
title: "Upsert defaults"
method: PUT
path: "/gdc/account/profile/{userId}/settings/defaults"
tags: ["profile-settings"]
---

# Upsert defaults

`PUT /gdc/account/profile/{userId}/settings/defaults`

## Request

- Base URL: `https://secure.gooddata.com`
- URL: `https://secure.gooddata.com/gdc/account/profile/{userId}/settings/defaults`
- Auth: none declared

Upserts the defaults for the specified user.

 You must be a domain admin to upsert the defaults.

## Path parameters

- `userId` string, required

## Request body

- Defaults: The defaults
  - `defaults` object, nullable, required
    - `projectUri` string, required: The uri of the project
    - `dashboardUri` string: The uri of the project dashboard
    - `tabId` string: The defaults tab ID
    - `links` object: Self link
      - `self` string, uri, required: Self link

## Response `204`

The defaults for the specified user are successfully updated.

- ProfileSetting: The profile settings
  - `profileSetting` object, required
    - `currentProjectUri` string, nullable: The uri of the current project
    - `releaseNotice` string[], required: List of relevant releases
    - `hints` object, required: Hints related to this profile settings
    - `projectSettings` object, required: Project settings of this profile settings
    - `separators` SeparatorsDto: The thousands and decimal separators
      - `thousand` string: The thousands separator
      - `decimal` string: The decimal separator
    - `defaults` DefaultsDto: The defaults
      - `projectUri` string, required: The uri of the project
      - `dashboardUri` string: The uri of the project dashboard
      - `tabId` string: The defaults tab ID
    - `navigationState` 'collapsed' | 'pinned' | 'floating': Navigation state of this profile settings
    - `npsLastParticipation` string: The date and time of the last nps participation
    - `links` object
      - `self` string, uri, required: Link to self
      - `profile` string, uri, required: Link to user profile

## Other responses

- `400`: The API call failed because because the server was not able to finish the request. This might be caused by: + Invalid project uri. The project uri must correspond to template: '/gdc/projects/{project}' + Invalid dashboard uri. The dashboard uri must correspond to template: '/gdc/md/{project}/obj/{dashboard}' + Invalid dashboard uri. The projectId in dashboard uri should be same as in projectUri + Project with given URI does not exist. + Dashboard with given URI does not exist + User requesting the change does not have access to given project. + Dashboard tab with given tabId does not exist in dashboard with URI. The reason of call failure is described in detail in the response error message.
- `403`: The API call failed because the user making this call is not a domain admin. Only a domain admin can update the defaults.
- `404`: The API call failed because the specified user does not exist.
- `default`: Common error

---

[API](https://skmtc.dev/gooddata/apis/gooddata-api-documentation.md) - [All operations](https://skmtc.dev/gooddata/apis/gooddata-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/gooddata/apis/gooddata-api-documentation/revisions/e5dc0ee6ab00?raw)
