Profiles

Rename Profile

Renames a profile. Its accounts stay filed under it. Filters that name the profile must use the new name from then on.

PATCH
/v1/profiles/{name}

Authorization

Bearer
headerAuthorizationBearer <op_>

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

Path Parameters

name*string

The profile's name, URL-encoded. Letter case does not matter. For example, Client Team is sent as Client%20Team.

Length1 <= length <= 60

Request Body

application/json
  1. body
name*string

Profile name. It must be unique in the workspace, ignoring letter case. none is reserved.

Length1 <= length <= 60

Response Body

Updated profile

application/json
  1. response
name*string

The profile's name. It identifies the profile and is unique in the workspace, ignoring letter case.

accountCount*integer

Connected accounts filed under this profile.

createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
import { Configuration, ProfilesApi } from "@onepostly/sdk";const profilesApi = new ProfilesApi(  new Configuration({ accessToken: process.env.ONEPOSTLY_API_KEY }));const response = await profilesApi.updateProfile({  name: "Business",  updateProfileBody: {    "name": "Acme Business"  },});console.log(response);
Example Response
{  "name": "Acme Business",  "accountCount": 3,  "createdAt": "2027-03-01T10:00:00.000Z",  "updatedAt": "2027-03-15T10:00:00.000Z"}