Simple Case Creation

Create a Nuix simple case.

Create a Case

Now that you are authenticated, lets create your first Nuix simple case.

curl --location --request POST 'http://localhost:8080/nuix-restful-service/svc/v1/cases' \
--header 'nuix-auth-token: 9729a460-eda7-48dc-ba70-d12b3aae3c8d' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
   "name":"HelloWorld",
   "location":"inventory0",
   "description":"My first simple Nuix case",
   "compound":false,
   "investigator":"Inspector Gadget"
}'
{
    "caseId": "43b070164ce8453ca30ed9e2dfcce67b",
    "name": "HelloWorld",
    "path": "/Cases/HelloWorld",
    "description": "My first simple Nuix case",
    "investigator": "Inspector Gadget",
    "creationDate": 1612906749154,
    "compound": false,
    "elastic": false,
    "binaryStoreLocation": "",
    "indexId": "",
    "caseSize": 0,
    "casePathParent": "/Cases",
    "caseInvestigationTimeZone": "America/New_York",
    "hasExclusions": null,
    "hasNuixSystemTags": null,
    "hasProductionSets": null,
    "hasCalculatedAuditSize": null,
    "casePath": "/Cases/HelloWorld",
    "caseDescription": "My first simple Nuix case",
    "caseCreationDate": 1612906749154,
    "caseInvestigator": "Inspector Gadget",
    "caseName": "HelloWorld"
}

Alternatively, you can use the following example scripts to create a simple case. To run these scripts, you must install the requests module using pip.

sudo pip3 install requests

import requests
import json

token="YOURTOKEN"
caseName="HelloWorld"
location="inventory0"
caseDescription="Simple Case"
compoundCase=False
investigator="Inspector Gadget"

base_url = "{{host}}:8080/nuix-restful-service/svc"
headers = {
    "Content-Type":"application/json",
    "Authorization": "Bearer {}".format(token)
}
request_body = {
   "name":caseName,
   "location":location,
   "description":caseDescription,
   "compound":False,
   "investigator":investigator
}

def create_case():
    try:
        case = requests.post(base_url+"/v1/cases", data=json.dumps(request_body), headers=headers)
        print("Successful created case: {}".format(case.json()['caseId']))
    except Exception as e:
        print(e)


create_case()

import requests
import json

token="YOURTOKEN"
caseName="HelloWorld"
location="inventory0"
caseDescription="Simple Case"
compoundCase=False
investigator="Inspector Gadget"

base_url = "{{host}}:8080/nuix-restful-service/svc"
headers = {
    "Content-Type":"application/json",
    "Authorization": "Bearer {}".format(token)
}
request_body = {
   "name":caseName,
   "location":location,
   "description":caseDescription,
   "compound":False,
   "investigator":investigator
}

def create_case():
    try:
        case = requests.post(base_url+"/v1/cases", data=json.dumps(request_body), headers=headers)
        print("Successful created case: {}".format(case.json()['caseId']))
    except Exception as e:
        print(e)


create_case()

You have now successfully created a case! Now, you can proceed to Part 5: Ingestion.