Create DND Exception
post
/ec-ors-svc/rest/v1.0/studies/{studyId}/{mode}/DND Exception
Creates a DND Exception. Rights Needed : DispensatonExceptionPost.
Request
Path Parameters
-
mode(required): string
Mode of the study, accepts: test, active, or training
-
studyId(required): string(uuid)
ID of the study
Supported Media Types
- application/json
Root Schema : DND ExceptionRequest
Type:
objectTitle:
DND ExceptionRequestRequest to create a new DND Exception
Show Source
-
allCountries(required): boolean
Set to True to enable DND Exception to All countries in the studyExample:
true -
countries: array
countries
Contains ISO codes of countries .
-
kitTypeSrcId(required): array
kitTypeSrcId
Minimum Number of Items:
1Maximum Number of Items:2147483647Unique Items Required:trueList of kitTypeSrcIdS -
siteIds: array
siteIds
Unique Items Required:
trueList of siteids -
visitDND(required): array
visitDND
Minimum Number of Items:
1Maximum Number of Items:2147483647Unique Items Required:true
Nested Schema : countries
Type:
arrayContains ISO codes of countries .
Show Source
-
Array of:
string(String)
Example:
US
Nested Schema : kitTypeSrcId
Type:
arrayMinimum Number of Items:
1Maximum Number of Items:
2147483647Unique Items Required:
trueList of kitTypeSrcIdS
Show Source
-
Array of:
string(uuid)
List of kitTypeSrcIdS
Example:
[
"6AF54DB79B764662B685D68C52AB0B84",
"6AF54DB79B764662B685D68C52AB0B84"
]Nested Schema : siteIds
Type:
arrayUnique Items Required:
trueList of siteids
Show Source
-
Array of:
string(uuid)
List of siteids
Example:
[
"6AF54DB79B764662B685D68C52AB0B84",
"6AF54DB79B764662B685D68C52AB0B84"
]Nested Schema : visitDND
Type:
arrayMinimum Number of Items:
1Maximum Number of Items:
2147483647Unique Items Required:
Show Source
true-
Array of:
object VisitDND
Title:
VisitDNDRequest to create a new VisitDND
Nested Schema : VisitDND
Type:
objectTitle:
VisitDNDRequest to create a new VisitDND
Show Source
-
dnd(required): number
(BigDecimal)
Minimum Value:
0Minimum Value:> falseMaximum Value:99999Maximum Value:< falsedndExample:2 -
visitSrcId(required): string
(uuid)
visitSrcId of the visit
Response
Supported Media Types
- application/json
200 Response
Successful operation
400 Response
Dispensation Logic (Dynamic DND) Request is not valid
Root Schema : ORSResponse
Type:
objectCommon response object.
Show Source
-
errorData: object
ErrorResponseData
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
-
result: object
result
Result Object
-
status: string
Status of requestExample:
Success -
version: integer
(int32)
Nested Schema : ErrorResponseData
Type:
objectStructure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
-
details: string
Detailed error context or debugging information such as validation error, stack trace, or field/parameter cause.Example:
User role is missing required permission REPORTING_VIEW. Field: userId -
errorCode: string
Application or business-specific error code representing the error type.Example:
REPT_401 -
errorMessage: string
Human-readable error message describing the failure or issue.Example:
Unauthorized: User does not have access to the requested resource
Nested Schema : result
Type:
objectResult Object
404 Response
For Invalid study ID or version
Root Schema : ORSResponse
Type:
objectCommon response object.
Show Source
-
errorData: object
ErrorResponseData
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
-
result: object
result
Result Object
-
status: string
Status of requestExample:
Success -
version: integer
(int32)
Nested Schema : ErrorResponseData
Type:
objectStructure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
-
details: string
Detailed error context or debugging information such as validation error, stack trace, or field/parameter cause.Example:
User role is missing required permission REPORTING_VIEW. Field: userId -
errorCode: string
Application or business-specific error code representing the error type.Example:
REPT_401 -
errorMessage: string
Human-readable error message describing the failure or issue.Example:
Unauthorized: User does not have access to the requested resource
Nested Schema : result
Type:
objectResult Object
500 Response
Internal server error
Root Schema : ORSResponse
Type:
objectCommon response object.
Show Source
-
errorData: object
ErrorResponseData
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
-
result: object
result
Result Object
-
status: string
Status of requestExample:
Success -
version: integer
(int32)
Nested Schema : ErrorResponseData
Type:
objectStructure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
-
details: string
Detailed error context or debugging information such as validation error, stack trace, or field/parameter cause.Example:
User role is missing required permission REPORTING_VIEW. Field: userId -
errorCode: string
Application or business-specific error code representing the error type.Example:
REPT_401 -
errorMessage: string
Human-readable error message describing the failure or issue.Example:
Unauthorized: User does not have access to the requested resource
Nested Schema : result
Type:
objectResult Object