Sha256: b86ed4ffa03df3ed38e27adb85c7a23f774e70222d6e3effcbba7ec4c7970ca8

Contents?: true

Size: 1.42 KB

Versions: 4

Compression:

Stored size: 1.42 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://api.chartmogul.com/v1/import/plans
    body:
      encoding: UTF-8
      string: '{"data_source_uuid":null,"name":null,"interval_count":null,"interval_unit":null,"external_id":null}'
    headers:
      User-Agent:
      - Faraday v0.9.1
      Content-Type:
      - application/json
      Authorization:
      - Basic ODE2MjZkMWFiMzU5NTIwMzY5MjhjNjJjYmJiNDMyN2M6ODY3MDRmMDdkYzQwZmYzYjYyYzRjY2E5OTYxMjk2MzY=
  response:
    status:
      code: 422
      message: 
    headers:
      server:
      - nginx/1.9.10
      date:
      - Sun, 05 Jun 2016 19:47:08 GMT
      content-type:
      - application/json; charset=utf-8
      transfer-encoding:
      - chunked
      connection:
      - close
      x-frame-options:
      - SAMEORIGIN
      x-xss-protection:
      - 1; mode=block
      x-content-type-options:
      - nosniff
      cache-control:
      - no-cache
      x-request-id:
      - 72fc5d2e-0e09-4d62-b0b6-c10299d79c0a
      x-runtime:
      - '0.026567'
    body:
      encoding: UTF-8
      string: '{"errors":{"name":"A unique name is required for each plan.","interval_count":"is
        not a number","interval_unit":"Only ''day'', ''month'' or ''year'' are valid
        values for interval_unit.","data_source_uuid":"A valid data source UUID is
        required for each plan."}}'
    http_version: 
  recorded_at: Sun, 05 Jun 2016 19:47:08 GMT
recorded_with: VCR 3.0.3

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chartmogul-ruby-0.1.4 fixtures/vcr_cassettes/ChartMogul_Import_Plan/API_Interractions/correctly_handles_a_422_error.yml
chartmogul-ruby-0.1.3 fixtures/vcr_cassettes/ChartMogul_Import_Plan/API_Interractions/correctly_handles_a_422_error.yml
chartmogul-ruby-0.1.2 fixtures/vcr_cassettes/ChartMogul_Import_Plan/API_Interractions/correctly_handles_a_422_error.yml
chartmogul-ruby-0.1.1 fixtures/vcr_cassettes/ChartMogul_Import_Plan/API_Interractions/correctly_handles_a_422_error.yml