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/4ba3e2027f801c7d7a0ff3d741de27747b2c2439f1e718e7ece5f37a264369b1
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/4ba3e2027f801c7d7a0ff3d741de27747b2c2439f1e718e7ece5f37a264369b1'
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: 3546
x-ratelimit-remaining: 2903
x-frame-options: SAMEORIGIN
x-ratelimit-resetdate: 2019-04-02T22:41:15Z
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/4ba3e2027f801c7d7a0ff3d741de27747b2c2439f1e718e7ece5f37a264369b1"
    }
  },
  "data": {
    "sha256": "4ba3e2027f801c7d7a0ff3d741de27747b2c2439f1e718e7ece5f37a264369b1",
    "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"
    }
  }
}