--- http_interactions: - request: method: post uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/assets body: encoding: UTF-8 string: '{"fields":{"title":{"en-US":"titlebyCreateAPI"},"description":{"en-US":"descByAPI"},"file":{"en-US":{"contentType":"image/jpeg","fileName":"pic1.jpg","upload":"https://upload.wikimedia.org/wikipedia/commons/c/c7/Gasometer_Berlin_Sch%C3%B6neberg_2011.jpg"}}}}' headers: User-Agent: - RubyContenfulManagementGem/0.0.1 Authorization: - Bearer Content-Type: - application/vnd.contentful.management.v1+json Host: - api.contentful.com response: status: code: 201 message: Created headers: Server: - nginx Date: - Thu, 31 Jul 2014 07:37:20 GMT Content-Type: - application/vnd.contentful.management.v1+json Content-Length: - '947' Connection: - keep-alive X-Powered-By: - Express Cf-Space-Id: - yr5m0jky5hsh Etag: - '"62f79ba4b9ead8de61cc24cb4cb426ed"' Access-Control-Allow-Origin: - "*" Access-Control-Allow-Headers: - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization Access-Control-Allow-Methods: - DELETE,GET,HEAD,POST,PUT,OPTIONS "^access-Control-Expose-Headers": - Etag Access-Control-Max-Age: - '1728000' body: encoding: UTF-8 string: | { "fields": { "title": { "en-US": "titlebyCreateAPI" }, "description": { "en-US": "descByAPI" }, "file": { "en-US": { "contentType": "image/jpeg", "fileName": "pic1.jpg", "upload": "https://upload.wikimedia.org/wikipedia/commons/c/c7/Gasometer_Berlin_Sch%C3%B6neberg_2011.jpg" } } }, "sys": { "id": "JJrsd9jsYMMYeyiWgeKmC", "type": "Asset", "version": 1, "createdAt": "2014-07-31T07:37:20.551Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } }, "space": { "sys": { "type": "Link", "linkType": "Space", "id": "yr5m0jky5hsh" } }, "updatedAt": "2014-07-31T07:37:20.551Z", "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "1E7acJL8I5XUXAMHQt9Grs" } } } } http_version: recorded_at: Thu, 31 Jul 2014 07:37:20 GMT - request: method: put uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/assets/JJrsd9jsYMMYeyiWgeKmC/files/en-US/process body: encoding: US-ASCII string: '' headers: User-Agent: - RubyContenfulManagementGem/0.0.1 Authorization: - Bearer Content-Type: - application/vnd.contentful.management.v1+json X-Contentful-Version: - '1' Content-Length: - '0' Host: - api.contentful.com response: status: code: 204 message: No Content headers: Server: - nginx Date: - Thu, 31 Jul 2014 07:37:21 GMT Content-Type: - application/vnd.contentful.management.v1+json Connection: - keep-alive X-Powered-By: - Express Cf-Space-Id: - yr5m0jky5hsh Access-Control-Allow-Origin: - "*" Access-Control-Allow-Headers: - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization Access-Control-Allow-Methods: - DELETE,GET,HEAD,POST,PUT,OPTIONS "^access-Control-Expose-Headers": - Etag Access-Control-Max-Age: - '1728000' body: encoding: UTF-8 string: '' http_version: recorded_at: Thu, 31 Jul 2014 07:37:21 GMT recorded_with: VCR 2.9.2