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.eyJ1c2VyX2lkIjoidWFhLWlkLTE4IiwiZW1haWwiOiJlbWFpbC0xOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMwfQ.cHMHCf0vdOoylsATqYceGrc7zEt_lGlbf36Q9gvpDyA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/resource_match

Body

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

cURL

curl "https://api.[your-domain.com]/v2/resource_match" -d '[
  {
    "sha1": "cb66a74aa4444373e23a4907f791955b30ea37a5",
    "size": 36
  },
  {
    "sha1": "a9993e364706816aba3e25717850c26c9cd0d89d",
    "size": 1
  }
]' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4IiwiZW1haWwiOiJlbWFpbC0xOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMwfQ.cHMHCf0vdOoylsATqYceGrc7zEt_lGlbf36Q9gvpDyA" \
	-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: 90f60622-0c1c-4803-bd00-25d444a86dc9
Content-Length: 63
X-Content-Type-Options: nosniff

Status

200 OK

Body

[{"sha1":"cb66a74aa4444373e23a4907f791955b30ea37a5","size":36}]