Home
Version 3
Resource Match API

Resource Match API

List all matching resources

PUT /v2/resource_match

Request

Route

PUT /v2/resource_match
[
  {
    "sha1": "6a46b30ef761323c5f1f37ca258027ad51770c48",
    "size": 36
  },
  {
    "sha1": "a9993e364706816aba3e25717850c26c9cd0d89d",
    "size": 1
  }
]

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyMSIsImVtYWlsIjoiZW1haWwtMzExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTd9.5vP13-Wjo4aBlst94Vi1Zy5cgzrZ9GpqaJSSk_okcjY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

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

Response

Status

200 OK

Body

[{"sha1":"6a46b30ef761323c5f1f37ca258027ad51770c48","size":36}]

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 03ec6e0c-4cb4-4e79-9d2c-dc1c0a15f4d1
Content-Length: 63
X-Content-Type-Options: nosniff