Vtn
Required permissions: Organization.Organization.ReadWrite Required features: OpenADR
The organization identifier
The list of VTN credentials
Input data was invalid
Not authorized
Not allowed
Internal server error
GET /api/openadr/vtn/credential?organizationId=1 HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 1,
"organizationId": 1,
"clientId": "text",
"clientSecret": "text",
"clientName": "text",
"hint": "text",
"scopes": [
"text"
]
}
]Required permissions: Organization.Organization.ReadWrite Required features: OpenADR
The organization client was created
Input data was invalid
Not authorized
Not allowed
Internal server error
POST /api/openadr/vtn/credential HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"organizationId": 1,
"name": "text",
"scopes": [
"text"
]
}{
"id": 1,
"organizationId": 1,
"clientId": "text",
"clientSecret": "text",
"clientName": "text",
"hint": "text",
"scopes": [
"text"
]
}Required permissions: Organization.Organization.ReadWrite Required features: OpenADR
The VTN credential identifier
The organization identifier
The VTN credential secret was rotated
Input data was invalid
Not authorized
Not allowed
Internal server error
PUT /api/openadr/vtn/credential/{credentialId}/secret?organizationId=1 HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"organizationId": 1,
"clientId": "text",
"clientSecret": "text",
"clientName": "text",
"hint": "text",
"scopes": [
"text"
]
}Required permissions: Organization.Organization.ReadWrite Required features: OpenADR
The VTN credential identifier
The organization identifier
The VTN credential was deleted
No content
Input data was invalid
Not authorized
Not allowed
Internal server error
DELETE /api/openadr/vtn/credential/{credentialId}?organizationId=1 HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?