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.eyJ1c2VyX2lkIjoidWFhLWlkLTc5IiwiZW1haWwiOiJlbWFpbC00OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTMzfQ.epaqQUV9kKaCkZx7AWQxcztFsIiD3WzUSto9-2EvJ2o
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/resource_match

Body

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

cURL

curl "https://api.[your-domain.com]/v2/resource_match" -d '[
  {
    "sha1": "28ce9d105e09933c9480726344ae9406785fc2f1",
    "size": 36
  },
  {
    "sha1": "a9993e364706816aba3e25717850c26c9cd0d89d",
    "size": 1
  }
]' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc5IiwiZW1haWwiOiJlbWFpbC00OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTMzfQ.epaqQUV9kKaCkZx7AWQxcztFsIiD3WzUSto9-2EvJ2o" \
	-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: aa22d0aa-14a9-4df5-9bf6-8c5381f09281
Content-Length: 63
X-Content-Type-Options: nosniff

Status

200 OK

Body

[{"sha1":"28ce9d105e09933c9480726344ae9406785fc2f1","size":36}]