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/bf6d223c5c4384700a9bb6f69b48753c75401f3807f0e529588cc5c3957a2f7d
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/bf6d223c5c4384700a9bb6f69b48753c75401f3807f0e529588cc5c3957a2f7d'
Body
{"description":"some.file_list_item.description"}
      

Response

Shortened for readability

strict-transport-security: max-age=31536000
content-type: application/json; charset=utf-8
status: 201 Created
x-ratelimit-limit: 3000
x-ratelimit-reset: 3541
x-ratelimit-remaining: 2927
x-frame-options: SAMEORIGIN
x-ratelimit-resetdate: 2019-11-22T19:40:39Z
transfer-encoding: chunked
{
  "version": "v1.2.0",
  "metadata": {
    "links": {
      "self": "https://api.eu.amp.cisco.com/v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d/files/bf6d223c5c4384700a9bb6f69b48753c75401f3807f0e529588cc5c3957a2f7d"
    }
  },
  "data": {
    "sha256": "bf6d223c5c4384700a9bb6f69b48753c75401f3807f0e529588cc5c3957a2f7d",
    "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"
    }
  }
}