Read Program
Cloud Mock
Cloud Mock
GET
/v1/site/{siteId}/program/{id}
programs
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
siteId
string
required
id
string <uuid>
Id
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://mock.apidog.com/m1/479670-0-default/v1/site//program/'
Responses
🟢200Successful Response
application/json
Body
id
string <uuid>
Id
name
string
Name
description
string
required
eligible_device_types
array[string]
Eligible Device Types
Allowed values:
BATTERYEV_CHARGER
can_auto_enroll
boolean
required
minimum_commitment_months
integer | null
required
participation_months
array[integer]
required
earnings_for_site_upfront
integer
required
earnings_for_site_yearly
integer
required
created_at
string <date-time>
Created At
updated_at
string <date-time>
Updated At
enrollment_form
array [object {3}]
required
name
string
required
label
string
required
type
enum<string>
required
Allowed values:
booleannumberstring
terms_and_conditions_version
string | null
required
terms_and_conditions_text
string | null
required
Example
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"description": "string",
"eligible_device_types": [
"BATTERY"
],
"can_auto_enroll": true,
"minimum_commitment_months": 0,
"participation_months": [
0
],
"earnings_for_site_upfront": 0,
"earnings_for_site_yearly": 0,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"enrollment_form": [
{
"name": "string",
"label": "string",
"type": "boolean"
}
],
"terms_and_conditions_version": "string",
"terms_and_conditions_text": "string"
}
🟠400Invalid input
🟠404Record not found
Modified at 2024-05-21 17:49:05