Home
Version 3
Resource Match API

Resource Match API

List all matching resources

PUT /v2/resource_match

Fields

Name Description Default Valid Values Example Values

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMiIsImVtYWlsIjoiZW1haWwtMTY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzR9.tG5Ga1_KAS04CZnane767IK4wEltHyXsubdwPvbZrnA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/resource_match

Body

[
  {
    "sha1": "4b606c1ba1598b2519a6f208d38df5be9da5094f",
    "size": 36
  },
  {
    "sha1": "a9993e364706816aba3e25717850c26c9cd0d89d",
    "size": 1
  }
]

cURL

curl "https://api.[your-domain.com]/v2/resource_match" -d '[
  {
    "sha1": "4b606c1ba1598b2519a6f208d38df5be9da5094f",
    "size": 36
  },
  {
    "sha1": "a9993e364706816aba3e25717850c26c9cd0d89d",
    "size": 1
  }
]' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMiIsImVtYWlsIjoiZW1haWwtMTY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzR9.tG5Ga1_KAS04CZnane767IK4wEltHyXsubdwPvbZrnA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8dc33561-0811-4f8c-9eb5-19c513b6841a
Content-Length: 63
X-Content-Type-Options: nosniff

Status

200 OK

Body

[{"sha1":"4b606c1ba1598b2519a6f208d38df5be9da5094f","size":36}]