Sha256: 1cadc7e12f54bab562921783b67a609db095b7611f8d2b3904b0f5a2916bd94a

Contents?: true

Size: 1.58 KB

Versions: 3

Compression:

Stored size: 1.58 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: "<BRAZE_REST_URL>/subscription/status/set"
    body:
      encoding: UTF-8
      string: '{"external_id":"test-user-1","subscription_group_id":"non-existing-subscription-group","subscription_state":"subscribed"}'
    headers:
      Content-Type:
      - application/json
      Accept:
      - application/json
      User-Agent:
      - Braze Ruby gem v0.3.3
      Authorization:
      - Bearer <BRAZE_REST_API_KEY>
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
  response:
    status:
      code: 400
      message: Bad Request
    headers:
      Connection:
      - keep-alive
      Content-Length:
      - '69'
      Cache-Control:
      - no-cache
      Content-Type:
      - application/json
      Server:
      - nginx
      Strict-Transport-Security:
      - max-age=0; includeSubDomains
      X-Ratelimit-Limit:
      - '250000'
      X-Ratelimit-Remaining:
      - '249983'
      X-Ratelimit-Reset:
      - '1592478000'
      X-Request-Id:
      - 1e81ac78-b72f-476a-8259-70f90aa2d170
      X-Runtime:
      - '0.013319'
      Accept-Ranges:
      - bytes
      Date:
      - Thu, 18 Jun 2020 10:03:08 GMT
      Via:
      - 1.1 varnish
      X-Served-By:
      - cache-hhn4038-HHN
      X-Cache:
      - MISS
      X-Cache-Hits:
      - '0'
      X-Timer:
      - S1592474588.160260,VS0,VE16
      Vary:
      - Origin,Accept-Encoding
    body:
      encoding: ASCII-8BIT
      string: '{"message":"Invalid subscription group ID"}'
    http_version: 
  recorded_at: Thu, 18 Jun 2020 10:03:08 GMT
recorded_with: VCR 5.0.0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
braze_ruby-0.4.2 spec/fixtures/responses/subscription/subscription_status_set/when_subscription_group_does_not_exist/returns_an_error_status.yml
braze_ruby-0.4.1 spec/fixtures/responses/subscription/subscription_status_set/when_subscription_group_does_not_exist/returns_an_error_status.yml
braze_ruby-0.4.0 spec/fixtures/responses/subscription/subscription_status_set/when_subscription_group_does_not_exist/returns_an_error_status.yml