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.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOSIsImVtYWlsIjoiZW1haWwtMTA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzJ9.451tG2GrMH6QXs8ey12Lp-rdsN7vq6sjdYPuxdmxtkg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/resource_match

Body

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

cURL

curl "https://api.[your-domain.com]/v2/resource_match" -d '[
  {
    "sha1": "4b551dead96fb4cf2ba3028f45342b884424eaff",
    "size": 36
  },
  {
    "sha1": "a9993e364706816aba3e25717850c26c9cd0d89d",
    "size": 1
  }
]' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOSIsImVtYWlsIjoiZW1haWwtMTA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzJ9.451tG2GrMH6QXs8ey12Lp-rdsN7vq6sjdYPuxdmxtkg" \
	-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: ac80b026-41b5-4ac5-aed9-b4dcfed7aa51
Content-Length: 63
X-Content-Type-Options: nosniff

Status

200 OK

Body

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