Undo a merge
curl --request POST \
--url https://{region}.api.plerion.com/v1/tenant/owners/{ownerId}/unmerge \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mergeId": "5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b7a44"
}
'import requests
url = "https://{region}.api.plerion.com/v1/tenant/owners/{ownerId}/unmerge"
payload = { "mergeId": "5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b7a44" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mergeId: '5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b7a44'})
};
fetch('https://{region}.api.plerion.com/v1/tenant/owners/{ownerId}/unmerge', 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://{region}.api.plerion.com/v1/tenant/owners/{ownerId}/unmerge",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mergeId' => '5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b7a44'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://{region}.api.plerion.com/v1/tenant/owners/{ownerId}/unmerge"
payload := strings.NewReader("{\n \"mergeId\": \"5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b7a44\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://{region}.api.plerion.com/v1/tenant/owners/{ownerId}/unmerge")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mergeId\": \"5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b7a44\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.plerion.com/v1/tenant/owners/{ownerId}/unmerge")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mergeId\": \"5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b7a44\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"restored": [
{
"id": "<string>",
"name": "<string>"
}
],
"namesBack": 123,
"namesKept": 123,
"assetsSetByHandBack": 123,
"partial": true
}
}{
"errors": [
{
"code": "NameTaken",
"message": "Payments already goes by \"payments\". Use that one instead."
}
]
}{
"message": "Forbidden"
}{
"errors": [
{
"code": "NameTaken",
"message": "Payments already goes by \"payments\". Use that one instead."
}
]
}{
"errors": [
{
"code": "NameTaken",
"message": "Payments already goes by \"payments\". Use that one instead."
}
]
}{
"message": "Internal server error"
}Undo a merge
Splits a merge back out. Each merged owner comes back with its ID, and the names, hand-set assets and hand-overs that moved go back to it, unless they were changed since. Its other assets follow its names at the scan this starts. Plerion does not merge these owners again by itself. ownerId is the owner merged into, and mergeId comes from Merge owners or the merged entry in the owner’s history. A merge already undone, or made before merges could be undone, is not found. Requires Owner:Modify.
POST
/
v1
/
tenant
/
owners
/
{ownerId}
/
unmerge
Undo a merge
curl --request POST \
--url https://{region}.api.plerion.com/v1/tenant/owners/{ownerId}/unmerge \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mergeId": "5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b7a44"
}
'import requests
url = "https://{region}.api.plerion.com/v1/tenant/owners/{ownerId}/unmerge"
payload = { "mergeId": "5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b7a44" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mergeId: '5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b7a44'})
};
fetch('https://{region}.api.plerion.com/v1/tenant/owners/{ownerId}/unmerge', 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://{region}.api.plerion.com/v1/tenant/owners/{ownerId}/unmerge",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mergeId' => '5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b7a44'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://{region}.api.plerion.com/v1/tenant/owners/{ownerId}/unmerge"
payload := strings.NewReader("{\n \"mergeId\": \"5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b7a44\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://{region}.api.plerion.com/v1/tenant/owners/{ownerId}/unmerge")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mergeId\": \"5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b7a44\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.plerion.com/v1/tenant/owners/{ownerId}/unmerge")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mergeId\": \"5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b7a44\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"restored": [
{
"id": "<string>",
"name": "<string>"
}
],
"namesBack": 123,
"namesKept": 123,
"assetsSetByHandBack": 123,
"partial": true
}
}{
"errors": [
{
"code": "NameTaken",
"message": "Payments already goes by \"payments\". Use that one instead."
}
]
}{
"message": "Forbidden"
}{
"errors": [
{
"code": "NameTaken",
"message": "Payments already goes by \"payments\". Use that one instead."
}
]
}{
"errors": [
{
"code": "NameTaken",
"message": "Payments already goes by \"payments\". Use that one instead."
}
]
}{
"message": "Internal server error"
}Authorizations
Headers
Path Parameters
Owner ID. Use List owners to get the IDs.
Example:
"3f0c2a7e-1b8d-4c55-9a61-0d2f7e9b4c11"
Was this page helpful?