# NinjaOne

> Read NinjaOne devices, alerts and inventory and manage organizations and contacts.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/ninjaone

## Actions

### Create contact

Create contact. Returns the service response.

**Inputs**

- Organization (`organization_id`, number): Organizationid.
- First name (`first_name`, text): Firstname.
- Last name (`last_name`, text): Lastname.
- Email (`email`, text, required): Email.
- Phone (`phone`, text): Phone.
- Job title (`job_title`, text): Jobtitle.
- Manager uuid (`manager_uuid`, text): Manageruuid.

**Outputs**

- `data` (object): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": {
    "email": "example",
    "firstName": "example",
    "id": 1,
    "jobTitle": "example",
    "lastName": "example",
    "organizationId": 1,
    "phone": "example",
    "uid": "example"
  },
  "has_more": false,
  "next_cursor": "example"
}
```

### Create organization

Create organization. Returns the service response.

**Inputs**

- Template organization id (`template_organization_id`, number): Templateorganizationid.
- Name (`name`, text, required): Name.
- Description (`description`, text): Description.
- User data (`user_data`, object): Userdata.
- Node approval mode (`node_approval_mode`, text): Nodeapprovalmode. One of: `AUTOMATIC`, `MANUAL`, `REJECT`.
- Locations (`locations`, list): Locations.
- Policies (`policies`, list): Policies.

**Outputs**

- `data` (object): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": {
    "description": "example",
    "id": 1,
    "locations": [],
    "name": "example",
    "nodeApprovalMode": "AUTOMATIC",
    "policies": [],
    "settings": {
      "backup": {
        "enabled": false,
        "options": {},
        "product": "example",
        "targets": []
      },
      "psa": {
        "enabled": false,
        "options": {},
        "product": "example",
        "targets": []
      },
      "splashtop": {
        "enabled": false,
        "options": {},
        "product": "example",
        "targets": []
      },
      "teamviewer": {
        "enabled": false,
        "options": {},
        "product": "example",
        "targets": []
      },
      "trayicon": {
        "enabled": false,
        "options": {},
        "product": "example",
        "targets": []
      }
    },
    "userData": {}
  },
  "has_more": false,
  "next_cursor": "example"
}
```

### Delete contact

Delete contact. Returns the service response.

**Inputs**

- Id (`id`, number, required): Id.

**Outputs**

- `data` (null): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": null,
  "has_more": false,
  "next_cursor": "example"
}
```

### Get contact

Get contact. Returns the service response.

**Inputs**

- Id (`id`, number, required): Id.

**Outputs**

- `data` (object): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": {
    "email": "example",
    "firstName": "example",
    "id": 1,
    "jobTitle": "example",
    "lastName": "example",
    "organizationId": 1,
    "phone": "example",
    "uid": "example"
  },
  "has_more": false,
  "next_cursor": "example"
}
```

### Get device

Get device. Returns the service response.

**Inputs**

- Id (`id`, number, required): Id.

**Outputs**

