Sha256: 7a37e75b30f826cea0db78c44b3efd367d6209f0e1df18e504c1ff10cb467607

Contents?: true

Size: 1.85 KB

Versions: 2

Compression:

Stored size: 1.85 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://api.fortnox.se/3/units/
    body:
      encoding: UTF-8
      string: '{"Unit":{"Code":"woooh6","Description":"Happy clouds"}}'
    headers:
      Content-Type:
      - application/json
      Accept:
      - application/json
      Client-Secret:
      - 9aBA8ZgsvR
      Access-Token:
      - ccaef817-d5d8-4b1c-a316-54f3e55c5c54
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      User-Agent:
      - Ruby
  response:
    status:
      code: 201
      message: Created
    headers:
      Content-Length:
      - '124'
      Content-Type:
      - application/json
      Date:
      - Mon, 22 Jan 2024 15:00:42 GMT
      Location:
      - units
      X-Build:
      - 9dd4e26746
      X-Frame-Options:
      - sameorigin
      X-Rack-Responsetime:
      - '110'
      X-Uid:
      - aeb52aa2
      Server:
      - Fortnox
      X-Content-Type-Options:
      - nosniff
      X-Xss-Protection:
      - '0'
      Referrer-Policy:
      - strict-origin-when-cross-origin
      Content-Security-Policy:
      - 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
        /api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
        *.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
        s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
        fonts.gstatic.com fortnox.piwik.pro api.cling.se wss://api.cling.se ''unsafe-inline''
        ''unsafe-eval'' blob: data:'
      Strict-Transport-Security:
      - max-age=31536000; includeSubdomains
    body:
      encoding: UTF-8
      string: '{"Unit":{"@url":"https:\/\/api.fortnox.se\/3\/units\/woooh6","Code":"woooh6","CodeEnglish":"","Description":"Happy
        clouds"}}'
  recorded_at: Mon, 22 Jan 2024 15:00:42 GMT
recorded_with: VCR 6.2.0

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fortnox-api-0.8.2 spec/vcr_cassettes/units/save_with_specially_named_attribute.yml
fortnox-api-0.8.1 spec/vcr_cassettes/units/save_with_specially_named_attribute.yml