Program Enrollments (POST)

Enroll participants in a program.

Resource 

1/connect/program-mgmt/programs/${programId}/enrollments

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/connect​​/program-mgmt/programs/11Wxx0000004F3kEAE/enrollments

Available Version 

57.0

HTTP Methods 

POST

Request Body for POST 

<ProgramEnrollmentsInputRepresentation>

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
enrolleesProgram Enrollment Input[]The list of program enrollments that need to be added or updated.
For POST, the enrollments you want to add can either be a contact or an account.
For PUT, specify the program enrollments that need to be updated.
Required57.0

JSON Example 

1{
2  "enrollees": {
3    "enrolleeList": [
4      {
5        "id": "003xx000004WhxNAAS"
6      }
7    ]
8  }
9}

Response Body for POST 

Program Enrollments Output