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

Route

PUT /v2/resource_match

Body

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

cURL

curl "https://api.[your-domain.com]/v2/resource_match" -d '[
  {
    "sha1": "eabf60810bcabc41ad878e1b06aa064705fba204",
    "size": 36
  },
  {
    "sha1": "a9993e364706816aba3e25717850c26c9cd0d89d",
    "size": 1
  }
]' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2OCIsImVtYWlsIjoiZW1haWwtMjA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzZ9.zVvScTT0szMQWzjYepnA4xKUix5QvIvQ-RpwTvZr6zc" \
	-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: 19799d46-86ac-49bb-9cdc-42d5deb442a8
Content-Length: 63
X-Content-Type-Options: nosniff

Status

200 OK

Body

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