This service creates a service provider. The history is persisted
Resource Details
Description
Response format
JSON
Requires Authentication
Yes
Name
Required
Description
Default Value
Example
vendorName
yes
This is the name of the vendor
-NA
-NA-
address
yes
This is the address of the vendor
-NA
-NA-
email
yes
This is the email of the vendor
-NA
-NA-
contactNumber
yes
This is the contact number of the vendor
-NA
-NA-
certificateAlias
yes
This is the certificate alias of the vendor
-NA
-NA-
isActive
yes
This field represents whether this entity is active or not
-NA
-NA-
id
yes
This is the id of the vendor
-NA
-NA-
{
"id" : " string" ,
"metadata" : {},
"request" : {
"address" : " test" ,
"certificateAlias" : " added" ,
"contactNumber" : " 9000000000" ,
"email" : " [email protected] " ,
"id" : " 11123" ,
"isActive" : true ,
"vendorName" : " vendor1"
},
"requesttime" : " 2018-12-10T06:12:52.994Z" ,
"version" : " string"
}
{
"id" : null ,
"version" : null ,
"responsetime" : " 2019-11-19T07:00:13.333Z" ,
"metadata" : null ,
"response" : {
"id" : " 11123" ,
"vendorName" : " vendor1" ,
"address" : " test" ,
"email" : " [email protected] " ,
"contactNumber" : " 9663175928" ,
"certificateAlias" : " added" ,
"isActive" : true ,
"createdBy" : " 110005" ,
"createdDateTime" : " 2019-11-19T07:00:13.375Z" ,
"updatedBy" : null ,
"updatedDateTime" : null ,
"isDeleted" : null ,
"deletedDateTime" : null
},
"errors" : []
}
{
"id" : " io.mosip.masterdata.deviceprovider.create" ,
"version" : " 1.0" ,
"metadata" : {},
"responsetime" : " yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ,
"errors" : [{
"errorCode" : " string" ,
"message" : " string"
}],
"response" : null
}
Error Code
Error Message
Error Description
KER-ATH-401
Authentication Failed
If no role/invalid token is detected
ADM-DPM-010
Mandatory input parameter is missing
If any mandatory input parameter is missing
ADM-DPM-011
Device Provider already exist
If the Device provider details already exist
ADM-DPM-012
Error occurred while registering a Device Provider
If there an error from DB while storing details of Device Provider
This service updates a service provider. The history is persisted
Resource Details
Description
Response format
JSON
Requires Authentication
Yes
Name
Required
Description
Default Value
Example
vendorName
yes
This is the name of the vendor
-NA
-NA-
address
yes
This is the address of the vendor
-NA
-NA-
email
yes
This is the email of the vendor
-NA
-NA-
contactNumber
yes
This is the contact number of the vendor
-NA
-NA-
certificateAlias
yes
This is the certificate alias of the vendor
-NA
-NA-
isActive
yes
This field represents whether this entity is active or not
-NA
-NA-
id
yes
This is the id of the vendor
-NA
-NA-
{
"id" : " string" ,
"metadata" : {},
"request" : {
"address" : " test" ,
"certificateAlias" : " added" ,
"contactNumber" : " 9000000000" ,
"email" : " [email protected] " ,
"id" : " 11123" ,
"isActive" : true ,
"vendorName" : " vendor1"
},
"requesttime" : " 2018-12-10T06:12:52.994Z" ,
"version" : " string"
}
{
"id" : null ,
"version" : null ,
"responsetime" : " 2019-11-19T07:00:13.333Z" ,
"metadata" : null ,
"response" : {
"id" : " 11123" ,
"vendorName" : " vendor1" ,
"address" : " test" ,
"email" : " [email protected] " ,
"contactNumber" : " 9663175928" ,
"certificateAlias" : " added" ,
"isActive" : true ,
"createdBy" : " 110005" ,
"createdDateTime" : " 2019-11-19T07:00:13.375Z" ,
"updatedBy" : " 110005" ,
"updatedDateTime" : " 2019-11-19T07:00:13.375Z" ,
"isDeleted" : null ,
"deletedDateTime" : null
},
"errors" : []
}
{
"id" : " io.mosip.masterdata.deviceprovider.create" ,
"version" : " 1.0" ,
"metadata" : {},
"responsetime" : " yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ,
"errors" : [{
"errorCode" : " string" ,
"message" : " string"
}],
"response" : null
}
200
{
"id" : " io.mosip.masterdata.deviceprovider.update" ,
"version" : " 1.0" ,
"metadata" : {},
"responsetime" : " yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ,
"errors" : [{
"errorCode" : " string" ,
"message" : " string"
}],
"response" : null
}
200
Error Code
Error Message
Error Description
KER-ATH-401
Authentication Failed
If no role/invalid token is detected
ADM-DPM-013
Mandatory input parameter is missing
If any mandatory input parameter is missing
ADM-DPM-014
Error occurred while registering a Device Provider
If there an error from DB while storing details of Device Provider
Foundational Trust Providers
POST /foundationaltrustprovider
This service creates a service provider.
POST /foundationaltrustprovider
Resource Details
Description
Response format
JSON
Requires Authentication
Yes
Name
Required
Description
Default Value
Example
vendor_name
yes
This is the name of the vendor
-NA
-NA-
address
yes
This is the address of the vendor
-NA
-NA-
email
yes
This is the email of the vendor
-NA
-NA-
contactNo
yes
This is the contact number of the vendor
-NA
-NA-
active
yes
This field represents whether this entity is active or not
-NA
-NA-
{
"id" : " string" ,
"metadata" : {},
"request" : {
"active" : true ,
"id" : " 12345" ,
"name" : " Foundational1" ,
"address" : " test address" ,
"email" : " [email protected] " ,
"contactNo" : " 9876543210" ,
"certAlias" : " test" ,
"isActive" : true
},
"requesttime" : " 2018-12-10T06:12:52.994Z" ,
"version" : " string"
}
{
"id" : " string" ,
"version" : " string" ,
"responsetime" : " 2019-12-03T04:52:07.133Z" ,
"metadata" : null ,
"response" : {
"id" : " 12345" ,
"name" : " Foundational1" ,
"address" : " test address" ,
"email" : " [email protected] " ,
"contactNo" : " 9876543210" ,
"certAlias" : " test" ,
"isActive" : true ,
"createdBy" : " 110006" ,
"createdDateTime" : " 2019-12-03T04:52:07.133Z" ,
"updatedBy" : null ,
"updatedDateTime" : null ,
"isDeleted" : null ,
"deletedDateTime" : null
},
"errors" : null
}
200
{
"id" : " io.mosip.masterdata.foundationaltrustprovider.create" ,
"version" : " 1.0" ,
"metadata" : {},
"responsetime" : " yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ,
"errors" : [{
"errorCode" : " string" ,
"message" : " string"
}],
"response" : null
}
200
Error Code
Error Message
Error Description
KER-ATH-401
Authentication Failed
If no role/invalid token is detected
ADM-DPM-015
Mandatory input parameter is missing
If any mandatory input parameter is missing
ADM-DPM-016
Foundational Trust Provider already exist
If the Foundational Trust provider details already exist
ADM-DPM-017
Error occurred while registering a Foundational Trust Provider
If there an error from DB while storing details of Foundational Trust Provider
PUT /foundationaltrustprovider
This service updates a service provider.
PUT /foundationaltrustprovider
Resource Details
Description
Response format
JSON
Requires Authentication
Yes
Name
Required
Description
Default Value
Example
vendor_name
yes
This is the name of the vendor
-NA
-NA-
address
yes
This is the address of the vendor
-NA
-NA-
email
yes
This is the email of the vendor
-NA
-NA-
contact_number
yes
This is the contact number of the vendor
-NA
-NA-
is_active
yes
This field represents whether this entity is active or not
-NA
-NA-
{
"id" : " string" ,
"metadata" : {},
"request" : {
"active" : true ,
"id" : " 12345" ,
"name" : " Foundational2" ,
"address" : " test address" ,
"email" : " [email protected] " ,
"contactNo" : " 9876543210" ,
"certAlias" : " test" ,
"isActive" : true
},
"requesttime" : " 2018-12-10T06:12:52.994Z" ,
"version" : " string"
}
{
"id" : " string" ,
"version" : " string" ,
"responsetime" : " 2019-12-03T04:58:34.491Z" ,
"metadata" : null ,
"response" : {
"id" : " 12345" ,
"name" : " Foundational2" ,
"address" : " test address" ,
"email" : " [email protected] " ,
"contactNo" : " 9876543210" ,
"certAlias" : " test" ,
"isActive" : true ,
"createdBy" : " 110006" ,
"createdDateTime" : " 2019-12-03T04:58:34.491Z" ,
"updatedBy" : " 110006" ,
"updatedDateTime" : " 2019-12-03T04:58:34.488Z" ,
"isDeleted" : null ,
"deletedDateTime" : null
},
"errors" : null
}
200
{
"id" : " io.mosip.masterdata.foundationaltrustprovider.update" ,
"version" : " 1.0" ,
"metadata" : {},
"responsetime" : " yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ,
"errors" : [{
"errorCode" : " string" ,
"message" : " string"
}],
"response" : null
}
200
Error Code
Error Message
Error Description
KER-ATH-401
Authentication Failed
If no role/invalid token is detected
ADM-DPM-018
Mandatory input parameter is missing
If any mandatory input parameter is missing
ADM-DPM-019
Error occurred while registering a Foundational Trust Provider
If there an error from DB while storing details of Foundational Trust Provider
This service creates a device in the platform. The history is persisted
Resource Details
Description
Response format
JSON
Requires Authentication
Yes
Name
Required
Description
Default Value
Example
deviceId
yes
This is the id of the device
-NA
-NA-
deviceProviderSignature
yes
This is the signature about the device provider
-NA
-NA-
certificationLevel
yes
This is the certification level of the device
-NA
-NA-
deviceSTypeCode
yes
This is the device subtype of the device
-NA
-NA-
deviceSubId
yes
This is the device subId of the device
-NA
-NA-
deviceTypeCode
yes
This is the device type of the device
-NA
-NA-
deviceSubId
yes
This is the sub type id of the device
-NA
-NA-
firmware
yes
This is the firmware of the device
-NA
-NA-
timestamp
yes
This is the timestamp of the record
-NA
-NA-
foundationTrustCertificate
no
This is the foundational trust provider's certificate
-NA
-NA-
foundationalTPId
no
This is the id of the foundational trust provider
-NA
-NA-
foundationalTrustSignature
no
This is the signature of the foundational trust provider
-NA
-NA-
statusCode
yes
This is the statuscode of the device
-NA
-NA-
expiryDate
no
This is the expiry date of the device
-NA
-NA-
DigitalIdDTO Object
Name
Required
Description
Default Value
Example
dp
yes
This is the name of the device provider
-NA
-NA-
dpId
yes
This is the id of the device provider
-NA
-NA-
type
yes
This is the type of the device
-NA
-NA-
serialNo
yes
This is the serial number of the device
-NA
-NA-
make
yes
This is the make of the device
-NA
-NA-
model
yes
This is the model of the device
-NA
-NA-
dateTime
yes
This is the dateTime of the device
-NA
-NA-
{
"id" : " string" ,
"metadata" : {},
"request" : {
"certificationLevel" : " L0" ,
"deviceId" : " 1111" ,
"deviceProviderSignature" : " test" ,
"deviceSTypeCode" : " Slab" ,
"deviceSubId" : " 1" ,
"deviceTypeCode" : " Finger" ,
"digitalIdDto" : {
"dateTime" : " string" ,
"dp" : " vendor1" ,
"dpId" : " 11123" ,
"make" : " make1" ,
"model" : " model1" ,
"serialNo" : " 11122333" ,
"type" : " Finger"
},
"expiryDate" : " 2018-12-10T06:12:52.994Z" ,
"firmware" : " " ,
"foundationalTPId" : " string" ,
"foundationalTrustCertificate" : " string" ,
"foundationalTrustSignature" : " string" ,
"purpose" : " AUTH" ,
"statusCode" : " REGISTERED"
},
"requesttime" : " 2018-12-10T06:12:52.994Z" ,
"version" : " string"
}
{
"id" : " string" ,
"version" : " string" ,
"responsetime" : " 2019-11-19T07:41:44.407Z" ,
"metadata" : null ,
"response" : {
"code" : " d4387feb-2f90-4519-a303-1993824a68a0" ,
"deviceTypeCode" : " Finger" ,
"devicesTypeCode" : " Slab" ,
"statusCode" : " REGISTERED" ,
"deviceId" : " 1111" ,
"deviceSubId" : " 1" ,
"purpose" : " AUTH" ,
"firmware" : " added" ,
"expiryDate" : " 2018-12-10T06:12:52.994Z" ,
"certificationLevel" : " L0" ,
"foundationalTPId" : " string" ,
"foundationalTrustSignature" : " string" ,
"foundationalTrustCertificate" : " test" ,
"deviceProviderSignature" : " test" ,
"digitalIdDto" : {
"serialNo" : " 11122333" ,
"dp" : " vendor1" ,
"dpId" : " 11123" ,
"make" : " make1" ,
"model" : " model1" ,
"type" : " Finger" ,
"dateTime" : " string"
},
"isActive" : true ,
"createdBy" : " 110005" ,
"createdDateTime" : " 2019-11-19T07:41:44.557Z" ,
"updatedBy" : null ,
"updatedDateTime" : null ,
"isDeleted" : null ,
"deletedDateTime" : null
},
"errors" : null
}
200
{
"id" : " io.mosip.masterdata.device.l0.create" ,
"version" : " 1.0" ,
"metadata" : {},
"responsetime" : " yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ,
"errors" : [{
"errorCode" : " string" ,
"message" : " string"
}],
"response" : null
}
200
Error Code
Error Message
Error Description
KER-ATH-401
Authentication Failed
If no role/invalid token is detected
ADM-DPM-025
Mandatory input parameter is missing
If any mandatory input parameter is missing
ADM-DPM-026
Device Type does not exist
If Device Type received does not exist
ADM-DPM-027
Device Sub-Type does not exist
If Device Sub-Type received does not exist
ADM-DPM-028
Invalid Status received
If in Status, standard values are not received
ADM-DPM-029
For Device ID, Json value expected for a L0 Device
If in Device, a singed Json is not received if certification level is L0
ADM-DPM-030
Make/Model inside the Json does not match with the input
If Make/Model inside the digital ID does not match with details received in input
ADM-DPM-031
Device Provider details inside the Json does not match with the input
If Device Provider ID/Device Provider name inside the digital ID does not match with details received in input
ADM-DPM-032
Device Provider ID/Name does not exist in the list of Registered Device Providers
If Device Provider ID/Name does not exist against the Device Provider Details
ADM-DPM-034
Invalid Purpose received
If in purpose, standard values are not received
ADM-DPM-036
Error occurred while storing MDS Details
If there an error from DB while registering the Device
This service deregisters a device in the platform. The history is persisted
DELETE /registereddevices/deregister/{deviceCode}
Resource Details
Description
Response format
JSON
Requires Authentication
Yes
Name
Required
Description
Default Value
Example
deviceCode
yes
This is the code of the device
-NA
-NA-
{
"id" : " io.mosip.masterdata.device.l0.delete" ,
"version" : " 1.0" ,
"metadata" : {},
"responsetime" : " yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ,
"errors" : null ,
"response" : {
"status" : " success" ,
"message" : " Device de-register successfully"
}
}
200
{
"id" : " io.mosip.masterdata.device.l0.create" ,
"version" : " 1.0" ,
"metadata" : {},
"responsetime" : " yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ,
"errors" : [{
"errorCode" : " string" ,
"message" : " string"
}],
"response" : null
}
200
PUT /registereddevices/status
This service updates status of the device. The history is persisted
PUT /registereddevices/status?devicecode='10001'&status='REVOKED'
Resource Details
Description
Response format
JSON
Requires Authentication
Yes
Name
Required
Description
Default Value
Example
deviceCode
yes
This is the code of the device
-NA
-NA-
status
yes
This is the code of the device
-NA
-NA-
{
"id" : " io.mosip.masterdata.device.l0.delete" ,
"version" : " 1.0" ,
"metadata" : {},
"responsetime" : " yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ,
"errors" : null ,
"response" : {
"status" : " success" ,
"message" : " Device de-register successfully"
}
}
200
{
"id" : " io.mosip.masterdata.device.l0.update" ,
"version" : " 1.0" ,
"metadata" : {},
"responsetime" : " yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ,
"errors" : [{
"errorCode" : " string" ,
"message" : " string"
}],
"response" : null
}
200
Error Code
Error Message
Error Description
KER-ATH-401
Authentication Failed
If no role/invalid token is detected
ADM-DPM-036
Mandatory input parameter is missing
If any mandatory input parameter is missing
ADM-DPM-037
Invalid Status received
If in Status, standard values are not received
ADM-DPM-038
Error occurred while updating Device Status
If there an error from DB while updating Device Status
POST /deviceprovidermanagement/validate
This service will validate the device details from the list of registered devices.
POST /deviceprovidermanagement/validate
Resource Details
Description
Response format
JSON
Requires Authentication
Yes
Name
Required
Description
Default Value
Example
deviceCode
Yes
code of the device
digitalId
Yes
JSON object consists of device details
deviceServiceVersion
Yes
DeviceServiceVersion of the mds
https://mosip.io/masterdata/deviceprovidermanagement/validate
{
"id":"string",
"metadata":null,
"request":{
"deviceCode":"string",
"deviceServiceVersion":"string",
"digitalId":{
"serialNo": "string",
"make": "string",
"model" : "string",
"type": "string",
"dp": "string",
"dpId": "string",
"dateTime": "string"
}
},
"version":"1.0",
"requesttime":"2019-08-21T16:34:22.890Z"
}
200 Ok
{
"id" : " string" ,
"version" : " string" ,
"metadata" : {},
"responsetime" : " 2018-12-10T06:12:52.994Z" ,
"errors" : null ,
"response" : [
{
"status" : " success" ,
"message" : " Device details validated successfully"
}
],
}
{
"id" : " string" ,
"version" : " string" ,
"metadata" : {},
"responsetime" : " yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ,
"errors" : [
{
"errorCode" : " string" ,
"message" : " string"
}
],
"response" : null
}
Error Code
Error Message
Error Description
KER-MSD-500
Internal Server Error
If system error occurs
KER-ATH-403
Forbidden
If unauthorized role detected
KER-ATH-401
Authentication Failed
If no role/invalid token is detected
ADM-DPM-001
Device does not exist
If the Device does not exist
ADM-DPM-002
Device is Revoked/Retired
If the Device exist and is in Revoked/Retired
ADM-DPM-003
Device Provider does not exist
If the Device Provider does not exist
ADM-DPM-004
Device Provider is marked Inactive
If the Device Provider exist and is in Inactive State
ADM-DPM-005
MDS does not exist
If the MDS does not exist
ADM-DPM-006
MDS is marked Inactive
If the MDS exist and is in Inactive State
ADM-DPM-007
Software version does not match against the Service ID
If the Software version does not match the Service ID received
ADM-DPM-008
Device Provider ID does not match against the Service ID
If the Device provider ID does not match the Service ID received
ADM-DPM-009
Error occurred while checking a Device Details
If there an error from DB while checking device details
POST /deviceprovidermanagement/validate/history
This service will validate the device history details from the list of registered devices.
POST/deviceprovidermanagement/validate/history
Resource Details
Description
Response format
JSON
Requires Authentication
Yes
Name
Required
Description
Default Value
Example
deviceCode
Yes
code of the device
digitalId
Yes
JSON object of the device details
deviceServiceVersion
Yes
DeviceServiceVersion of the mds
timeStamp
Yes
Timestamp in LocalDataTimeformat of history table
https://mosip.io/masterdata/deviceprovidermanagement/validate/history
{
"id":"string",
"metadata":null,
"request":{
"deviceCode":"10001",
"deviceServiceVersion":"0.1v",
"timestamp":"2019-09-09T09:09:09.000Z"
"digitalId":{
"serialNo": "string",
"make": "string",
"model" : "string",
"type": "string",
"dp": "string",
"dpId": "string",
"dateTime": "string"
}
},
"version":"1.0",
"requesttime":"2019-08-21T16:34:22.890Z"
}
200 Ok
{
"id" : " string" ,
"version" : " string" ,
"metadata" : {},
"responsetime" : " 2018-12-10T06:12:52.994Z" ,
"errors" : null ,
"response" : [
{
"status" : " Valid" ,
"message" : " Device details history validated successfully"
}
],
}
{
"id" : " string" ,
"version" : " string" ,
"metadata" : {},
"responsetime" : " yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ,
"errors" : [
{
"errorCode" : " string" ,
"message" : " string"
}
],
"response" : null
}
Error Code
Error Message
Error Description
KER-MSD-500
Internal Server Error
If system error occurs
KER-ATH-403
Forbidden
If unauthorized role detected
KER-ATH-401
Authentication Failed
If no role/invalid token is detected
ADM-DPM-001
Device does not exist
If the Device does not exist
ADM-DPM-002
Device is Revoked/Retired
If the Device exist and is in Revoked/Retired
ADM-DPM-003
Device Provider does not exist
If the Device Provider does not exist
ADM-DPM-004
Device Provider is marked Inactive
If the Device Provider exist and is in Inactive State
ADM-DPM-005
MDS does not exist
If the MDS does not exist
ADM-DPM-006
MDS is marked Inactive
If the MDS exist and is in Inactive State
ADM-DPM-007
Software version does not match against the Service ID
If the Software version does not match the Service ID received
ADM-DPM-008
Device Provider ID does not match against the Service ID
If the Device provider ID does not match the Service ID received
ADM-DPM-009
Error occurred while checking a Device Details
If there an error from DB while checking device details
Master data is required across the platform.
This service will create the MDS which are used in the MOSIP platform.
Resource Details
Description
Response format
JSON
Requires Authentication
Yes
Name
Required
Description
Default Value
Example
id
Yes
id of the mds
deviceProviderId
Yes
Deviceproviderid of the mds
regDeviceSubCode
Yes
Devicetypecode of the mds
regDeviceTypeCode
Yes
Devicesubtypecode of the mds
swversion
Yes
software version of the mds
swBinaryHash
Yes
binary hash of the mds
make
Yes
make of the mds
model
Yes
model of the mds
swCreateDateTime
Yes
Created date time of MDS
swExpiryDateTime
Yes
Expiry date time of MDS
{
"id" : " string" ,
"metadata" : {},
"request" : {
"isActive" : true ,
"deviceProviderId" : " 11123" ,
"id" : " 77777" ,
"make" : " make1" ,
"model" : " model1" ,
"regDeviceSubCode" : " Slab" ,
"regDeviceTypeCode" : " Finger" ,
"swBinaryHash" : " test" ,
"swCreateDateTime" : " 2019-11-19T07:00:13.375Z" ,
"swExpiryDateTime" : " 2019-11-30T07:00:13.375Z" ,
"swVersion" : " v1"
},
"requesttime" : " 2018-12-10T06:12:52.994Z" ,
"version" : " string"
}
200 Ok
{
"id" : " string" ,
"version" : " string" ,
"responsetime" : " 2019-11-19T07:07:55.709Z" ,
"metadata" : null ,
"response" : {
"isActive" : true ,
"createdBy" : " 110005" ,
"createdDateTime" : " 2019-11-19T07:07:55.731Z" ,
"updatedBy" : null ,
"updatedDateTime" : null ,
"isDeleted" : null ,
"deletedDateTime" : null ,
"id" : " 77777" ,
"swVersion" : " v1" ,
"deviceProviderId" : " 11123" ,
"regDeviceTypeCode" : " Finger" ,
"regDeviceSubCode" : " Slab" ,
"make" : " make1" ,
"model" : " model1" ,
"swCreateDateTime" : " 2019-11-19T07:00:13.375Z" ,
"swExpiryDateTime" : " 2019-11-30T07:00:13.375Z" ,
"swBinaryHash" : " test"
},
"errors" : null
}
{
"id" : " string" ,
"version" : " string" ,
"metadata" : {},
"responsetime" : " yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ,
"errors" : [
{
"errorCode" : " string" ,
"message" : " string"
}
],
"response" : null
}
Error Code
Error Message
Error Description
KER-ATH-401
Authentication Failed
If no role/invalid token is detected
ADM-DPM-020
Mandatory input parameter is missing
If any mandatory input parameter is missing
ADM-DPM-021
MDS Details already exist
If the MDS Details already exist
ADM-DPM-039
Device Provider ID not found in the list of Device Providers
Device Provider ID received does not exist in the Device Provider Table
ADM-DPM-040
Device Type Code not found in the list of Device Types
Device Type Code received does not exist in the Device Type Table
ADM-DPM-041
Device Sub Type Code not found in the list of Device Sub Types
Device Sub Type Code received does not exist in the Device Sub Type Table
Master data is required across the platform.
This service will update the MDS which are used in the MOSIP platform.
Resource Details
Description
Response format
JSON
Requires Authentication
Yes
Name
Required
Description
Default Value
Example
id
Yes
id of the mds
deviceProviderId
Yes
Deviceproviderid of the mds
regDeviceSubCode
Yes
Devicetypecode of the mds
regDeviceTypeCode
Yes
Devicesubtypecode of the mds
swversion
Yes
software version of the mds
swBinaryHash
Yes
binary hash of the mds
make
Yes
make of the mds
model
Yes
model of the mds
swCreateDateTime
Yes
Created date time of MDS
swExpiryDateTime
Yes
Expiry date time of MDS
{
"id" : " string" ,
"metadata" : {},
"request" : {
"active" : true ,
"deviceProviderId" : " 11123" ,
"id" : " 77777" ,
"make" : " make1" ,
"model" : " model1" ,
"regDeviceSubCode" : " Slab" ,
"regDeviceTypeCode" : " Finger" ,
"swBinaryHash" : " test" ,
"swCreateDateTime" : " 2019-11-19T07:00:13.375Z" ,
"swExpiryDateTime" : " 2019-11-30T07:00:13.375Z" ,
"swVersion" : " v2"
},
"requesttime" : " 2018-12-10T06:12:52.994Z" ,
"version" : " string"
}
200 Ok
{
"id" : " string" ,
"version" : " string" ,
"responsetime" : " 2019-11-19T07:07:55.709Z" ,
"metadata" : null ,
"response" : {
"isActive" : true ,
"createdBy" : " 110005" ,
"createdDateTime" : " 2019-11-19T07:07:55.731Z" ,
"updatedBy" : " 110005" ,
"updatedDateTime" : " 2019-11-19T07:07:55.731Z" ,
"updatedBy" : null ,
"updatedDateTime" : null ,
"isDeleted" : null ,
"deletedDateTime" : null ,
"id" : " 77777" ,
"swVersion" : " v2" ,
"deviceProviderId" : " 11123" ,
"regDeviceTypeCode" : " Finger" ,
"regDeviceSubCode" : " Slab" ,
"make" : " make1" ,
"model" : " model1" ,
"swCreateDateTime" : " 2019-11-19T07:00:13.375Z" ,
"swExpiryDateTime" : " 2019-11-30T07:00:13.375Z" ,
"swBinaryHash" : " test"
},
"errors" : null
}
{
"id" : " string" ,
"version" : " string" ,
"metadata" : {},
"responsetime" : " yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ,
"errors" : [
{
"errorCode" : " string" ,
"message" : " string"
}
],
"response" : null
}
Error Code
Error Message
Error Description
KER-ATH-401
Authentication Failed
If no role/invalid token is detected
ADM-DPM-020
Mandatory input parameter is missing
If any mandatory input parameter is missing
ADM-DPM-021
MDS Details already exist
If the MDS Details already exist
ADM-DPM-039
Device Provider ID not found in the list of Device Providers
Device Provider ID received does not exist in the Device Provider Table
ADM-DPM-040
Device Type Code not found in the list of Device Types
Device Type Code received does not exist in the Device Type Table
ADM-DPM-041
Device Sub Type Code not found in the list of Device Sub Types
Device Sub Type Code received does not exist in the Device Sub Type Table