Skip to the text
SEDIS Partner API API reference

Write data

Your own system can keep your portfolio in Fastighetsbenchmark up to date: create the property units, send a year's values, and correct them afterwards. It takes the place of the Excel file that others upload on the web. Sedis still reviews the values before they count in the market.

Writing needs an organisation key. A person who has signed in can only read.

The whole flow

  1. Create each property unit once with POST property-units, and save the sedisId you get back.
  2. Upload the values for a year with POST comp-uploads, and read the remarks in the answer.
  3. Submit them when they are right, with "submit": true.
  4. Follow the upload with GET comp-uploads/{id} until it is published.
  5. Correct single values later with PATCH.

Everything is strict: if one thing in a call is wrong, you get 422 with a list of all the errors, and nothing is saved. Errors explains each code.

What a property unit is called

Field Who decides it Finds the property unit
sedisId Sedis, when it is created. Never changes. Upper and lower case matter. Yes
name You. Your own name for it, unique among your property units. Yes, if it matches exactly
officialDesignation The land register, e.g. Gladan 4 No. It describes the property but does not identify it

Save the sedisId in your system. If you cannot, use name, and look the property unit up with GET property-units?name=….

Create a property unit

curl -X POST "https://api.sedis.se/v2/fastighetsbenchmark/property-units" \
  -H "X-Api-Key: $SEDIS_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: 7c9e6679-7425-40de-944b-e07fc1f90ae7" \
  -d '{
        "name": "Kontoret Gladan 4",
        "officialDesignation": "Gladan 4",
        "municipalityId": 21,
        "address": {
          "streetNameAndNumber": "Sveavägen 12",
          "postalCode": "111 57",
          "postalTown": "Stockholm"
        }
      }'

The answer is 201 Created with the property unit and its sedisId. If you already have one with that name, the answer is 409 with its existingSedisId.

Only name is required. A Swedish officialDesignation also needs municipalityId, because the same designation exists in many municipalities. Look it up once with GET municipalities?code=0180, where the code is the official four-digit one.

The location is looked up by Sedis: in Lantmäteriet's register for a Swedish designation, otherwise from the address. If you know it better, send a point as GeoJSON:

geometry geometryCrs Coordinates
{ "type": "Point", "coordinates": [18.0645, 59.3326] } leave out longitude, latitude (WGS 84)
{ "type": "Point", "coordinates": [674322, 6581099] } EPSG:3006 easting, northing (SWEREF 99 TM)

A point that lies outside the municipality or the country is an error. Sedis never moves a point you have sent.

Warnings. The answer may have warnings about the designation: that it repeats the name of the municipality, or that Lantmäteriet does not know it. The property unit is created all the same.

Change or rename a property unit

PUT property-units/{sedisId} takes the same body as POST and replaces everything: a field you leave out is emptied. This is the only way to rename one.

If somebody else may be changing it at the same time, send the ETag from your last GET in If-Match. If it has been changed since, you get 412 and nothing is written.

Upload values

One upload has one value date and up to 1,000 property units:

curl -X POST "https://api.sedis.se/v2/fastighetsbenchmark/comp-uploads" \
  -H "X-Api-Key: $SEDIS_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: 0b2f6e8e-3c1a-4c55-9a6e-2f1f3c9f7d10" \
  -d '{
        "valueDate": "2025-12-31",
        "rows": [
          { "sedisId": "v4ZIL9NafVo", "values": { "EA0": 1, "EB0": 2, "FN0": 412000, "FS0": 398000 } },
          { "name": "Kontoret Gladan 4", "values": { "EA0": 1, "EB0": 2, "FN0": 98000, "FS0": null } }
        ]
      }'

Which parameters? Those with isBaseData: true in GET parameters. Each has its unit there, and amounts are in thousands of SEK. The upload above says that the first property is worth SEK 412 million.

How is a value written? A number for decimal, true or false for boolean, the number in enumValues for enum, and "2019-04-01" for date. null removes a value, and a parameter you leave out is left as it is.

What must be there? To be submitted, every property unit needs a classification (EA0) and a property type (EB0) on the value date. The types are in GET property-types.

Which value date? 31 December, for the year that ends then.

An upload never creates or renames a property unit. An unknown name is an error.

Read the remarks, then submit

Without submit the upload is only saved, and you can send it again as many times as you like. The answer has warnings: things Sedis would ask about, such as a value that is a hundred times smaller than last year for every property. Look through them, correct what is wrong, and send the upload again with "submit": true.

Then it is with Sedis. GET comp-uploads/{id} says where it is:

status What it means
uploaded Saved but not submitted. Also when Sedis has sent it back for correction.
submitted With Sedis for review
publishing Being published
published The values are in Fastighetsbenchmark. The calculated values follow, property unit by property unit.

After it has been submitted, a new upload for the same date gives 409.

Correct values

PATCH changes some of the values for one property unit and one date. The body is a JSON Merge Patch with parameter codes, and null removes a value:

curl -X PATCH "https://api.sedis.se/v2/fastighetsbenchmark/property-units/v4ZIL9NafVo/values/2025-12-31" \
  -H "X-Api-Key: $SEDIS_API_KEY" -H "Content-Type: application/merge-patch+json" \
  -d '{ "FN0": 418000, "FS0": null }'

What happens depends on whether the value is shared, that is, part of what others compare themselves with:

The values are Answer What happens
Not shared 200 The change is made at once. Calculated values follow within seconds.
Shared 202 The change waits for Sedis. Until it is approved the old value stands.

GET property-units/{sedisId}/pending-changes lists what is waiting. If Sedis sends a change back, the reason is in reviewComment. To take back a change, send the old value again.

Remove

Call Removes
DELETE property-units/{sedisId}/values/{valueDate} All values for one date
DELETE property-units/{sedisId} The property unit with everything in it

Shared values cannot be removed through the API, since that would change other customers' figures: the answer is 409. A property that has been sold should not be removed either. Report the sale as a transaction.

Collections

A collection is a group of your property units that Sedis calculates as a whole.

curl -X POST "https://api.sedis.se/v2/fastighetsbenchmark/collections" \
  -H "X-Api-Key: $SEDIS_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: 5f9c1e2a-7b3d-4a1f-9c0e-2b6d4a8f1c33" \
  -d '{ "name": "Offices in Solna", "propertyUnitSedisIds": ["v4ZIL9NafVo", "pR7m2KdQ0z"] }'

PUT collections/{sedisId} replaces the name and all the members. DELETE removes the collection but not the properties in it.

Retry safely

Every POST that creates something needs an Idempotency-Key: a new UUID for each thing you want done. If the network fails and you do not know whether it worked, send the same call with the same key again. You then get the first answer back, with the header Idempotency-Replayed: true, and nothing is created twice. A key is remembered for 24 hours.

PUT, PATCH and DELETE can be repeated without one.

Next: Keys, sign-in and limits