paws.analytics (version 0.1.0)

mturk_update_notification_settings: The UpdateNotificationSettings operation creates, updates, disables or re-enables notifications for a HIT type

Description

The UpdateNotificationSettings operation creates, updates, disables or re-enables notifications for a HIT type. If you call the UpdateNotificationSettings operation for a HIT type that already has a notification specification, the operation replaces the old specification with a new one. You can call the UpdateNotificationSettings operation to enable or disable notifications for the HIT type, without having to modify the notification specification itself by providing updates to the Active status without specifying a new notification specification. To change the Active status of a HIT type's notifications, the HIT type must already have a notification specification, or one must be provided in the same call to UpdateNotificationSettings.

Usage

mturk_update_notification_settings(HITTypeId, Notification, Active)

Arguments

HITTypeId

[required] The ID of the HIT type whose notification specification is being updated.

Notification

The notification specification for the HIT type.

Active

Specifies whether notifications are sent for HITs of this HIT type, according to the notification specification. You must specify either the Notification parameter or the Active parameter for the call to UpdateNotificationSettings to succeed.

Request syntax

svc$update_notification_settings(
  HITTypeId = "string",
  Notification = list(
    Destination = "string",
    Transport = "Email"|"SQS"|"SNS",
    Version = "string",
    EventTypes = list(
      "AssignmentAccepted"|"AssignmentAbandoned"|"AssignmentReturned"|"AssignmentSubmitted"|"AssignmentRejected"|"AssignmentApproved"|"HITCreated"|"HITExpired"|"HITReviewable"|"HITExtended"|"HITDisposed"|"Ping"
    )
  ),
  Active = TRUE|FALSE
)