This URL imports the signature set file manually to the Manager.
Resource URL
PUT /signatureset/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 can be "JAR"\"IVU" | 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/.ivu file:
| Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| File | Signature set file 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/signatureset/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":"siganturesets_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 | 3002 | Signature set supports .ivu and .jar file formats |
| 3 | 400 | 3004 | Specified signature set version is not supported or EMS already has this update version |
| 4 | 400 | 3005 | Invalid signature set file |