curl --request PATCH \
--url https://api.attention.tech/v2/scorecards/{id}/items/{itemId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Discovery Quality (revised)",
"weight": 30
}
'import requests
url = "https://api.attention.tech/v2/scorecards/{id}/items/{itemId}"
payload = {
"title": "Discovery Quality (revised)",
"weight": 30
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: 'Discovery Quality (revised)', weight: 30})
};
fetch('https://api.attention.tech/v2/scorecards/{id}/items/{itemId}', 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.attention.tech/v2/scorecards/{id}/items/{itemId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Discovery Quality (revised)',
'weight' => 30
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://api.attention.tech/v2/scorecards/{id}/items/{itemId}"
payload := strings.NewReader("{\n \"title\": \"Discovery Quality (revised)\",\n \"weight\": 30\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-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.patch("https://api.attention.tech/v2/scorecards/{id}/items/{itemId}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Discovery Quality (revised)\",\n \"weight\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.attention.tech/v2/scorecards/{id}/items/{itemId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Discovery Quality (revised)\",\n \"weight\": 30\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "si-uuid-123",
"scorecardId": "sc-uuid-456",
"title": "Discovery Quality",
"type": "numeric",
"position": 0,
"weight": 25,
"version": 1,
"createdAt": "2026-04-16T10:15:00Z",
"lastUpdatedAt": "2026-04-16T10:15:00Z"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}Update Scorecard Item
Partially updates a scorecard item. Only fields present in the body are modified; omitted fields retain current values. Requires an org-scoped API key.
curl --request PATCH \
--url https://api.attention.tech/v2/scorecards/{id}/items/{itemId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Discovery Quality (revised)",
"weight": 30
}
'import requests
url = "https://api.attention.tech/v2/scorecards/{id}/items/{itemId}"
payload = {
"title": "Discovery Quality (revised)",
"weight": 30
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: 'Discovery Quality (revised)', weight: 30})
};
fetch('https://api.attention.tech/v2/scorecards/{id}/items/{itemId}', 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.attention.tech/v2/scorecards/{id}/items/{itemId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Discovery Quality (revised)',
'weight' => 30
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://api.attention.tech/v2/scorecards/{id}/items/{itemId}"
payload := strings.NewReader("{\n \"title\": \"Discovery Quality (revised)\",\n \"weight\": 30\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-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.patch("https://api.attention.tech/v2/scorecards/{id}/items/{itemId}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Discovery Quality (revised)\",\n \"weight\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.attention.tech/v2/scorecards/{id}/items/{itemId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Discovery Quality (revised)\",\n \"weight\": 30\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "si-uuid-123",
"scorecardId": "sc-uuid-456",
"title": "Discovery Quality",
"type": "numeric",
"position": 0,
"weight": 25,
"version": 1,
"createdAt": "2026-04-16T10:15:00Z",
"lastUpdatedAt": "2026-04-16T10:15:00Z"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}Authorizations
Body
Fields to update. All fields optional; at least one required.
Partial update payload for a scorecard item. All fields optional; at least one required.
Replacement title (1-128 characters, trimmed).
Replacement weight (0-100).
Replacement position. Reordering siblings is the caller's responsibility; overlapping positions may produce undefined ordering.
Replacement expert-mode prompt (0-8000 characters).
Type-discriminated metadata for a scorecard item. Numeric items populate numericMetadata.
Show child attributes
Show child attributes
{
"numericMetadata": {
"min": 0,
"middle": 50,
"max": 100,
"minCriteria": "No discovery questions asked.",
"middleCriteria": "Some discovery questions asked.",
"maxCriteria": "Thorough discovery performed."
}
}
Response
Scorecard item successfully updated
Single-resource envelope wrapping a ScorecardItem.
A single scoring criterion belonging to a scorecard template.
Show child attributes
Show child attributes
{
"id": "si-uuid-123",
"scorecardId": "sc-uuid-456",
"title": "Discovery Quality",
"type": "numeric",
"position": 0,
"weight": 25,
"version": 1,
"expertPrompt": "",
"metadata": {
"numericMetadata": {
"min": 0,
"middle": 50,
"max": 100,
"minCriteria": "No discovery questions asked.",
"middleCriteria": "Some discovery questions asked.",
"maxCriteria": "Thorough discovery performed."
}
},
"createdAt": "2026-04-16T10:15:00Z",
"lastUpdatedAt": "2026-04-16T10:15:00Z"
}
Was this page helpful?