Skip to main content

Energy Coordination API - Partner Endpoints (v1)

Download OpenAPI specification:Download

Events

/events

Authorizations:
Bearer

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/events/{eventId}

Authorizations:
Bearer
path Parameters
eventId
required
string

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "priority": 0,
  • "programId": "string",
  • "reportDescriptors": [
    ],
  • "targetResources": [
    ],
  • "intervalPeriod": {
    },
  • "payload": {
    },
  • "id": "string",
  • "createdDateTime": "2019-08-24T14:15:22Z",
  • "modificationDateTime": "2019-08-24T14:15:22Z"
}

Reports

/reports

Authorizations:
Bearer
Request Body schema: application/json
eventId
string or null
name
string or null
Array of VehicleChargeActionPayload (object) or null

Responses

Request samples

Content type
application/json
{
  • "eventId": "string",
  • "name": "string",
  • "payloads": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "eventId": "string",
  • "programId": "string",
  • "name": "string",
  • "createdDateTime": "2019-08-24T14:15:22Z",
  • "modificationDateTime": "2019-08-24T14:15:22Z"
}

Resources

/resources

Authorizations:
Bearer

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/resources

Authorizations:
Bearer
Request Body schema: application/json
userId
string or null
resourceId
string or null
VehicleResourceMetadata (object)

Responses

Request samples

Content type
application/json
{
  • "userId": "string",
  • "resourceId": "string",
  • "metadata": {
    }
}

Response samples

Content type
application/json
{
  • "userId": "string",
  • "resourceId": "string",
  • "metadata": {
    },
  • "id": "string"
}

/resources

Authorizations:
Bearer
query Parameters
resourceId
required
string
Request Body schema: application/json
userId
string or null
resourceId
string or null
VehicleResourceMetadata (object)

Responses

Request samples

Content type
application/json
{
  • "userId": "string",
  • "resourceId": "string",
  • "metadata": {
    }
}

Response samples

Content type
application/json
{
  • "userId": "string",
  • "resourceId": "string",
  • "metadata": {
    },
  • "id": "string"
}

/resources

Authorizations:
Bearer
query Parameters
resourceId
required
string

Responses

Response samples

Content type
application/problem+json
{
  • "type": "string",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "errors": {
    },
  • "property1": null,
  • "property2": null
}

/resources/{resourceId}

Authorizations:
Bearer
path Parameters
resourceId
required
string

Responses

Response samples

Content type
application/json
{
  • "userId": "string",
  • "resourceId": "string",
  • "metadata": {
    },
  • "id": "string"
}

Subscriptions

/subscriptions

Authorizations:
Bearer

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/subscriptions

Authorizations:
Bearer
Request Body schema: application/json
webhookSecret
string or null
webhookUrl
string or null
eventPayloadTypes
Array of strings or null (SparkEventPayloadType)
Enum: "Unknown" "CurrentLevel" "PowerLevel"
operationTypes
Array of strings or null (OperationType)
Enum: "Create" "Update" "Delete"

Responses

Request samples

Content type
application/json
{
  • "webhookSecret": "string",
  • "webhookUrl": "string",
  • "eventPayloadTypes": [
    ],
  • "operationTypes": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "webhookSecret": "string",
  • "webhookUrl": "string",
  • "eventPayloadTypes": [
    ],
  • "operationTypes": [
    ]
}

/subscriptions/{subscriptionId}

Authorizations:
Bearer
path Parameters
subscriptionId
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "webhookSecret": "string",
  • "webhookUrl": "string",
  • "eventPayloadTypes": [
    ],
  • "operationTypes": [
    ]
}

/subscriptions/{subscriptionId}

Authorizations:
Bearer
path Parameters
subscriptionId
required
string
Request Body schema: application/json
id
string or null
webhookSecret
string or null
webhookUrl
string or null
eventPayloadTypes
Array of strings or null (SparkEventPayloadType)
Enum: "Unknown" "CurrentLevel" "PowerLevel"
operationTypes
Array of strings or null (OperationType)
Enum: "Create" "Update" "Delete"

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "webhookSecret": "string",
  • "webhookUrl": "string",
  • "eventPayloadTypes": [
    ],
  • "operationTypes": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "webhookSecret": "string",
  • "webhookUrl": "string",
  • "eventPayloadTypes": [
    ],
  • "operationTypes": [
    ]
}

/subscriptions/{subscriptionId}

Authorizations:
Bearer
path Parameters
subscriptionId
required
string

Responses

Response samples

Content type
application/problem+json
{
  • "type": "string",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "errors": {
    },
  • "property1": null,
  • "property2": null
}