Bluesky

Update Account Settings

Sets or clears the account's publishing defaults. Send null to clear a value.

PATCH
/v1/accounts/{id}/settings

Authorization

Bearer
headerAuthorizationBearer <op_>

Workspace API key, sent as Authorization: Bearer op_... Keys are created in the dashboard.

Path Parameters

id*string
Length1 <= length

Request Body

application/json
  1. body
defaultLangs*array<>|

Bluesky: language tags, such as en or pt, applied to a post that names none. Up to 3. null clears them.

Itemsitems <= 3

Response Body

Updated settings

application/json
  1. response
accountId*string
defaultLangs*array<string>|

Bluesky: languages applied to a post that names none. Null when unset.

Example Request
import { Configuration, AccountsApi } from "@onepostly/sdk";const accountsApi = new AccountsApi(  new Configuration({ accessToken: process.env.ONEPOSTLY_API_KEY }));const response = await accountsApi.updateAccountSettings({  id: "acc_YOUR_BLUESKY_ACCOUNT_ID",  updateAccountSettingsBody: {    "defaultLangs": [      "en"    ]  },});console.log(response);
Example Response
{  "accountId": "acc_YOUR_BLUESKY_ACCOUNT_ID",  "defaultLangs": [    "en"  ]}