---
title: "Save Platform Default"
method: PUT
path: "/v2/platform-defaults/{credential_id}"
tags: ["v2 - PlatformDefaults"]
---

# Save Platform Default

`PUT /v2/platform-defaults/{credential_id}`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/platform-defaults/{credential_id}`
- Auth: HTTP bearer

Save (create or update) default settings for a credential.

Only the credential owner can save defaults.
The settings dict is partial — include only the fields you want as defaults.

## Path parameters

- `credential_id` string, required

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Request body

- SavePlatformDefaultRequest: Request to save defaults for a credential.
  - `settings` object, required: Partial settings dict with default values

## Response `200`

Successful Response

- PlatformDefaultResponse: Response when loading saved defaults.
  - `credential_id` string, required
  - `profile_id` string, nullable
  - `is_mine` boolean
  - `platform` string, required
  - `settings` object, required: Partial settings dict (only the fields the user saved as default)
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
