Assign Users to Programs with REST API

Create a REST API POST request that uses the assignEnablementPrograms invocable action for assigning Enablement programs

User Permissions Needed
To assign or unassign programs:Design and Deliver Enablement Programs OR Design and Deliver Enablement Lite Programs
  1. In a REST API POST request, use the assignEnablementProgram invocable action.
1/services/data/v58.0/actions/standard/assignEnablementProgram
  1. In the request, include the assigneeId, programId, notificationUserId, and startDate parameters.
1{
2  "inputs": [
3    {
4      "assigneeId": "005xx12345",
5      "programId": "0Qoxx123456",
6      "notificationUserId": "005xx67890",
7      "startDate": "2023-03-24"
8    },
9    {
10      "assigneeId": "005xx12346",
11      "programId": "0Qoxx123456",
12      "notificationUserId": "005xx67890",
13      "startDate": "2023-03-24"
14    },
15    {
16      "assigneeId": "005xx12347",
17      "programId": "0Qoxx123456",
18      "notificationUserId": "005xx67890",
19      "startDate": "2023-03-24"
20    }
21  ]
22}

The assignEnablementProgram invocable action counts against your org’s Bulk API 2.0 limits. To help accommodate these limits, this example shows a bulkified request.

See Also