--- http_interactions: - request: method: post uri: https://api.contentful.com/spaces/03vrieuz7eun/roles body: encoding: UTF-8 string: '{"name":"ToDelete","description":"test role","permissions":{"ContentDelivery":"all","ContentModel":["read"],"Settings":[]},"policies":[{"effect":"allow","actions":"all","constraint":{"and":[{"equals":[{"doc":"sys.type"},"Entry"]},{"equals":[{"doc":"sys.type"},"Asset"]}]}}]}' headers: User-Agent: - RubyContentfulManagementGem/1.0.1 Authorization: - Bearer Content-Type: - application/vnd.contentful.management.v1+json Connection: - close Host: - api.contentful.com response: status: code: 201 message: Created headers: Accept-Ranges: - bytes 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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent Access-Control-Allow-Methods: - DELETE,GET,HEAD,POST,PUT,OPTIONS Access-Control-Allow-Origin: - "*" Access-Control-Expose-Headers: - Etag Access-Control-Max-Age: - '1728000' Cache-Control: - max-age=0 Content-Type: - application/vnd.contentful.management.v1+json Date: - Thu, 07 Apr 2016 20:54:14 GMT Etag: - '"4c5b03ff2f2cfcdb28b1062784455074"' Location: - https://api.contentful.com/spaces/03vrieuz7eun/roles/6jpmmcJTQ0nQfaPeOqJTnH Server: - nginx Status: - 201 Created Strict-Transport-Security: - max-age=15768000 X-Content-Type-Options: - nosniff X-Contentful-Request-Id: - 9e1-1105921568 Content-Length: - '1155' Connection: - Close Set-Cookie: - incap_ses_298_673446=850kO3ftsBDYO9e9KrYiBPXIBlcAAAAAadxpdX2M/6bXMwSGIEUtlw==; path=/; Domain=.contentful.com - nlbi_673446=YCTtf7In/gB6bO0taoBaJgAAAADvt/fE92ssKL+IThrG6AKO; path=/; Domain=.contentful.com - visid_incap_673446=gtVDWKoCTf6jvAlHYx3o2vXIBlcAAAAAQUIPAAAAAACyN3oieq/8dvieBJHkVM+/; expires=Fri, 07 Apr 2017 09:48:46 GMT; path=/; Domain=.contentful.com X-Iinfo: - 9-31994409-31994441 NNNN CT(170 176 0) RT(1460062453196 96) q(0 0 4 -1) r(7 7) U5 X-Cdn: - Incapsula body: encoding: UTF-8 string: |+ { "name":"ToDelete", "description":"test role", "policies":[ { "effect":"allow", "actions":"all", "constraint":{ "and":[ { "equals":[ { "doc":"sys.type" }, "Entry" ] }, { "equals":[ { "doc":"sys.type" }, "Asset" ] } ] } } ], "permissions":{ "ContentModel":[ "read" ], "Settings":[], "ContentDelivery":"all" }, "sys":{ "type":"Role", "id":"6jpmmcJTQ0nQfaPeOqJTnH", "version":0, "space":{ "sys":{ "type":"Link", "linkType":"Space", "id":"03vrieuz7eun" } }, "createdBy":{ "sys":{ "type":"Link", "linkType":"User", "id":"4SejVrWT96dvL9IV4Nb7sQ" } }, "createdAt":"2016-04-07T20:54:14Z", "updatedBy":{ "sys":{ "type":"Link", "linkType":"User", "id":"4SejVrWT96dvL9IV4Nb7sQ" } }, "updatedAt":"2016-04-07T20:54:14Z" } } http_version: recorded_at: Thu, 07 Apr 2016 20:54:14 GMT - request: method: get uri: https://api.contentful.com/spaces/03vrieuz7eun/roles/6jpmmcJTQ0nQfaPeOqJTnH body: encoding: US-ASCII string: '' headers: User-Agent: - RubyContentfulManagementGem/1.0.1 Authorization: - Bearer Content-Type: - application/vnd.contentful.management.v1+json Content-Length: - '0' Connection: - close Host: - api.contentful.com response: status: code: 200 message: OK headers: Accept-Ranges: - bytes 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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent Access-Control-Allow-Methods: - DELETE,GET,HEAD,POST,PUT,OPTIONS Access-Control-Allow-Origin: - "*" Access-Control-Expose-Headers: - Etag Access-Control-Max-Age: - '1728000' Cache-Control: - max-age=0 Content-Type: - application/vnd.contentful.management.v1+json Date: - Thu, 07 Apr 2016 20:54:15 GMT Etag: - '"4c5b03ff2f2cfcdb28b1062784455074"' Server: - nginx Status: - 200 OK Strict-Transport-Security: - max-age=15768000 X-Content-Type-Options: - nosniff X-Contentful-Request-Id: - 0b5-375601608 Content-Length: - '1155' Connection: - Close Set-Cookie: - incap_ses_298_673446=9LzRDx926XnePde9KrYiBPbIBlcAAAAAz+rB+UUXFAXeBUwnLryLOg==; path=/; Domain=.contentful.com - nlbi_673446=bipoCH2EBCEXnvpMaoBaJgAAAABjt2fx8B3J5FYCHJR05Tlm; path=/; Domain=.contentful.com - visid_incap_673446=G5NMB7aMQAi4zpKtc92GPfbIBlcAAAAAQUIPAAAAAADg/g4XFLk1VixNZ6M0U+Od; expires=Fri, 07 Apr 2017 09:48:46 GMT; path=/; Domain=.contentful.com X-Iinfo: - 2-14694086-14694099 NNNN CT(168 168 0) RT(1460062454114 97) q(0 0 3 -1) r(5 5) U5 X-Cdn: - Incapsula body: encoding: UTF-8 string: |+ { "name":"ToDelete", "description":"test role", "policies":[ { "effect":"allow", "actions":"all", "constraint":{ "and":[ { "equals":[ { "doc":"sys.type" }, "Entry" ] }, { "equals":[ { "doc":"sys.type" }, "Asset" ] } ] } } ], "permissions":{ "ContentModel":[ "read" ], "Settings":[], "ContentDelivery":"all" }, "sys":{ "type":"Role", "id":"6jpmmcJTQ0nQfaPeOqJTnH", "version":0, "space":{ "sys":{ "type":"Link", "linkType":"Space", "id":"03vrieuz7eun" } }, "createdBy":{ "sys":{ "type":"Link", "linkType":"User", "id":"4SejVrWT96dvL9IV4Nb7sQ" } }, "createdAt":"2016-04-07T20:54:14Z", "updatedBy":{ "sys":{ "type":"Link", "linkType":"User", "id":"4SejVrWT96dvL9IV4Nb7sQ" } }, "updatedAt":"2016-04-07T20:54:14Z" } } http_version: recorded_at: Thu, 07 Apr 2016 20:54:15 GMT - request: method: delete uri: https://api.contentful.com/spaces/03vrieuz7eun/roles/6jpmmcJTQ0nQfaPeOqJTnH body: encoding: US-ASCII string: '' headers: User-Agent: - RubyContentfulManagementGem/1.0.1 Authorization: - Bearer Content-Type: - application/vnd.contentful.management.v1+json Content-Length: - '0' Connection: - close Host: - api.contentful.com response: status: code: 204 message: No Content headers: Accept-Ranges: - bytes 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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent Access-Control-Allow-Methods: - DELETE,GET,HEAD,POST,PUT,OPTIONS Access-Control-Allow-Origin: - "*" Access-Control-Expose-Headers: - Etag Access-Control-Max-Age: - '1728000' Cache-Control: - max-age=0 Date: - Thu, 07 Apr 2016 20:54:16 GMT Server: - nginx Status: - 204 No Content Strict-Transport-Security: - max-age=15768000 X-Content-Type-Options: - nosniff X-Contentful-Request-Id: - 9e1-1105921587 Connection: - Close Set-Cookie: - incap_ses_298_673446=38J+KNdzuTPAP9e9KrYiBPfIBlcAAAAAreOsLLtCoVTzVUG+ocmzlg==; path=/; Domain=.contentful.com - nlbi_673446=k0IKIiJM8VnhtWNjaoBaJgAAAADGxiceeKDXxPYGhHjqq6R4; path=/; Domain=.contentful.com - visid_incap_673446=rlUERArsQI2ZU6tq/KKSJPfIBlcAAAAAQUIPAAAAAAAGHo3zrjy3UXXXwApaoGz8; expires=Fri, 07 Apr 2017 09:48:17 GMT; path=/; Domain=.contentful.com X-Iinfo: - 4-20653137-20653158 NNNN CT(172 172 0) RT(1460062454894 99) q(0 0 4 -1) r(7 7) U5 X-Cdn: - Incapsula body: encoding: UTF-8 string: '' http_version: recorded_at: Thu, 07 Apr 2016 20:54:16 GMT - request: method: get uri: https://api.contentful.com/spaces/03vrieuz7eun/roles/6jpmmcJTQ0nQfaPeOqJTnH body: encoding: US-ASCII string: '' headers: User-Agent: - RubyContentfulManagementGem/1.0.1 Authorization: - Bearer Content-Type: - application/vnd.contentful.management.v1+json Content-Length: - '0' Connection: - close Host: - api.contentful.com response: status: code: 404 message: Not Found headers: Accept-Ranges: - bytes 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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent Access-Control-Allow-Methods: - DELETE,GET,HEAD,POST,PUT,OPTIONS Access-Control-Allow-Origin: - "*" Access-Control-Expose-Headers: - Etag Access-Control-Max-Age: - '1728000' Cache-Control: - max-age=0 Content-Type: - application/vnd.contentful.management.v1+json Date: - Thu, 07 Apr 2016 20:54:16 GMT Server: - nginx Status: - 404 Not Found X-Contentful-Request-Id: - b89-583999760 X-Ua-Compatible: - IE=Edge,chrome=1 Content-Length: - '138' Connection: - Close Set-Cookie: - incap_ses_298_673446=H8mYVbYE1C+NQde9KrYiBPjIBlcAAAAAnuJs8E+xqeJtANN4UoQQtw==; path=/; Domain=.contentful.com - nlbi_673446=rSm4XT1xd1kdsm01aoBaJgAAAACGmt7N3zR6pJWCGGMJXVXR; path=/; Domain=.contentful.com - visid_incap_673446=FQAQZFSJTqG5S0YQ974wGfjIBlcAAAAAQUIPAAAAAACgnMC27Z/vRCtb+wnxRVob; expires=Fri, 07 Apr 2017 09:48:46 GMT; path=/; Domain=.contentful.com X-Iinfo: - 7-26367695-26367728 NNNN CT(167 169 0) RT(1460062455769 98) q(0 0 4 -1) r(6 6) U5 X-Cdn: - Incapsula body: encoding: UTF-8 string: |+ { "requestId":"b89-583999760", "message":"The resource could not be found.", "sys":{ "type":"Error", "id":"NotFound" } } http_version: recorded_at: Thu, 07 Apr 2016 20:54:17 GMT recorded_with: VCR 2.9.3