Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Program Enrollments (POST)
- Resource
-
1/connect/program-mgmt/programs/${programId}/enrollments - Example URI for POST
-
1https://yourInstance.salesforce.com/services/data/v67.0/connect/program-mgmt/programs/11Wxx0000004F3kEAE/enrollments - Available version
- 57.0
- HTTP methods
- POST
- Request body for POST
-
- Root XML tag
- <ProgramEnrollmentsInputRepresentation>
- Properties
-
Name Type Description Required or Optional Available Version enrollees Program 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.
Required 57.0
-
- JSON example
-
1{ 2 "enrollees": { 3 "enrolleeList": [ 4 { 5 "id": "003xx000004WhxNAAS" 6 } 7 ] 8 } 9}
- Response body for POST
- Program Enrollments Output