Schedule recipients

Remove schedule recipients

Changed on

Remove one or more recipients from an existing scheduled email task. Recipients can be specified by email address, user ID, or user group ID.

<Note> This endpoint only works with schedules that have [email destinations](/share/deliveries/email). </Note>
put/v1/schedules/{scheduleId}/remove-recipients

Request

  • Base URL
    https://blobsrus.omniapp.co/api
  • URL
    https://blobsrus.omniapp.co/api/v1/schedules/{scheduleId}/remove-recipients
  • Auth
    HTTP bearer

Path parameters

scheduleIdstring uuid required

The ID of the schedule. To find a schedule's ID:

  1. Navigate to the dashboard or workbook.
  2. Click File > Deliveries & Alerts.
  3. Next to a schedule, click Edit.

The schedule's ID is in the page's URL, after /schedules/. For example, the schedule ID in this URL is 123e4567-e89b-12d3-a456-426614174000:

https://blobsrus.omniapp.co/dashboards/e23ebaa0/schedules/123e4567-e89b-12d3-a456-426614174000

Request body

emailsstring[]

At least one email, user ID, or user group ID must be provided. Array of recipient email addresses to remove from the scheduled task.

userGroupIdsstring[]

At least one email, user ID, or user group ID must be provided. Array of user group IDs to remove as recipients. Use the List user groups endpoint to retrieve user group IDs.

userIdsstring[]

At least one email, user ID, or user group ID must be provided. Array of recipient membership IDs to remove from the scheduled task. Use the List users and List embed users endpoints to retrieve user IDs.

Each ID removes only the single recipient with that membership ID. This is applicable to embed users: multiple embed users in the same organization can share the same embed_email, but removing one by user ID won't remove other users that share the email address. To remove every recipient delivered to a given address, use emails instead.

Example request

{
  "userGroupIds": [
    "X9kQ2mPz"
  ]
}

Response

Recipients removed successfully.

removedRecipientsCountinteger

The number of recipients removed from the schedule.

successboolean

Indicates whether the operation was successful.

Changes

    • info

      the endpoint scheme security bearerAuth was added to the API

    • info

      added optional request body

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the success response with the status