Push reference fields
curl --request PUT \
--url https://api.reintersect.com/v0/references \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.reintersect.com/v0/references"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.reintersect.com/v0/references', 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.reintersect.com/v0/references",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.reintersect.com/v0/references"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.reintersect.com/v0/references")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reintersect.com/v0/references")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyReferences
Push reference fields
Update the stored fields of one of your references without a resolve.
PUT
/
v0
/
references
Push reference fields
curl --request PUT \
--url https://api.reintersect.com/v0/references \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.reintersect.com/v0/references"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.reintersect.com/v0/references', 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.reintersect.com/v0/references",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.reintersect.com/v0/references"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.reintersect.com/v0/references")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reintersect.com/v0/references")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body
Updates the workspace’s shared record for a reference, so every chip, link and card showing it
updates at once.
Authenticate with an install token that has the
Text fields are at most 200 characters,
With the SDK, call
references:write scope.
Body
| Field | Type | Required | Description |
|---|---|---|---|
kind | string | Yes | One of your reference kinds. |
externalId | string | Yes | The object’s id. |
version | number | Yes | A whole number that increases with every change on your side. Lower versions than the stored one are ignored; the same version is applied. |
fields | object | Yes | Any of title, summary, subtitle, icon, status, updatedAt, url, visibility and block. null clears an optional field. block is a rendered { tree, actions } that replaces the custom card, or null to remove it. |
summary at most 280, and status.label at most 60.
Response
| Field | Type | Description |
|---|---|---|
applied | boolean | false when Reintersect already held a newer version. |
version | number | The version Reintersect holds now. |
Errors
_tag | Status | Cause |
|---|---|---|
ReintersectAppScopeMissingError | 403 | The install lacks references:write. |
ReintersectAppReferenceKindUnknownError | 422 | The installed version has no reference kind with this name. |
Example
curl -X PUT https://api.reintersect.com/v0/references \
-H "authorization: Bearer $INSTALL_TOKEN" \
-H "content-type: application/json" \
-d '{ "kind": "deployment", "externalId": "dpl_9xK2", "version": 1759586531000,
"fields": { "status": { "state": "success", "label": "Ready" } } }'
reintersect.references.push({ kind, externalId, fields, version }).