Skip to content

Commit

Permalink
Update new_connector.md
Browse files Browse the repository at this point in the history
  • Loading branch information
HarmJ0y committed Apr 26, 2024
1 parent f1665e7 commit 0563ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/new_connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ r = requests.request("POST", f"{NEMESIS_URL}/data", auth=basic, data=data, heade

## Other Structured Data

For other types of structured data, only a single message needs to be posted to the `http://<NEMESIS_URL>/api/data` API route, e.g. Step 2 in the downloading processing example. The `metadata["data_type"]` field should be one of the types defined in the [ODR](odr/references/). The appropriate ODR document will also define the fields and structure needed for the datatype.
For other types of structured data, only a single message needs to be posted to the `http://<NEMESIS_URL>/api/data` API route, e.g. Step 2 in the downloading processing example. The `metadata["data_type"]` field should be one of the types defined in the [ODR](https://github.com/SpecterOps/Nemesis/tree/main/docs/odr). The appropriate ODR document will also define the fields and structure needed for the datatype.

Note that the "data" section of the message is an array of dictionaries, i.e., multiple instances of a datatype can be posted in a single message. For example, multiple process messages can exist in the single post.

Expand Down

0 comments on commit 0563ef6

Please sign in to comment.