Resource

Get resources

get

Required permissions: Resource.Organization.Read Required features: Grid

Authorizations
Query parameters
organizationIdinteger · int32Required

The identifier of the organization.

marketZoneIdinteger · int32Optional

The identifier of the market zone

Responses
200

List of resources

application/json
get
/api/grid/resource
GET /api/grid/resource?organizationId=1 HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "id": 1,
    "organizationId": 1,
    "marketZoneId": 1,
    "managedByOrganizationId": 1,
    "createdAt": "2025-11-03T15:52:34.173Z",
    "createdBy": 1,
    "connectedAt": "2025-11-03T15:52:34.173Z",
    "name": "text",
    "longitude": "text",
    "latitude": "text",
    "contactInformation": "text",
    "type": 0,
    "regulationType": 0,
    "endurance": 1,
    "cooldown": 1,
    "useZeroReference": true,
    "actualRegisterId": 1,
    "referenceRegisterId": 1,
    "conditionalDeliveryLimit": 1,
    "conditionalUseDynamicDeliveryLimit": true,
    "conditionalAutomaticAcknowledgement": true,
    "isAggregate": true,
    "transactionRevalidationAllowed": true,
    "allowedProducts": [
      0
    ],
    "pods": [
      {
        "podId": "text",
        "name": "text",
        "description": "text",
        "maxQuantity": 1,
        "type": 0
      }
    ]
  }
]

Save resource reference readings

post

Required permissions: Planning.Organization.ReadWrite Required features: Grid

Authorizations
Path parameters
resourceIdinteger · int32Required

The identifier of the resource.

Body
all ofOptional
Responses
204

Readings were saved

No content

post
/api/grid/resource/{resourceId}/readings/reference
POST /api/grid/resource/{resourceId}/readings/reference HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 84

{
  "organizationId": 1,
  "readings": [
    {
      "timestamp": "2025-11-03T15:52:34.173Z",
      "value": 1
    }
  ]
}

No content

Save resource actual readings

post

Required permissions: Resource.Organization.ReadWrite Required features: Grid | DecisionSupport

Authorizations
Path parameters
resourceIdinteger · int32Required

The identifier of the resource.

Body
all ofOptional
Responses
204

Readings were saved

No content

post
/api/grid/resource/{resourceId}/readings/actual
POST /api/grid/resource/{resourceId}/readings/actual HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 84

{
  "organizationId": 1,
  "readings": [
    {
      "timestamp": "2025-11-03T15:52:34.173Z",
      "value": 1
    }
  ]
}

No content

Revalidate resource transactions

put

Required permissions: Resource.Organization.ReadWrite Required features: Grid | DecisionSupport

Authorizations
Path parameters
resourceIdinteger · int32Required

The identifier of the resource.

Query parameters
organizationIdinteger · int32Required

The organization identifier

startstring · date-timeRequired

The start date and time represented using ISO 8601 format and is always in UTC time, e.g. midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

endstring · date-timeRequired

The end date and time represented using ISO 8601 format and is always in UTC time, e.g. midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Responses
204

Transactions were revalidated

No content

put
/api/grid/resource/{resourceId}/transactions/revalidate
PUT /api/grid/resource/{resourceId}/transactions/revalidate?organizationId=1&start=2025-11-03T15%3A52%3A34.173Z&end=2025-11-03T15%3A52%3A34.173Z HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated

Was this helpful?