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": "fa97284e218bdc933cde1f1f75d1a92056c825f4",
    "size": 36
  },
  {
    "sha1": "a9993e364706816aba3e25717850c26c9cd0d89d",
    "size": 1
  }
]

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMjc3NDk3OH0.ZaXbV7PqQPXp1juE-HAmm41DNqjyVbO8_Eji4_X-Psg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

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

Response

Status

200 OK

Body

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

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7645be25-9b96-45ed-ac4c-1141c6593272
Content-Length: 63
X-Content-Type-Options: nosniff