Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,30 @@ const action: ActionDefinition<Settings, Payload> = {
}
}
},
subscription_groups: {
label: 'Subscription Groups',
description: 'Array of objects used to manage a user\'s subscription status for specific subscription groups.',
type: 'object',
multiple: true,
properties: {
subscription_group_id: {
label: 'Subscription Group ID',
description: 'The identifier for the subscription group',
type: 'string',
required: true
},
subscription_state: {
label: 'Subscription State',
description: 'The user\'s subscription status: "subscribed" or "unsubscribed"',
type: 'string',
required: true,
choices: [
{ label: 'Subscribed', value: 'subscribed' },
{ label: 'Unsubscribed', value: 'unsubscribed' }
]
}
}
},
custom_attributes: {
label: 'Custom Attributes',
description: 'Hash of custom attributes to send to Braze',
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,30 @@ const action: ActionDefinition<Settings, Payload> = {
}
}
},
subscription_groups: {
label: 'Subscription Groups',
description: 'Array of objects used to manage a user\'s subscription status for specific subscription groups.',
type: 'object',
multiple: true,
properties: {
subscription_group_id: {
label: 'Subscription Group ID',
description: 'The identifier for the subscription group',
type: 'string',
required: true
},
subscription_state: {
label: 'Subscription State',
description: 'The user\'s subscription status: "subscribed" or "unsubscribed"',
type: 'string',
required: true,
choices: [
{ label: 'Subscribed', value: 'subscribed' },
{ label: 'Unsubscribed', value: 'unsubscribed' }
]
}
}
},
custom_attributes: {
label: 'Custom Attributes',
description: 'Hash of custom attributes to send to Braze',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ export function updateUserProfile(
push_tokens: payload.push_tokens,
time_zone: payload.time_zone,
twitter: payload.twitter,
subscription_groups: payload.subscription_groups,
_update_existing_only: updateExistingOnly
}
]
Expand Down Expand Up @@ -513,6 +514,7 @@ export async function updateBatchedUserProfile(
push_tokens: payload.push_tokens,
time_zone: payload.time_zone,
twitter: payload.twitter,
subscription_groups: payload.subscription_groups,
_update_existing_only: updateExistingOnly
}

Expand Down
Loading