Skip to main content
PATCH
Needs workspaces:update, and a role in the workspace that can edit it: owners and managers can. See Permissions.
Takes the shape Get workspace settings gives, and changes only what you send:
  • A field left out stays as it is. In auto_repost and comment_moderation, so does a part left out: {"comment_moderation": {"settings": {"remove_urls": true}}} turns that one rule on and keeps the rest.
  • A list you send replaces the saved one whole: queue_slots (at least one time, each time once), auto_plugs ([] removes them all) and each moderation word list.
  • Send each plug whole. Keep a plug’s id to keep it, and leave id out for a new one: the answer gives it one. At most one plug is the default.
Each setting is checked and saved as the app’s settings pages save it. Nothing is saved unless all of it passes: a field that isn’t a setting, or a setting that is wrong, is a 422 and changes nothing. The answer is the settings after the change. Comment moderation is on paid plans. On Free it can be turned off, but turning it on or changing its rules is a 403 with error: plan_limit_reached and limit: moderation, and nothing is saved.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace
integer
required

The workspace's id, from List workspaces.

Body

application/json

The settings to change, in the shape of WorkspaceSettings. Send at least one. A field left out stays as it is, and so does a part of auto_repost or comment_moderation left out. A list sent replaces the saved one whole.

name
string
Maximum string length: 255
timezone
string

An IANA time zone, like Europe/London. An older name is saved as the current one.

language
string | null

Null sets en.

Maximum string length: 255
queue_slots
object[]

Every posting time: the list replaces the saved one, and needs at least one.

Minimum array length: 1
auto_repost
object

Send only the parts that change.

auto_plugs
object[]

Every plug, each one whole: the list replaces the saved one. [] removes them all. Keep a plug's id to keep it; leave id out for a new one.

comment_moderation
object

Send only the parts that change. Turning it on or changing a rule needs a paid plan.

Response

The settings, after the change.

A workspace's settings: what Get workspace settings gives and Update workspace settings takes.

name
string
required
timezone
string
required

An IANA time zone, like Europe/London. Post times are in it.

language
string
required

The workspace's language, like en.

queue_slots
object[]
required

The posting times, in time order: the times "next free slot" scheduling uses.

auto_repost
object
required

Auto-Repost: whether posts made in the app repeat, and how.

auto_plugs
object[]
required

The saved auto-plugs. [] when there are none.

comment_moderation
object
required

The comment moderation new posts start with.