Cisco AMP for Endpoints API

POST /v1/file_lists/{:file_list_guid}/files/{:sha256}

Description

This endpoint can be used to add a SHA-256 to a file list using file_list_guid.

Show Response Fields

Name Type Description
version String
metadata.links.self String
data.sha256 String
data.description String
data.source String
data.links.file_list String
Write
Preview

Examples

Create a file list item with a given SHA-256 for a specific file list with a given file_list_guid

Create a file list item with a given SHA-256 for a specific file list with a given file_list_guid

Request

Requires Authorization
POST /v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d/files/d15766ead5d8ffe68fd96d4bda75c07378fc74f76e251ae6631f4ec8226d2bcb
Headers
accept: application/json
content-type: application/json
authorization: Basic FILTERED
content-length: 49

cURL Edit, then copy and paste on your terminal

curl -X POST \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-H 'content-length: 49' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-d '{"description":"some.file_list_item.description"}' \
-u YOUR_API_CLIENT_ID \
'https://api.eu.amp.cisco.com/v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d/files/d15766ead5d8ffe68fd96d4bda75c07378fc74f76e251ae6631f4ec8226d2bcb'
Body
{"description":"some.file_list_item.description"}
      

Response

Shortened for readability

x-ratelimit-limit: 3000
x-ratelimit-reset: 3316
x-ratelimit-remaining: 2866
x-frame-options: SAMEORIGIN
x-ratelimit-resetdate: 2017-08-18T03:52:38Z
strict-transport-security: max-age=31536000
status: 201 Created
transfer-encoding: chunked
content-type: application/json; charset=utf-8
{
  "version": "v1.2.0",
  "metadata": {
    "links": {
      "self": "https://api.eu.amp.cisco.com/v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d/files/d15766ead5d8ffe68fd96d4bda75c07378fc74f76e251ae6631f4ec8226d2bcb"
    }
  },
  "data": {
    "sha256": "d15766ead5d8ffe68fd96d4bda75c07378fc74f76e251ae6631f4ec8226d2bcb",
    "description": "some.file_list_item.description",
    "source": "Created by entering SHA-256 via Public api.",
    "links": {
      "file_list": "https://api.eu.amp.cisco.com/v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d"
    }
  }
}