Home
Version 3
Resource Match API

Resource Match API

List all matching resources

PUT /v2/resource_match

Request

Route

PUT /v2/resource_match

Body

Name Description Default Valid Values Example Values
[
  {
    "sha1": "8d168c8f2cb8baabf441158ba2154b6053f14630",
    "size": 36
  },
  {
    "sha1": "a9993e364706816aba3e25717850c26c9cd0d89d",
    "size": 1
  }
]

Headers

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

cURL

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

Response

Status

200 OK

Body

[{"sha1":"8d168c8f2cb8baabf441158ba2154b6053f14630","size":36}]

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e4f9146d-c86f-481f-b00f-f3bda5c3fafb
Content-Length: 63
X-Content-Type-Options: nosniff