Skip to content

Update an audience ​

PATCH/api/v2/workspaces/{slug}/audiences/{pk}/

Change an audience's name, description, or icon, turn it on or off, or change who it admits. Send only the fields you want to change.

The three lists are replaced, not merged. When you send workspace_role_ids, project_role_ids, or member_ids, that list becomes exactly what you sent: ids you leave out are removed. A list you don't send stays as it is. To add one person, read the audience, append the user id to member_ids, and send the whole list back. Send [] to empty a list.

Changes apply to every work item the audience restricts as soon as the request returns. Setting is_active to false lifts its restriction everywhere it is attached, without detaching it. Setting it back to true restores the restriction.

Path parameters ​

slug:requiredstring

The workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.

pk:requiredstring (uuid)

The id of the audience to update.

Body parameters ​

name:optionalstring

New display name. Maximum 255 characters. It can't be blank, and another audience in the workspace with the same name returns 409.

description:optionalstring

New note on what the audience is for. Send an empty string to clear it.

logo_props:optionalobject

Icon descriptor shown next to the audience in Plane. Send back the value you read instead of building it by hand.

is_active:optionalboolean

false stops the audience from restricting anything while keeping its lists and attachments. true turns it back on.

workspace_role_ids:optionalarray of string (uuid)

The complete list of workspace roles the audience admits. Replaces the current list. Each id must be a workspace role of this workspace or a system workspace role. The owner and admin roles return 400.

project_role_ids:optionalarray of string (uuid)

The complete list of project roles the audience admits. Replaces the current list. Each id must be a project role of this workspace or a system project role.

member_ids:optionalarray of string (uuid)

The complete list of users the audience admits by name. Replaces the current list. Each one must be an active member of the workspace.

Response shaping ​

fields:optionalstring

Comma-separated list of fields to return. Fields you don't request are left out of the response instead of coming back as null. id is always included. Pass all to get every requestable field.

An unknown field name returns 400 with the list of valid names, so a typo is caught instead of being silently ignored. See Sparse fields.

Requestable here: created_at, created_by_id, description, id, is_active, logo_props, member_ids, name, project_role_ids, updated_at, updated_by_id, usage_count, workspace_role_ids.

expand:optionalstring

Comma-separated relations to embed alongside the ids: members (the users behind member_ids, each with id, display_name, avatar_url, and email).

Expanded objects get their own key: ?expand=members keeps member_ids and adds a members array next to it. An unknown value returns 400. See Expanding relations.

Scopes ​

workspaces.audiences:write

Errors ​

StatusCodeCause
400invalid_requestname is blank. Or a role id is unknown, in the wrong namespace, or the workspace owner or admin role. Or a user in member_ids isn't an active workspace member.
401unauthorizedMissing or invalid credentials.
402payment_requiredWork item security isn't on your plan, or is switched off.
403forbiddenYour role can't edit audiences, or your token scope doesn't allow this.
404not_foundNo such audience in this workspace, you can't view audiences, or it's outside your tenant.
405method_not_allowedYou sent PUT. Use PATCH.
406not_acceptableThe Accept header asks for a representation the API can't produce.
409conflictAnother audience in this workspace already has this name.
413payload_too_largeThe request body is over the size limit.
415unsupported_media_typeThe Content-Type isn't one this endpoint accepts.
429rate_limitedThrottled. Honor the Retry-After header before retrying.
Update an audience
bash
curl -X PATCH \
  "https://api.plane.so/api/v2/workspaces/my-team/audiences/8bcf2c8f-7bd0-4d0c-bdc6-82df9fa1f312/" \
  -H "X-Api-Key: $PLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "member_ids": [
    "7f2b9e04-6c1d-4a58-9e3b-0d4c8a2f6b71",
    "8ea770c7-d743-464a-9ede-788850dfa5e8"
  ]
}'
Response200
json
{
  "id": "8bcf2c8f-7bd0-4d0c-bdc6-82df9fa1f312",
  "name": "Security response",
  "description": "Can see vulnerability reports and security incidents.",
  "logo_props": {},
  "is_active": true,
  "workspace_role_ids": ["2d9928ef-5023-492a-aa63-98d19b8c52ca"],
  "project_role_ids": ["9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88"],
  "member_ids": ["7f2b9e04-6c1d-4a58-9e3b-0d4c8a2f6b71", "8ea770c7-d743-464a-9ede-788850dfa5e8"],
  "usage_count": 2,
  "created_at": "2026-11-18T09:12:44.231907Z",
  "updated_at": "2026-11-22T10:47:31.204519Z",
  "created_by_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
  "updated_by_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430"
}
Response400
json
{
  "type": "invalid_request",
  "code": "invalid_request",
  "detail": "One or more fields failed validation.",
  "errors": [
    {
      "field": "member_ids",
      "code": "invalid",
      "message": "Not an active workspace member: 5b7e2f90-c3a1-4d6e-8f42-91d0a6c3e7b8"
    }
  ]
}

What an update records ​

Each change adds entries to the audience's activity feed:

  • One updated entry for each of name, description, logo_props, and is_active whose value changed, with field, old_value, and new_value set.
  • One role_added or role_removed entry for each role that joined or left a list, and one member_added or member_removed entry for each user. The role or user id is in new_identifier for an addition and old_identifier for a removal.

Sending a value that matches the current one records nothing for that field.