🏢 Workspaces

Update a workspace

Changed on

Updates an existing workspace. Only the provided fields are changed; omitted fields keep their current values. * * Timezone. timezone accepts any IANA identifier plus the legacy aliases the product accepts (US/Pacific, US/Eastern, America/Buenos_Aires, MST7MDT, …), stored in canonical form. An unrecognised identifier is rejected with 422 and the stored value is left untouched. * * Changing the timezone does NOT reschedule anything. A post's publish time is stored in UTC and the scheduler compares it against the current UTC time, so an already-scheduled post fires at exactly the same instant as before — only its rendered local time moves. A post scheduled for 15:00 Asia/Karachi (10:00 UTC) still publishes at 10:00 UTC after switching to America/New_York, but now shows as 06:00 in the calendar. * * Because of that, any update that actually changes the timezone returns an extra top-level timezone_change object stating the effect and counting the pending scheduled posts whose displayed time shifts. The object is absent when the timezone is unchanged or not supplied. To move posts to the same local time in the new timezone, reschedule them explicitly with PUT /api/v1/posts/{post_id}.

put/api/v1/workspaces/{workspace_id}

Request

  • Base URL
    https://api.contentstudio.io
  • URL
    https://api.contentstudio.io/api/v1/workspaces/{workspace_id}
  • Auth
    API key in header X-API-Key

Path parameters

workspace_idstring required
Example:64edbecf78f9fa920f0279fe

Workspace ID

Request body

namestring
logostring url
timezonestring
notestring nullable
instagram_posting_method'api' | 'mobile'
company_namestring nullable

Report branding name, shown on generated reports and white-labelled dashboards.

company_logostring url nullable

Report branding logo. Upload bytes via POST /workspaces/{workspace_id}/media and pass the returned URL.

Example request

{
  "name": "Acme Marketing",
  "logo": "https://logo.clearbit.com/contentstudio.io",
  "timezone": "Asia/Karachi",
  "note": "Updated note",
  "instagram_posting_method": "api",
  "first_day": {
    "day": "Monday",
    "key": 1
  },
  "company_name": "Acme Inc",
  "company_logo": "https://storage.googleapis.com/lumotive-web-storage/analytics/companies/610a1d92b11ba161ce1cd372/company.jpg"
}

Response

Workspace updated successfully

statusboolean
messagestring
dataobject

Example response

{
  "status": true,
  "message": "Workspace updated successfully. Use the returned `id` as `workspace_id` in subsequent requests.",
  "timezone_change": {
    "from": "Asia/Karachi",
    "to": "America/New_York",
    "scheduled_posts_affected": 12,
    "notice": "Already-scheduled posts keep their original publish time in UTC and will publish at the same moment as before. Only their displayed time changes: a post set for 15:00 Asia/Karachi now shows as 06:00 America/New_York. No post was rescheduled."
  }
}

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status