Update property values for a target
PATCH/api/v4/properties/groups/:group_name/:object_type/values/:target_id
Update one or more property values for a specific target within a group. Uses upsert semantics: creates the value if it doesn't exist, updates it if it does. A request sets up to 50 values, each for a different field in the group. Values of the system object type are set through the dedicated /api/v4/properties/groups/{group_name}/system/values endpoint.
Minimum server version: 11.7
Permissions
Depends on the object type: for channel, manage_public_channel_properties or manage_private_channel_properties on the channel, or membership of a direct or group message channel; for post, create_post in the post's channel; for user, being the user or having edit_other_users. The caller also needs permission to set values of each field in the request.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 501
Property values update successful
An empty request, more than 50 items, the same field_id twice, or an object type other than channel, post or user. template fields can't have values, and system values use the system values endpoint.
No access token provided
Do not have appropriate permissions
A field_id doesn't exist in the group, or belongs to a field of another object type.
Feature is disabled