- `data` (object): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": {
    "approvalStatus": "PENDING",
    "assignedOwnerUid": "example",
    "created": 1,
    "deviceType": "AgentDevice",
    "displayName": "example",
    "dnsName": "example",
    "id": 1,
    "ipAddresses": [],
    "lastContact": 1,
    "lastLoggedInUser": "example",
    "lastUpdate": 1,
    "locationId": 1,
    "macAddresses": [],
    "maintenance": {
      "end": 1,
      "reasonMessage": "example",
      "start": 1,
      "status": "PENDING"
    },
    "memory": {
      "capacity": 1
    },
    "netbiosName": "example",
    "nodeClass": "WINDOWS_SERVER",
    "nodeRoleId": 1,
    "notes": [],
    "offline": false,
    "organizationId": 1,
    "os": {
      "architecture": "example",
      "buildNumber": "example",
      "language": "example",
      "lastBootTime": 1,
      "locale": "example",
      "manufacturer": "example",
      "name": "example",
      "needsReboot": false,
      "releaseId": "example",
      "servicePackMajorVersion": 1,
      "servicePackMinorVersion": 1
    },
    "parentDeviceId": 1,
    "policyId": 1,
    "processors": [],
    "publicIP": "example",
    "references": {
      "assignedOwner": {
        "administrator": false,
        "assignedDeviceIds": [],
        "deviceIds": [],
        "email": "example",
        "enabled": false,
        "firstName": "example",
        "id": 1,
        "invitationStatus": "REGISTERED",
        "lastName": "example",
        "mfaConfigured": false,
        "mustChangePw": false,
        "notifyAllClients": false,
        "organizationId": 1,
        "permitAllClients": false,
        "phone": "example",
        "roles": [],
        "uid": "example",
        "userType": "TECHNICIAN"
      },
      "backupBandwidthThrottle": {
        "enabled": false,
        "nonWorkHoursKbps": 1,
        "nonWorkHoursUserUnit": "example",
        "workHoursKbps": 1,
        "workHoursUserUnit": "example",
        "workSchedule": {}
      },
      "backupUsage": {
        "cloudFileFolderSize": 1,
        "cloudImageSize": 1,
        "cloudImageV2Size": 1,
        "cloudNetworkShareSize": 1,
        "cloudTotalSize": 1,
        "lastFailedBackupJob": 1,
        "lastSuccessfulBackupJob": 1,
        "localFileFolderSize": 1,
        "localImageSize": 1,
        "localImageV2Size": 1,
        "localTotalSize": 1,
        "revisionsCurrentSize": 1,
        "revisionsDeletedSize": 1,
        "revisionsPreviousSize": 1,
        "revisionsTotalSize": 1
      },
      "location": {
        "address": "example",
        "description": "example",
        "id": 1,
        "name": "example",
        "userData": {}
      },
      "organization": {
        "description": "example",
        "id": 1,
        "name": "example",
        "nodeApprovalMode": "AUTOMATIC",
        "userData": {}
      },
      "policy": {
        "description": "example",
        "id": 1,
        "name": "example",
        "nodeClass": "WINDOWS_SERVER",
        "nodeClassDefault": false,
        "parentPolicyId": 1,
        "updated": 1
      },
      "role": {
        "chassisType": "UNKNOWN",
        "created": 1,
        "custom": false,
        "description": "example",
        "icon": "example",
        "id": 1,
        "name": "example",
        "nodeClass": "WINDOWS_SERVER",
        "nodeRoleParentId": 1
      },
      "rolePolicy": {
        "description": "example",
        "id": 1,
        "name": "example",
        "nodeClass": "WINDOWS_SERVER",
        "nodeClassDefault": false,
        "parentPolicyId": 1,
        "updated": 1
      },
      "warranty": {
        "endDate": 1,
        "manufacturerFulfillmentDate": 1,
        "startDate": 1
      }
    },
    "rolePolicyId": 1,
    "system": {
      "assetSerialNumber": "example",
      "biosSerialNumber": "example",
      "chassisType": "example",
      "domain": "example",
      "domainRole": "example",
      "manufacturer": "example",
      "model": "example",
      "name": "example",
      "numberOfProcessors": 1,
      "serialNumber": "example",
      "totalPhysicalMemory": 1,
      "virtualMachine": false
    },
    "systemName": "example",
    "tags": [],
    "uid": "example",
    "userData": {},
    "volumes": []
  },
  "has_more": false,
  "next_cursor": "example"
}
```

### Get device custom fields

Get device custom fields. Returns the service response.

**Inputs**

- Id (`id`, number, required): Id.
- With inheritance (`with_inheritance`, true/false): Withinheritance.

**Outputs**

- `data` (object): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": "example"
}
```

### Get organization

Get organization. Returns the service response.

**Inputs**

- Id (`id`, number, required): Id.

**Outputs**

