Sha256: 2bba6845a261e7119e1add1720aaf301968d9763ec4afaf7b22cfc06426e0b2d

Contents?: true

Size: 1.33 KB

Versions: 12

Compression:

Stored size: 1.33 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://api.chartmogul.com/v1/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 hidden
  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

12 entries across 12 versions & 1 rubygems

Version Path
chartmogul-ruby-3.3.0 fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml
chartmogul-ruby-3.2.0 fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml
chartmogul-ruby-3.1.0 fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml
chartmogul-ruby-3.0.2 fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml
chartmogul-ruby-3.0.0 fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml
chartmogul-ruby-2.9.0 fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml
chartmogul-ruby-2.1.0 fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml
chartmogul-ruby-2.0.0 fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml
chartmogul-ruby-1.7.3 fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml
chartmogul-ruby-1.7.2 fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml
chartmogul-ruby-1.7.1 fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml
chartmogul-ruby-1.6.9 fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml