curl --request PUT \
--url https://allocait.app/api/v1/inputs/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"carry_forward": true,
"optional": true,
"options": [
"<string>"
],
"remove": [
"<string>"
]
}
'import requests
url = "https://allocait.app/api/v1/inputs/{id}"
payload = {
"name": "<string>",
"description": "<string>",
"carry_forward": True,
"optional": True,
"options": ["<string>"],
"remove": ["<string>"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
carry_forward: true,
optional: true,
options: ['<string>'],
remove: ['<string>']
})
};
fetch('https://allocait.app/api/v1/inputs/{id}', 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://allocait.app/api/v1/inputs/{id}",
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([
'name' => '<string>',
'description' => '<string>',
'carry_forward' => true,
'optional' => true,
'options' => [
'<string>'
],
'remove' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://allocait.app/api/v1/inputs/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"carry_forward\": true,\n \"optional\": true,\n \"options\": [\n \"<string>\"\n ],\n \"remove\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<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.put("https://allocait.app/api/v1/inputs/{id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"carry_forward\": true,\n \"optional\": true,\n \"options\": [\n \"<string>\"\n ],\n \"remove\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://allocait.app/api/v1/inputs/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"carry_forward\": true,\n \"optional\": true,\n \"options\": [\n \"<string>\"\n ],\n \"remove\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"input_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"input": "<string>",
"created": true,
"data_type": "PERCENTAGE",
"scope": "PORTFOLIO",
"display_mode": "TIME_SERIES",
"chart_role": "OVERLAY",
"description": "<string>",
"carry_forward": true,
"optional": true,
"emphasis": "none",
"options": [
"<string>"
],
"added": [
"<string>"
],
"removed": [
"<string>"
]
}{
"error": "Portfolio not found or access denied",
"error_code": "NOT_FOUND"
}{
"error": "Portfolio not found or access denied",
"error_code": "NOT_FOUND"
}{
"error": "Portfolio not found or access denied",
"error_code": "NOT_FOUND"
}{
"error": "Portfolio not found or access denied",
"error_code": "NOT_FOUND"
}{
"error": "Portfolio not found or access denied",
"error_code": "NOT_FOUND"
}{
"error": "Portfolio not found or access denied",
"error_code": "NOT_FOUND"
}{
"error": "Internal error",
"error_code": "INTERNAL_ERROR",
"request_id": "5b1e7c52-3f4a-4d0e-9a55-2d5cbe6f0a11"
}Change an Input definition and its options in one call
Patches the definition and replaces a CHOICE input’s options by
value, in one transaction. The same function backs the MCP server’s
save_input. A field you leave out keeps its value, and
description: null clears it. carry_forward: false and
optional: false are values, not omissions: each turns its setting off.
emphasis: none likewise clears the emphasis (ADR-198); left out, it keeps
its stored value.
optionsis the whole list in display order. If it would drop a stored option thatremovedoesn’t name, the call is refused withCONFIRMATION_REQUIREDandwould_remove. Resend with those options inremove. Values already recorded with a removed option stay as they are.data_typeandscopecan’t change once a value is recorded (ADR-016).chart_roleofOVERLAYrequiresscopeofSYMBOL.
Requires the API key to have the write permission.
curl --request PUT \
--url https://allocait.app/api/v1/inputs/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"carry_forward": true,
"optional": true,
"options": [
"<string>"
],
"remove": [
"<string>"
]
}
'import requests
url = "https://allocait.app/api/v1/inputs/{id}"
payload = {
"name": "<string>",
"description": "<string>",
"carry_forward": True,
"optional": True,
"options": ["<string>"],
"remove": ["<string>"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
carry_forward: true,
optional: true,
options: ['<string>'],
remove: ['<string>']
})
};
fetch('https://allocait.app/api/v1/inputs/{id}', 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://allocait.app/api/v1/inputs/{id}",
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([
'name' => '<string>',
'description' => '<string>',
'carry_forward' => true,
'optional' => true,
'options' => [
'<string>'
],
'remove' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://allocait.app/api/v1/inputs/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"carry_forward\": true,\n \"optional\": true,\n \"options\": [\n \"<string>\"\n ],\n \"remove\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<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.put("https://allocait.app/api/v1/inputs/{id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"carry_forward\": true,\n \"optional\": true,\n \"options\": [\n \"<string>\"\n ],\n \"remove\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://allocait.app/api/v1/inputs/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"carry_forward\": true,\n \"optional\": true,\n \"options\": [\n \"<string>\"\n ],\n \"remove\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"input_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"input": "<string>",
"created": true,
"data_type": "PERCENTAGE",
"scope": "PORTFOLIO",
"display_mode": "TIME_SERIES",
"chart_role": "OVERLAY",
"description": "<string>",
"carry_forward": true,
"optional": true,
"emphasis": "none",
"options": [
"<string>"
],
"added": [
"<string>"
],
"removed": [
"<string>"
]
}{
"error": "Portfolio not found or access denied",
"error_code": "NOT_FOUND"
}{
"error": "Portfolio not found or access denied",
"error_code": "NOT_FOUND"
}{
"error": "Portfolio not found or access denied",
"error_code": "NOT_FOUND"
}{
"error": "Portfolio not found or access denied",
"error_code": "NOT_FOUND"
}{
"error": "Portfolio not found or access denied",
"error_code": "NOT_FOUND"
}{
"error": "Portfolio not found or access denied",
"error_code": "NOT_FOUND"
}{
"error": "Internal error",
"error_code": "INTERNAL_ERROR",
"request_id": "5b1e7c52-3f4a-4d0e-9a55-2d5cbe6f0a11"
}Authorizations
Raw API key shown once when created in the Allocait app (Settings > API keys). Send it verbatim in this header; the server stores and compares only its SHA-256 hash. Allocait generates every key: alc_ followed by 64 lowercase hex characters. Keys issued before 2026-10-10 are 64 hex characters with no prefix and keep working. A key may carry an expiry (90 days or 1 year, or never). A malformed, unknown, revoked or expired key gets 401 with no further detail, and a malformed one is refused before any lookup. Keys cannot be created through this API.
Path Parameters
definition_id
Body
100PERCENTAGE, DECIMAL, NUMBER, TEXT, CHOICE TIME_SERIES, LEVEL_MARKER OVERLAY, STANDALONE PORTFOLIO, SYMBOL Keep until changed. A playbook shows this Input's latest value on or before the date it is read for. Left out, the stored setting stays; a new Input starts at false.
Optional. A playbook leaves this Input's blank cells out of needs_input. Left out, the stored setting stays; a new Input starts at false.
Which change against the previous entry a playbook marks. NUMBER, DECIMAL and PERCENTAGE Inputs only. Left out, the stored setting stays; a new Input starts at none.
none, lower, higher, not_higher, not_lower Options to drop.
Response
The Input definition was saved
The input's name.
True when this call created the input.
PERCENTAGE, DECIMAL, NUMBER, TEXT, CHOICE PORTFOLIO, SYMBOL TIME_SERIES, LEVEL_MARKER OVERLAY, STANDALONE, null Keep until changed (ADR-136). See InputDefinition.
Optional (ADR-189). See InputDefinition.
Emphasis (ADR-198). See InputDefinition.
none, lower, higher, not_higher, not_lower The options in display order, after this call.