- `data` (object): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": {
    "description": "example",
    "id": 1,
    "locations": [],
    "name": "example",
    "nodeApprovalMode": "AUTOMATIC",
    "policies": [],
    "settings": {
      "backup": {
        "enabled": false,
        "options": {},
        "product": "example",
        "targets": []
      },
      "psa": {
        "enabled": false,
        "options": {},
        "product": "example",
        "targets": []
      },
      "splashtop": {
        "enabled": false,
        "options": {},
        "product": "example",
        "targets": []
      },
      "teamviewer": {
        "enabled": false,
        "options": {},
        "product": "example",
        "targets": []
      },
      "trayicon": {
        "enabled": false,
        "options": {},
        "product": "example",
        "targets": []
      }
    },
    "userData": {}
  },
  "has_more": false,
  "next_cursor": "example"
}
```

### List activities

List activities. Returns one page; use the next page cursor to continue.

**Inputs**

- Record class (`record_class`, text): Class. One of: `SYSTEM`, `DEVICE`, `USER`, `ALL`.
- Before (`before`, date and time): Before.
- After (`after`, date and time): After.
- Older than (`older_than`, number): Olderthan.
- Newer than (`newer_than`, number): Newerthan.
- Type (`type`, text): Type.
- Status (`status`, text): Status.
- User (`user`, text): User.
- Series uid (`series_uid`, text): Seriesuid.
- Df (`df`, text): Df.
- Page size (`page_size`, number): Pagesize. From 10 to 1000.
- Lang (`lang`, text): Lang.
- Tz (`tz`, text): Tz.
- Start time (`start_time`, date and time): Starttime.
- End time (`end_time`, date and time): Endtime.
- Source config uid (`source_config_uid`, text): Sourceconfiguid.

**Outputs**

- `data` (object): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": {
    "activities": [],
    "lastActivityId": 1
  },
  "has_more": false,
  "next_cursor": "example"
}
```

### List alerts

List alerts. Returns the service response.

**Inputs**

- Source type (`source_type`, text): Sourcetype.
- Df (`df`, text): Df.
- Lang (`lang`, text): Lang.
- Tz (`tz`, text): Tz.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List contacts

List contacts. Returns the service response.

**Inputs**: None.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List detailed devices

List detailed devices. Returns one page; use the next page cursor to continue.

**Inputs**

- Df (`df`, text): Df.
- Page size (`page_size`, number): Pagesize.
- After (`after`, number): After.

**Outputs**

- `data` (list): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List device alerts

List device alerts. Returns the service response.

**Inputs**

- Id (`id`, number, required): Id.
- Lang (`lang`, text): Lang.
- Tz (`tz`, text): Tz.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List device disks

List device disks. Returns the service response.

**Inputs**

- Id (`id`, number, required): Id.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List device jobs

List device jobs. Returns the service response.

**Inputs**

- Id (`id`, number, required): Id.
- Lang (`lang`, text): Lang.
- Tz (`tz`, text): Tz.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List device network interfaces

List device network interfaces. Returns the service response.

**Inputs**

- Id (`id`, number, required): Id.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List device processors

List device processors. Returns the service response.

**Inputs**

- Id (`id`, number, required): Id.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List device software

List device software. Returns the service response.

**Inputs**

- Id (`id`, number, required): Id.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List device volumes

List device volumes. Returns the service response.

**Inputs**

- Id (`id`, number, required): Id.
- Include (`include`, text): Include.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List devices

List devices. Returns one page; use the next page cursor to continue.

**Inputs**

- Df (`df`, text): Df.
- Page size (`page_size`, number): Pagesize.
- After (`after`, number): After.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List organization devices

List organization devices. Returns one page; use the next page cursor to continue.

**Inputs**

- Id (`id`, number, required): Id.
- Page size (`page_size`, number): Pagesize.
- After (`after`, number): After.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List organization locations

List organization locations. Returns the service response.

**Inputs**

- Id (`id`, number, required): Id.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List organizations

List organizations. Returns one page; use the next page cursor to continue.

**Inputs**

- Page size (`page_size`, number): Pagesize.
- After (`after`, number): After.
- Of (`of`, text): Of.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List policies

List policies. Returns the service response.

**Inputs**: None.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### List scripts

List scripts. Returns the service response.

**Inputs**

- Lang (`lang`, text): Lang.

**Outputs**

- `data` (list): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": "example"
}
```

### Update contact

Update contact. Returns the service response.

**Inputs**

- Id (`id`, number, required): Id.
- First name (`first_name`, text): Firstname.
- Last name (`last_name`, text): Lastname.
- Email (`email`, text): Email.
- Job title (`job_title`, text): Jobtitle.
- Organization (`organization_id`, number): Organizationid.
- Phone (`phone`, text): Phone.

**Outputs**

- `data` (object): The complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Pass this value to the next page cursor.

**Example output**

```json
{
  "data": {
    "email": "example",
    "firstName": "example",
    "id": 1,
    "jobTitle": "example",
    "lastName": "example",
    "organizationId": 1,
    "phone": "example",
    "uid": "example"
  },
  "has_more": false,
  "next_cursor": "example"
}
```
