Bluesky
Update Account Settings
Sets or clears the account's publishing defaults. Send null to clear a value.
PATCH
Bearerheader
AuthorizationBearer <op_>Workspace API key, sent as Authorization: Bearer op_... Keys are created in the dashboard.
id*stringLength
1 <= lengthapplication/json- body
defaultLangs*array<>|Bluesky: language tags, such as en or pt, applied to a post that names none. Up to 3. null clears them.
Items
items <= 3Updated settings
application/json- response
accountId*stringdefaultLangs*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" ]}