Update EMP identity
curl --request PUT \
--url https://api.spirii.com/emsp/v1/tenant/emp-identities/{emp_identity_id} \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"label": "<string>",
"contact_email": "jsmith@example.com",
"contact_phone": "<string>",
"default_network_access": true
}
'import requests
url = "https://api.spirii.com/emsp/v1/tenant/emp-identities/{emp_identity_id}"
payload = {
"label": "<string>",
"contact_email": "jsmith@example.com",
"contact_phone": "<string>",
"default_network_access": True
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Idempotency-Key': '<idempotency-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: '<string>',
contact_email: 'jsmith@example.com',
contact_phone: '<string>',
default_network_access: true
})
};
fetch('https://api.spirii.com/emsp/v1/tenant/emp-identities/{emp_identity_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.spirii.com/emsp/v1/tenant/emp-identities/{emp_identity_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'label' => '<string>',
'contact_email' => 'jsmith@example.com',
'contact_phone' => '<string>',
'default_network_access' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.spirii.com/emsp/v1/tenant/emp-identities/{emp_identity_id}"
payload := strings.NewReader("{\n \"label\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"contact_phone\": \"<string>\",\n \"default_network_access\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.spirii.com/emsp/v1/tenant/emp-identities/{emp_identity_id}")
.header("Idempotency-Key", "<idempotency-key>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"contact_phone\": \"<string>\",\n \"default_network_access\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spirii.com/emsp/v1/tenant/emp-identities/{emp_identity_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"label\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"contact_phone\": \"<string>\",\n \"default_network_access\": true\n}"
response = http.request(request)
puts response.read_body{
"emp_identity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country_code": "DK",
"party_id": "SPR",
"status": "ACTIVE",
"created_at": "2023-11-07T05:31:56Z",
"protocol": [
"OCPI"
],
"label": "<string>",
"contact_email": "jsmith@example.com",
"contact_phone": "<string>",
"default_network_access": true
}{
"type": "about:blank",
"title": "Tenant not found",
"status": 404,
"detail": "No tenant exists with id 0192...c3.",
"instance": "/v1/tenant/profile",
"code": "tenant_not_found",
"trace_id": "abc123def456",
"timestamp": "2026-06-10T09:30:00.000Z",
"errors": [
{
"field": "workspace_id",
"code": "is_uuid",
"message": "workspace_id must be a UUID"
}
]
}{
"type": "about:blank",
"title": "Tenant not found",
"status": 404,
"detail": "No tenant exists with id 0192...c3.",
"instance": "/v1/tenant/profile",
"code": "tenant_not_found",
"trace_id": "abc123def456",
"timestamp": "2026-06-10T09:30:00.000Z",
"errors": [
{
"field": "workspace_id",
"code": "is_uuid",
"message": "workspace_id must be a UUID"
}
]
}Update EMP identity
Updates the details of one of your roaming identities — things like its label or its contact information. Its ID and its status are managed by Spirii and can’t be changed here. As with registering, you include a one-off reference (an “idempotency key”) so a repeated request isn’t applied twice.
PUT
/
emsp
/
v1
/
tenant
/
emp-identities
/
{emp_identity_id}
Update EMP identity
curl --request PUT \
--url https://api.spirii.com/emsp/v1/tenant/emp-identities/{emp_identity_id} \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"label": "<string>",
"contact_email": "jsmith@example.com",
"contact_phone": "<string>",
"default_network_access": true
}
'import requests
url = "https://api.spirii.com/emsp/v1/tenant/emp-identities/{emp_identity_id}"
payload = {
"label": "<string>",
"contact_email": "jsmith@example.com",
"contact_phone": "<string>",
"default_network_access": True
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Idempotency-Key': '<idempotency-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: '<string>',
contact_email: 'jsmith@example.com',
contact_phone: '<string>',
default_network_access: true
})
};
fetch('https://api.spirii.com/emsp/v1/tenant/emp-identities/{emp_identity_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.spirii.com/emsp/v1/tenant/emp-identities/{emp_identity_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'label' => '<string>',
'contact_email' => 'jsmith@example.com',
'contact_phone' => '<string>',
'default_network_access' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.spirii.com/emsp/v1/tenant/emp-identities/{emp_identity_id}"
payload := strings.NewReader("{\n \"label\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"contact_phone\": \"<string>\",\n \"default_network_access\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.spirii.com/emsp/v1/tenant/emp-identities/{emp_identity_id}")
.header("Idempotency-Key", "<idempotency-key>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"contact_phone\": \"<string>\",\n \"default_network_access\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spirii.com/emsp/v1/tenant/emp-identities/{emp_identity_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"label\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"contact_phone\": \"<string>\",\n \"default_network_access\": true\n}"
response = http.request(request)
puts response.read_body{
"emp_identity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country_code": "DK",
"party_id": "SPR",
"status": "ACTIVE",
"created_at": "2023-11-07T05:31:56Z",
"protocol": [
"OCPI"
],
"label": "<string>",
"contact_email": "jsmith@example.com",
"contact_phone": "<string>",
"default_network_access": true
}{
"type": "about:blank",
"title": "Tenant not found",
"status": 404,
"detail": "No tenant exists with id 0192...c3.",
"instance": "/v1/tenant/profile",
"code": "tenant_not_found",
"trace_id": "abc123def456",
"timestamp": "2026-06-10T09:30:00.000Z",
"errors": [
{
"field": "workspace_id",
"code": "is_uuid",
"message": "workspace_id must be a UUID"
}
]
}{
"type": "about:blank",
"title": "Tenant not found",
"status": 404,
"detail": "No tenant exists with id 0192...c3.",
"instance": "/v1/tenant/profile",
"code": "tenant_not_found",
"trace_id": "abc123def456",
"timestamp": "2026-06-10T09:30:00.000Z",
"errors": [
{
"field": "workspace_id",
"code": "is_uuid",
"message": "workspace_id must be a UUID"
}
]
}Headers
Client-generated unique key per operation intent (UUID). Same key + identical body replays the original response; same key + different body returns 409.
Path Parameters
Body
application/json
Response
Platform-assigned stable identifier
ISO 3166-1 alpha-2 country code
Pattern:
^[A-Z]{2}$Example:
"DK"
OCPI party_id (3-character code)
Pattern:
^[A-Z0-9]{3}$Example:
"SPR"
Available options:
ACTIVE, SUSPENDED Available options:
OCPI, OICP Optional human-readable label
Maximum string length:
255Maximum string length:
20Whether this identity grants visibility into all Published Base Networks
Was this page helpful?