Authorization: Bearer ********************
{
"device_ids": [
"xyz-123"
],
"program_id": "70c1146b-e933-4cb2-a789-bbca5312b517",
"enroll_method": "AUTO_ENROLL",
"has_agreed_to_terms_and_conditions": true,
"terms_and_conditions_version": "2025-01-01",
"program_specific_attributes": [
{
"name": "account_id",
"value": "1234567-0"
}
]
}
curl --location --request POST 'https://mock.apidog.com/m1/479670-0-default/v1/site//enrollments' \
--header 'Content-Type: application/json' \
--data-raw '{
"device_ids": [
"xyz-123"
],
"program_id": "70c1146b-e933-4cb2-a789-bbca5312b517",
"enroll_method": "AUTO_ENROLL",
"has_agreed_to_terms_and_conditions": true,
"terms_and_conditions_version": "2025-01-01",
"program_specific_attributes": [
{
"name": "account_id",
"value": "1234567-0"
}
]
}'
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"device_ids": [
"xyz-123"
],
"site_id": "abc-123",
"program_id": "70c1146b-e933-4cb2-a789-bbca5312b517",
"enroll_method": "AUTO_ENROLL",
"status": "ACTIVE",
"status_reason": "Enrollment approved by utility",
"enrolled_at": "2019-08-24T14:15:22Z",
"unenrolled_at": "2019-08-24T14:15:22Z",
"program_specific_attributes": [
{
"name": "account_id",
"value": "123456-0"
}
],
"has_agreed_to_terms_and_conditions": true,
"terms_and_conditions_version": "2025-01-01"
}