The new docs.trellix.com features a modernized UI and AI-powered conversational search. Content is currently available in English, with additional languages launching in early November 2026. We hope you enjoy the updated experience.

Manual Device Software Import to Manager

Prev Next

This URL imports the device software file manually to Manager.

Resource URL

PUT /devicesoftware/import/manual

Content-type value

multipart/form-data; boundary=<x>

Request Parameters

Payload Request Parameters:

Field Name Description Data Type Mandatory
MultiPart Holds the body part objects Object Yes

Details of BodyPart[0]:

Field Name Description Data Type Mandatory
BodyPart[0] Holds the file format object Application/json object Yes

Details of file format:

Field Name Description Data Type Mandatory
fileName Name of the file String Yes
type File type should be "JAR" String Yes

Details of BodyPart[1]:

Field Name Description Data Type Mandatory
BodyPart1] Holds the file as input stream Application/octet-stream Yes

Details of .jar file:

Field Name Description Data Type Mandatory
File Device software input stream ByteArrayInput Stream Yes

Response Parameters

Following fields are returned if the request parameters are correct, otherwise error details are returned.

Field Name Description Data Type
status Status returned by updation Number

Example

Request

PUT https://%3CNSM_IP%3E/sdkapi/devicesoftware/import/manual

Payload:

NSM-SDK-API: QjUzNDQzMjNCNUQ2NkEzQjc4Mzc5REMxRjMxMDg0OTE6MQ==
Accept: application/vnd.nsm.v1.0+json
Content-Type: multipart/form-data; boundary=Boundary_1_17241377_1362484380857
MIME-Version: 1.0
User-Agent: Java/1.6.0_25
Host: localhost:8888
Connection: keep-alive
Content-Length: 15956464

--Boundary_1_17241377_1362484380857
Content-Type: application/json

{"fileName":"software_sdkapi","type":"JAR"}
--Boundary_1_17241377_1362484380857
Content-Type: application/octet-stream
ÒrÝ?ü0¥ÿ<ˆ}c,¢eXœ^:4 JhÍ2µ�rDYñÇÚd¶/¿í�F~        ÆIc§¼éá©ÿ_8Öø« C6Ô654îÞg‘J6?x‚*T2¡qhã4ÎÅVµ¬Gƒo9ŸCÒª„í¹Ì     —Áë&1¹ì,Ú‹yì^î‘Vö5U.kÝ$±Ñ g§zï0�wÌ [:…œ`Žíì’DŒ¾¸xŒ7è�L“t"á}ñÕùA‡B6W¦P!;Ð?j*;G¾=X¦Š1s(�ì_œ8•¯Ð"®ƒMîQ,®UÉÔ`7»©2xN£o†¾$h;ÕeÆÄŸ0ÀÑĦûNü,1”1Sõ±œ'n¨$èŒ`I¤@ã¥?$ˆhé_gÙÎ�4L[gàÏ©:•ŒÔ òH‰KÃïÃÒ"ÑÆ*¼²žØ|r-Þ„”¶K¥*¾¬�k}ddZ¡�ßÔ      ¥dK9¥Ð¾ýÎk“{Oj�- ¾€ýb3ÔÏ&«PƒTF                âê¡‚4Â{0ä!ÈÝ]ðä[”¿1•!;d³_
--Boundary_1_17241377_1362484380857-- 

Response

{
"status":1
} 
 

Error Information

Following error codes are returned by this URL:

S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 400 1001 internal error
2 400 3003 Device software supports only .jar file format