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 enrollmentApiPayload)

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

Using the CreateEnrollmentsWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

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 (string enrollmentDesignName, List<EnrollmentRequest> enrollmentRequest)

Create Enrollments

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

Example

Using the CreateEnrollmentsV2WithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

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 enrollmentApiPayload)

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

Example

Using the DeleteEnrollmentsWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

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 enrollmentDelete)

Delete Enrollments

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

Example

Using the DeleteEnrollmentsV2WithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

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 (string id)

Read Enrollment

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

Example

Using the ReadEnrollmentV2WithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

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 readEnrollmentApiPayload)

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

Example

Using the ReadEnrollmentsWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

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

Using the ReadEnrollmentsDesignNamesWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

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 (string enrollmentDesignName, List<Field> field, int? offset = null, int? limit = null)

Read Enrollments

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

Example

Using the ReadEnrollmentsV2WithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
enrollmentDesignNamestringName of the enrollment design
fieldList<Field>
offsetint?Page number offset, default value is 1[optional] [default to 1]
limitint?Page 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 enrollmentApiPayload)

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

Example

Using the UpdateEnrollmentsWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

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 (List<EnrollmentRequest> enrollmentRequest)

Update Enrollments

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

Example

Using the UpdateEnrollmentsV2WithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

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-