OverviewProductsPlatformsAPI ReferenceResources
Profiles

Update profile

PUThttps://zernio.com/api/v1/profiles/{profileId}

Updates a profile's name, description, color, default timezone, externalId, default status, or zero content retention.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

profileIdstringRequired

Body

application/json
Optional parameters7 fields
namestring
descriptionstring or null

Set to null to clear the description.

colorstring
timezonestring or null

IANA timezone new posts on this profile use when they name no timezone. Set to null to go back to UTC. An unknown name returns 400.

externalIdstring or null, max 255

Your own identifier for this profile (1 to 255 characters, trimmed). Set to null to clear it. A value another profile of the same owner already holds returns 409 profile_external_id_conflict.

isDefaultboolean
contentRetentionstringOne of standard | none

Turns zero content retention on (none) or off (standard) for this profile only, for new data within about a minute. Only the team owner can change it. standard answers 409 while the whole team has it on; none answers 409 during a WhatsApp verification of a number of this profile.

Responses

Success· the request worked

Errors· the request failed

PUT/v1/profiles/{profileId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.profiles.updateProfile({  path: {    profileId: 'profile_abc123',  },  body: {    name: 'Example',    description: {},    color: 'string',  },});console.log(data);
{  "message": "Profile updated successfully",  "profile": {    "_id": "64f0a1b2c3d4e5f6a7b8c9d0",    "userId": "6507a1b2c3d4e5f6a7b8c9d0",    "name": "Marketing Team (Updated)",    "description": "Profile for marketing campaigns",    "color": "#2196F3",    "isDefault": true,    "createdAt": "2024-11-01T10:00:00Z"  }}
OpenAPI specification
Was this page helpful?