curl --request PUT \
--url 'https://sandbox.circularo.com/api/v1/share/disable?token=' \
--header 'Content-Type: application/json' \
--data '
{
"shareIds": [
"sd0oAvfpB4k0yDf787x4"
],
"isPublicComment": false,
"message": "Document has been revised. A new version will be shared shortly."
}
'import requests
url = "https://sandbox.circularo.com/api/v1/share/disable?token="
payload = {
"shareIds": ["sd0oAvfpB4k0yDf787x4"],
"isPublicComment": False,
"message": "Document has been revised. A new version will be shared shortly."
}
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({
shareIds: ['sd0oAvfpB4k0yDf787x4'],
isPublicComment: false,
message: 'Document has been revised. A new version will be shared shortly.'
})
};
fetch('https://sandbox.circularo.com/api/v1/share/disable?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/disable?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([
'shareIds' => [
'sd0oAvfpB4k0yDf787x4'
],
'isPublicComment' => false,
'message' => 'Document has been revised. A new version will be shared shortly.'
]),
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/disable?token="
payload := strings.NewReader("{\n \"shareIds\": [\n \"sd0oAvfpB4k0yDf787x4\"\n ],\n \"isPublicComment\": false,\n \"message\": \"Document has been revised. A new version will be shared shortly.\"\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/disable?token=")
.header("Content-Type", "application/json")
.body("{\n \"shareIds\": [\n \"sd0oAvfpB4k0yDf787x4\"\n ],\n \"isPublicComment\": false,\n \"message\": \"Document has been revised. A new version will be shared shortly.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share/disable?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 \"shareIds\": [\n \"sd0oAvfpB4k0yDf787x4\"\n ],\n \"isPublicComment\": false,\n \"message\": \"Document has been revised. A new version will be shared shortly.\"\n}"
response = http.request(request)
puts response.read_body[
{
"error": false,
"id": "sd0oAvfpB4k0yDf787x4"
}
]{
"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"
}Call off shares of a document
PUT /share/disable
Calls shares off so that their recipients can no longer open the document: each is deactivated, taken off what the document is waiting for, its sign fields are marked as cancelled, and the unfinished draft the recipient had started is thrown away. Recipients who had already been told it was their turn are told it was called off, with the reason given here; those whose turn had not yet come are called off quietly.
The round falls with the share whenever what is left cannot finish it - a recipient whose part had to be completed, the last one outstanding, or so many of a group that the number required can no longer be made up. Everybody still waiting is then called off as well and the document is left marked as cancelled. Where the recipients act one after another and the round carries on, the turn simply passes to the next of them.
Only the owner of the document may call off a share that asks somebody to act.
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/disable?token=' \
--header 'Content-Type: application/json' \
--data '
{
"shareIds": [
"sd0oAvfpB4k0yDf787x4"
],
"isPublicComment": false,
"message": "Document has been revised. A new version will be shared shortly."
}
'import requests
url = "https://sandbox.circularo.com/api/v1/share/disable?token="
payload = {
"shareIds": ["sd0oAvfpB4k0yDf787x4"],
"isPublicComment": False,
"message": "Document has been revised. A new version will be shared shortly."
}
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({
shareIds: ['sd0oAvfpB4k0yDf787x4'],
isPublicComment: false,
message: 'Document has been revised. A new version will be shared shortly.'
})
};
fetch('https://sandbox.circularo.com/api/v1/share/disable?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/disable?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([
'shareIds' => [
'sd0oAvfpB4k0yDf787x4'
],
'isPublicComment' => false,
'message' => 'Document has been revised. A new version will be shared shortly.'
]),
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/disable?token="
payload := strings.NewReader("{\n \"shareIds\": [\n \"sd0oAvfpB4k0yDf787x4\"\n ],\n \"isPublicComment\": false,\n \"message\": \"Document has been revised. A new version will be shared shortly.\"\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/disable?token=")
.header("Content-Type", "application/json")
.body("{\n \"shareIds\": [\n \"sd0oAvfpB4k0yDf787x4\"\n ],\n \"isPublicComment\": false,\n \"message\": \"Document has been revised. A new version will be shared shortly.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share/disable?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 \"shareIds\": [\n \"sd0oAvfpB4k0yDf787x4\"\n ],\n \"isPublicComment\": false,\n \"message\": \"Document has been revised. A new version will be shared shortly.\"\n}"
response = http.request(request)
puts response.read_body[
{
"error": false,
"id": "sd0oAvfpB4k0yDf787x4"
}
]{
"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
Why the shares are being called off. It is recorded on the document and carried in the notification the recipients receive. May carry basic formatting — bold, italic, underline, https links and bullet lists; everything else is stripped on input.
2000"Document has been revised. A new version will be shared shortly."
Response
Returns the outcome for every share that was called off.