curl --request PUT \
--url 'https://sandbox.circularo.com/api/v1/share?token=' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"shareId": "sd0oAvfpB4k0yDf787x4",
"allowedOAuths": [
"google"
],
"automaticReminder": {
"intervalDays": 2,
"start": "2023-11-07T05:31:56Z"
},
"disableProtection": true,
"fullname": "John Doe",
"kycDocumentTypes": [],
"kycExpectedData": {
"dateOfBirth": "1988-11-13T00:00:00.000Z",
"documentNumber": "X1234567",
"nationality": "CZE"
},
"kycFactors": [],
"kycProviders": [
"identomat"
],
"nafathId": "<string>",
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"otpMail": "jane.doe+2024@example.com",
"otpPhone": "+493012345678",
"password": "553827",
"rights": [],
"shareTo": "john.doe+member@example.com",
"validUntil": "2023-11-07T05:31:56Z"
}
]
}
'import requests
url = "https://sandbox.circularo.com/api/v1/share?token="
payload = { "data": [
{
"shareId": "sd0oAvfpB4k0yDf787x4",
"allowedOAuths": ["google"],
"automaticReminder": {
"intervalDays": 2,
"start": "2023-11-07T05:31:56Z"
},
"disableProtection": True,
"fullname": "John Doe",
"kycDocumentTypes": [],
"kycExpectedData": {
"dateOfBirth": "1988-11-13T00:00:00.000Z",
"documentNumber": "X1234567",
"nationality": "CZE"
},
"kycFactors": [],
"kycProviders": ["identomat"],
"nafathId": "<string>",
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"otpMail": "jane.doe+2024@example.com",
"otpPhone": "+493012345678",
"password": "553827",
"rights": [],
"shareTo": "john.doe+member@example.com",
"validUntil": "2023-11-07T05:31:56Z"
}
] }
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
data: [
{
shareId: 'sd0oAvfpB4k0yDf787x4',
allowedOAuths: ['google'],
automaticReminder: {intervalDays: 2, start: '2023-11-07T05:31:56Z'},
disableProtection: true,
fullname: 'John Doe',
kycDocumentTypes: [],
kycExpectedData: {
dateOfBirth: '1988-11-13T00:00:00.000Z',
documentNumber: 'X1234567',
nationality: 'CZE'
},
kycFactors: [],
kycProviders: ['identomat'],
nafathId: '<string>',
oauthFactors: [{type: 'email', value: 'john.doe@example.com'}],
otpMail: 'jane.doe+2024@example.com',
otpPhone: '+493012345678',
password: '553827',
rights: [],
shareTo: 'john.doe+member@example.com',
validUntil: '2023-11-07T05:31:56Z'
}
]
})
};
fetch('https://sandbox.circularo.com/api/v1/share?token=', 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://sandbox.circularo.com/api/v1/share?token=",
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([
'data' => [
[
'shareId' => 'sd0oAvfpB4k0yDf787x4',
'allowedOAuths' => [
'google'
],
'automaticReminder' => [
'intervalDays' => 2,
'start' => '2023-11-07T05:31:56Z'
],
'disableProtection' => true,
'fullname' => 'John Doe',
'kycDocumentTypes' => [
],
'kycExpectedData' => [
'dateOfBirth' => '1988-11-13T00:00:00.000Z',
'documentNumber' => 'X1234567',
'nationality' => 'CZE'
],
'kycFactors' => [
],
'kycProviders' => [
'identomat'
],
'nafathId' => '<string>',
'oauthFactors' => [
[
'type' => 'email',
'value' => 'john.doe@example.com'
]
],
'otpMail' => 'jane.doe+2024@example.com',
'otpPhone' => '+493012345678',
'password' => '553827',
'rights' => [
],
'shareTo' => 'john.doe+member@example.com',
'validUntil' => '2023-11-07T05:31:56Z'
]
]
]),
CURLOPT_HTTPHEADER => [
"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://sandbox.circularo.com/api/v1/share?token="
payload := strings.NewReader("{\n \"data\": [\n {\n \"shareId\": \"sd0oAvfpB4k0yDf787x4\",\n \"allowedOAuths\": [\n \"google\"\n ],\n \"automaticReminder\": {\n \"intervalDays\": 2,\n \"start\": \"2023-11-07T05:31:56Z\"\n },\n \"disableProtection\": true,\n \"fullname\": \"John Doe\",\n \"kycDocumentTypes\": [],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycFactors\": [],\n \"kycProviders\": [\n \"identomat\"\n ],\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"otpMail\": \"jane.doe+2024@example.com\",\n \"otpPhone\": \"+493012345678\",\n \"password\": \"553827\",\n \"rights\": [],\n \"shareTo\": \"john.doe+member@example.com\",\n \"validUntil\": \"2023-11-07T05:31:56Z\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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://sandbox.circularo.com/api/v1/share?token=")
.header("Content-Type", "application/json")
.body("{\n \"data\": [\n {\n \"shareId\": \"sd0oAvfpB4k0yDf787x4\",\n \"allowedOAuths\": [\n \"google\"\n ],\n \"automaticReminder\": {\n \"intervalDays\": 2,\n \"start\": \"2023-11-07T05:31:56Z\"\n },\n \"disableProtection\": true,\n \"fullname\": \"John Doe\",\n \"kycDocumentTypes\": [],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycFactors\": [],\n \"kycProviders\": [\n \"identomat\"\n ],\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"otpMail\": \"jane.doe+2024@example.com\",\n \"otpPhone\": \"+493012345678\",\n \"password\": \"553827\",\n \"rights\": [],\n \"shareTo\": \"john.doe+member@example.com\",\n \"validUntil\": \"2023-11-07T05:31:56Z\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": [\n {\n \"shareId\": \"sd0oAvfpB4k0yDf787x4\",\n \"allowedOAuths\": [\n \"google\"\n ],\n \"automaticReminder\": {\n \"intervalDays\": 2,\n \"start\": \"2023-11-07T05:31:56Z\"\n },\n \"disableProtection\": true,\n \"fullname\": \"John Doe\",\n \"kycDocumentTypes\": [],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycFactors\": [],\n \"kycProviders\": [\n \"identomat\"\n ],\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"otpMail\": \"jane.doe+2024@example.com\",\n \"otpPhone\": \"+493012345678\",\n \"password\": \"553827\",\n \"rights\": [],\n \"shareTo\": \"john.doe+member@example.com\",\n \"validUntil\": \"2023-11-07T05:31:56Z\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"count": 22,
"errors": false,
"items": [
{
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"index": "default_documents",
"status": 409,
"message": "Incorrect version",
"payload": {},
"type": "DOCUMENT:VERSION_CONFLICT"
}
]
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Edit shares and change their recipients
PUT /share
Changes shares that have already gone out - how long they stay open, how the recipient’s access is guarded, what they are allowed, when they are reminded - and who the recipient is.
Naming a new recipient does not rewrite the share: a fresh one is issued to them, carrying over what the original asked for - what is to be done, what it allows, the turn it holds and when it runs out - while what belonged to the person who held it stays behind, so a name to address the new recipient by has to be given again. The original is then closed. The new recipient is notified, and so, depending on how far the transaction has got, are the others still waiting and the person who held the share before. A recipient with an account in this workspace has any protection dropped, signing in instead; one without needs to be guarded afresh, so a share that reached its recipient by a one-time code or a sign-in has to be given a new way in or have its protection lifted outright.
Only the owner of the document may edit its shares, and only while the round is still running. Editing is refused outright unless the workspace has been set up to allow recipients to be changed - that setting governs every edit, not only the recipient, and is off to begin with. Once the sender has taken a share’s link out to pass on themselves, the way that share is guarded can still be switched or corrected, but no longer lifted or replaced with a password.
Each entry is settled on its own and the answer reports how every one of them fared, so read those rather than the status code, which is success even where entries were refused. Naming a share that does not exist is the exception - it fails the whole request.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
curl --request PUT \
--url 'https://sandbox.circularo.com/api/v1/share?token=' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"shareId": "sd0oAvfpB4k0yDf787x4",
"allowedOAuths": [
"google"
],
"automaticReminder": {
"intervalDays": 2,
"start": "2023-11-07T05:31:56Z"
},
"disableProtection": true,
"fullname": "John Doe",
"kycDocumentTypes": [],
"kycExpectedData": {
"dateOfBirth": "1988-11-13T00:00:00.000Z",
"documentNumber": "X1234567",
"nationality": "CZE"
},
"kycFactors": [],
"kycProviders": [
"identomat"
],
"nafathId": "<string>",
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"otpMail": "jane.doe+2024@example.com",
"otpPhone": "+493012345678",
"password": "553827",
"rights": [],
"shareTo": "john.doe+member@example.com",
"validUntil": "2023-11-07T05:31:56Z"
}
]
}
'import requests
url = "https://sandbox.circularo.com/api/v1/share?token="
payload = { "data": [
{
"shareId": "sd0oAvfpB4k0yDf787x4",
"allowedOAuths": ["google"],
"automaticReminder": {
"intervalDays": 2,
"start": "2023-11-07T05:31:56Z"
},
"disableProtection": True,
"fullname": "John Doe",
"kycDocumentTypes": [],
"kycExpectedData": {
"dateOfBirth": "1988-11-13T00:00:00.000Z",
"documentNumber": "X1234567",
"nationality": "CZE"
},
"kycFactors": [],
"kycProviders": ["identomat"],
"nafathId": "<string>",
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"otpMail": "jane.doe+2024@example.com",
"otpPhone": "+493012345678",
"password": "553827",
"rights": [],
"shareTo": "john.doe+member@example.com",
"validUntil": "2023-11-07T05:31:56Z"
}
] }
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
data: [
{
shareId: 'sd0oAvfpB4k0yDf787x4',
allowedOAuths: ['google'],
automaticReminder: {intervalDays: 2, start: '2023-11-07T05:31:56Z'},
disableProtection: true,
fullname: 'John Doe',
kycDocumentTypes: [],
kycExpectedData: {
dateOfBirth: '1988-11-13T00:00:00.000Z',
documentNumber: 'X1234567',
nationality: 'CZE'
},
kycFactors: [],
kycProviders: ['identomat'],
nafathId: '<string>',
oauthFactors: [{type: 'email', value: 'john.doe@example.com'}],
otpMail: 'jane.doe+2024@example.com',
otpPhone: '+493012345678',
password: '553827',
rights: [],
shareTo: 'john.doe+member@example.com',
validUntil: '2023-11-07T05:31:56Z'
}
]
})
};
fetch('https://sandbox.circularo.com/api/v1/share?token=', 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://sandbox.circularo.com/api/v1/share?token=",
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([
'data' => [
[
'shareId' => 'sd0oAvfpB4k0yDf787x4',
'allowedOAuths' => [
'google'
],
'automaticReminder' => [
'intervalDays' => 2,
'start' => '2023-11-07T05:31:56Z'
],
'disableProtection' => true,
'fullname' => 'John Doe',
'kycDocumentTypes' => [
],
'kycExpectedData' => [
'dateOfBirth' => '1988-11-13T00:00:00.000Z',
'documentNumber' => 'X1234567',
'nationality' => 'CZE'
],
'kycFactors' => [
],
'kycProviders' => [
'identomat'
],
'nafathId' => '<string>',
'oauthFactors' => [
[
'type' => 'email',
'value' => 'john.doe@example.com'
]
],
'otpMail' => 'jane.doe+2024@example.com',
'otpPhone' => '+493012345678',
'password' => '553827',
'rights' => [
],
'shareTo' => 'john.doe+member@example.com',
'validUntil' => '2023-11-07T05:31:56Z'
]
]
]),
CURLOPT_HTTPHEADER => [
"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://sandbox.circularo.com/api/v1/share?token="
payload := strings.NewReader("{\n \"data\": [\n {\n \"shareId\": \"sd0oAvfpB4k0yDf787x4\",\n \"allowedOAuths\": [\n \"google\"\n ],\n \"automaticReminder\": {\n \"intervalDays\": 2,\n \"start\": \"2023-11-07T05:31:56Z\"\n },\n \"disableProtection\": true,\n \"fullname\": \"John Doe\",\n \"kycDocumentTypes\": [],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycFactors\": [],\n \"kycProviders\": [\n \"identomat\"\n ],\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"otpMail\": \"jane.doe+2024@example.com\",\n \"otpPhone\": \"+493012345678\",\n \"password\": \"553827\",\n \"rights\": [],\n \"shareTo\": \"john.doe+member@example.com\",\n \"validUntil\": \"2023-11-07T05:31:56Z\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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://sandbox.circularo.com/api/v1/share?token=")
.header("Content-Type", "application/json")
.body("{\n \"data\": [\n {\n \"shareId\": \"sd0oAvfpB4k0yDf787x4\",\n \"allowedOAuths\": [\n \"google\"\n ],\n \"automaticReminder\": {\n \"intervalDays\": 2,\n \"start\": \"2023-11-07T05:31:56Z\"\n },\n \"disableProtection\": true,\n \"fullname\": \"John Doe\",\n \"kycDocumentTypes\": [],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycFactors\": [],\n \"kycProviders\": [\n \"identomat\"\n ],\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"otpMail\": \"jane.doe+2024@example.com\",\n \"otpPhone\": \"+493012345678\",\n \"password\": \"553827\",\n \"rights\": [],\n \"shareTo\": \"john.doe+member@example.com\",\n \"validUntil\": \"2023-11-07T05:31:56Z\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": [\n {\n \"shareId\": \"sd0oAvfpB4k0yDf787x4\",\n \"allowedOAuths\": [\n \"google\"\n ],\n \"automaticReminder\": {\n \"intervalDays\": 2,\n \"start\": \"2023-11-07T05:31:56Z\"\n },\n \"disableProtection\": true,\n \"fullname\": \"John Doe\",\n \"kycDocumentTypes\": [],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycFactors\": [],\n \"kycProviders\": [\n \"identomat\"\n ],\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"otpMail\": \"jane.doe+2024@example.com\",\n \"otpPhone\": \"+493012345678\",\n \"password\": \"553827\",\n \"rights\": [],\n \"shareTo\": \"john.doe+member@example.com\",\n \"validUntil\": \"2023-11-07T05:31:56Z\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"count": 22,
"errors": false,
"items": [
{
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"index": "default_documents",
"status": 409,
"message": "Incorrect version",
"payload": {},
"type": "DOCUMENT:VERSION_CONFLICT"
}
]
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Body
Response
Returns the outcome of every entry, successful and refused alike.