Create subscription

POST {{baseUrl}}/api/subscriptions/

Request Body

{"name"=>"Example", "allowDeliveryChanges"=>false, "allowPersonalizationChanges"=>false, "allowUnsubscribe"=>false, "schedules"=>[{"id"=>"{{rd_scheduleId}}"}], "contents"=>[{"id"=>"E63834A411D5C49EC0000C881FDA1A4F", "name"=>"Unit Tracking by Supplier", "type"=>"report", "personalization"=>{"compressed"=>false, "formatMode"=>"CURRENT_PAGE", "viewMode"=>"BOTH", "formatType"=>"HTML"}}], "recipients"=>[{"id"=>"{{userId}}", "type"=>"user", "includeType"=>"TO"}], "delivery"=>{"mode"=>"EMAIL", "contactSecurity"=>false, "email"=>{"subject"=>"Unit Tracking by Supplier", "filename"=>"Unit Tracking by Supplier", "sendContentAs"=>"data", "overwriteOlderVersion"=>false}}}

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
X-MSTR-AuthTokenstring
X-MSTR-ProjectIDstring