Skip to main content

EnrollmentOperationsApi

MethodHTTP requestDescription
createEnrollmentsPOST /api/web/v1/enrollment/apiCreate enrollment records. Caller requires the ENROLLMENTS:ADD permission.
createEnrollmentsV2POST /api/web/v2/enrollments/{enrollmentDesignName}Create Enrollments
deleteEnrollmentsDELETE /api/web/v1/enrollment/apiDelete enrollment records. Caller requires the ENROLLMENTS:REMOVE permission.
deleteEnrollmentsV2DELETE /api/web/v2/enrollmentsDelete Enrollments
readEnrollmentV2GET /api/web/v2/enrollments/{id}Read Enrollment
readEnrollmentsPOST /api/web/v1/enrollment/api/readEnrollmentsRead enrollment records. Caller requires the ENROLLMENTS:VIEW permission.
readEnrollmentsDesignNamesGET /api/web/v2/enrollments/enrollmentDesignsRead Enrollment designs name
readEnrollmentsV2POST /api/web/v2/enrollments/read/{enrollmentDesignName}Read Enrollments
updateEnrollmentsPUT /api/web/v1/enrollment/apiUpdate enrollment records. Caller requires the ENROLLMENTS:EDIT permission.
updateEnrollmentsV2PUT /api/web/v2/enrollmentsUpdate Enrollments

createEnrollments

EnrollmentApiPayload createEnrollments(enrollmentApiPayload)

Create enrollment records. Caller requires the ENROLLMENTS:ADD permission.

Parameters

NameTypeDescriptionNotes
enrollmentApiPayloadEnrollmentApiPayload

Return type

EnrollmentApiPayload

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
202Accepted-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

createEnrollmentsV2

List<EnrollmentResponse> createEnrollmentsV2(enrollmentDesignName, enrollmentRequest)

Create Enrollments

Create one or more enrollments. Caller requires the ENROLLMENTS:ADD permission.

Example

Parameters

NameTypeDescriptionNotes
enrollmentDesignNameStringName of the enrollment design
enrollmentRequestList<EnrollmentRequest>

Return type

List<EnrollmentResponse>

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

deleteEnrollments

String deleteEnrollments(enrollmentApiPayload)

Delete enrollment records. Caller requires the ENROLLMENTS:REMOVE permission.

Example

Parameters

NameTypeDescriptionNotes
enrollmentApiPayloadEnrollmentApiPayload

Return type

String

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

deleteEnrollmentsV2

List<EnrollmentResponse> deleteEnrollmentsV2(enrollmentDelete)

Delete Enrollments

Delete one or more enrollments. Caller requires the ENROLLMENTS:DELETE permission.

Example

Parameters

NameTypeDescriptionNotes
enrollmentDeleteEnrollmentDelete

Return type

List<EnrollmentResponse>

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

readEnrollmentV2

EnrollmentResponse readEnrollmentV2(id)

Read Enrollment

Read an enrollment. Caller requires the ENROLLMENTS:VIEW permission.

Example

Parameters

NameTypeDescriptionNotes
idStringId of the enrollment (In Base64 string format)

Return type

EnrollmentResponse

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

readEnrollments

EnrollmentApiPayload readEnrollments(readEnrollmentApiPayload)

Read enrollment records. Caller requires the ENROLLMENTS:VIEW permission.

Example

Parameters

NameTypeDescriptionNotes
readEnrollmentApiPayloadReadEnrollmentApiPayload

Return type

EnrollmentApiPayload

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

readEnrollmentsDesignNames

List<EnrollmentDesignName> readEnrollmentsDesignNames()

Read Enrollment designs name

Read enrollment designs name. Caller requires the ENROLLMENTS:VIEW permission.

Example

Parameters

This endpoint does not need any parameter.

Return type

List<EnrollmentDesignName>

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

readEnrollmentsV2

List<EnrollmentResponse> readEnrollmentsV2(enrollmentDesignName, field, offset, limit)

Read Enrollments

Read one or more enrollments. Caller requires the ENROLLMENTS:VIEW permission.

Example

Parameters

NameTypeDescriptionNotes
enrollmentDesignNameStringName of the enrollment design
fieldList<Field>
offsetIntegerPage number offset, default value is 1[optional] [default to 1]
limitIntegerPage size limit, default value is 50[optional] [default to 50]

Return type

List<EnrollmentResponse>

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

updateEnrollments

String updateEnrollments(enrollmentApiPayload)

Update enrollment records. Caller requires the ENROLLMENTS:EDIT permission.

Example

Parameters

NameTypeDescriptionNotes
enrollmentApiPayloadEnrollmentApiPayload

Return type

String

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

updateEnrollmentsV2

List<EnrollmentResponse> updateEnrollmentsV2(enrollmentRequest)

Update Enrollments

Update one or more enrollments. Caller requires the ENROLLMENTS:EDIT permission.

Example

Parameters

NameTypeDescriptionNotes
enrollmentRequestList<EnrollmentRequest>

Return type

List<EnrollmentResponse>

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-