Nexthink enrichment API
The enrichment API from Nexthink — 1 operation(s) for enrichment.
The enrichment API from Nexthink — 1 operation(s) for enrichment.
openapi: 3.0.1
info:
title: Campaigns enrichment API
version: 1.0.0
servers:
- url: https://{instance}.api.{region}.nexthink.cloud
description: Nexthink Infinity instance API host
variables:
instance:
default: instance
description: Your Nexthink instance name
region:
default: us
enum:
- us
- eu
- pac
- meta
description: Nexthink cloud region
security:
- bearerAuth: []
tags:
- name: enrichment
paths:
/api/v1/enrichment/data/fields:
post:
tags:
- enrichment
summary: Enrich fields for given objects
description: 'Enrichment can be done for manual custom fields (any object), virtualization fields (devices only), configuration_tag for devices, the organization field (users only), or the Entra ID fields (users only).
'
operationId: enrichmentDataFields
requestBody:
description: The different objects to be enriched with the given fields and values used for the enrichment.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EnrichmentRequest'
responses:
'200':
description: Successful enrichment response
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
'207':
description: Partial success enrichment response - some invalid enrichment, see error codes for details
content:
application/json:
schema:
$ref: '#/components/schemas/PartialSuccessResponse'
'400':
description: Bad request - invalid enrichment, see error codes for details
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/BadRequestResponse'
- $ref: '#/components/schemas/Error'
'401':
description: Unauthorized - invalid authentication credentials
'403':
description: Forbidden - no permission to trigger enrichment
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenResponse'
components:
schemas:
BadRequestResponse:
description: Error response when ALL objects in the request contain errors
type: object
properties:
status:
description: Status of the request
type: string
enum:
- error
errors:
description: List of all the individual errors for all objects
type: array
minimum: 1
items:
$ref: '#/components/schemas/IndividualObjectError'
ForbiddenResponse:
description: Error response when no permissions
type: object
properties:
message:
description: Error message when no permissions
type: string
PartialSuccessResponse:
description: Partial success response when some of the objects in the request contain errors but other objects are processed
type: object
properties:
status:
description: Status of the request
type: string
enum:
- partial_success
errors:
description: List of all the individual errors for those objects with error
type: array
minimum: 1
items:
$ref: '#/components/schemas/IndividualObjectError'
Error:
description: An error composed of a message and a code
type: object
properties:
message:
description: Error message with descriptive information about
minLength: 1
type: string
code:
description: Internal error code
minLength: 1
type: string
Identification:
description: Identification information for the given object, composed of the name of the field and the value used to identify
type: object
properties:
name:
description: Name of the field to be used to identify the object
type: string
enum:
- device/device/name
- device/device/uid
- user/user/sid
- user/user/uid
- user/user/upn
- binary/binary/uid
- package/package/uid
value:
description: Value to be used to identify the object
type: string
required:
- name
- value
Enrichment:
description: Enrichment composed of the identification information of the desired object and the fields to be enriched (names and values)
type: object
properties:
identification:
description: List of fields to be used to identify the object
type: array
minimum: 1
maximum: 1
items:
$ref: '#/components/schemas/Identification'
fields:
description: List of fields to be enriched
type: array
minimum: 1
items:
$ref: '#/components/schemas/Field'
required:
- identification
- fields
SuccessResponse:
description: Response when ALL objects have been processed correctly
type: object
properties:
status:
description: Status of the request
type: string
enum:
- success
Field:
description: Enrichment information for the given object, composed of the name of field to be enriched and the desired value
type: object
properties:
name:
description: Name of the field to be enriched
type: string
enum:
- device/device/configuration_tag
- device/device/virtualization/desktop_broker
- device/device/virtualization/desktop_pool
- device/device/virtualization/disk_image
- device/device/virtualization/environment_name
- device/device/virtualization/hostname
- device/device/virtualization/hypervisor_name
- device/device/virtualization/instance_size
- device/device/virtualization/last_update
- device/device/virtualization/region
- device/device/virtualization/type
- device/device/#<custom_field_name>
- device/device/#<another_custom_field_name>
- user/user/ad/city
- user/user/ad/country_code
- user/user/ad/department
- user/user/ad/distinguished_name
- user/user/ad/email_address
- user/user/ad/full_name
- user/user/ad/job_title
- user/user/ad/last_update
- user/user/ad/office
- user/user/ad/organizational_unit
- user/user/ad/username
- user/user/#<custom_field_name>
- binary/binary/#<custom_field_name>
- package/package/#<custom_field_name>
- user/user/organization/#<custom_field_name>
value:
description: Desired value to be used while enriching
oneOf:
- type: string
- type: integer
- type: string
format: date
required:
- name
- value
EnrichmentRequest:
description: Objects to be enriched (with desired fields and values) and domain (configurable)
type: object
properties:
enrichments:
description: List of enrichments
type: array
minimum: 1
maximum: 10000
items:
$ref: '#/components/schemas/Enrichment'
domain:
description: Domain for which the given enrichment applies. For information and tracking purposes mainly
minLength: 1
type: string
required:
- enrichments
- domain
IndividualObjectError:
description: Error for an individual object, composed of identification information about the object and the list of errors
type: object
properties:
identification:
description: Field to be used to identify the object
type: array
minimum: 1
maximum: 1
items:
$ref: '#/components/schemas/Identification'
errors:
description: List of all the errors for the given object
type: array
minimum: 1
items:
$ref: '#/components/schemas/Error'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
BearerAuth:
type: http
scheme: bearer
bearerFormat: jwt
x-apievangelist-source: https://docs.nexthink.com/api/llms.txt
x-apievangelist-method: searched
x-apievangelist-generated: '2026-07-20'