curl --request POST \
--url https://api.outerlayer.ai/v1/plan-notes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Outerlayer-App-Id: <api-key>' \
--data '
{
"affects": [
1
],
"differedFromSpec": "<string>",
"mustFollow": "<string>",
"whatChanged": "<string>",
"sessionId": "<string>"
}
'import requests
url = "https://api.outerlayer.ai/v1/plan-notes"
payload = {
"affects": [1],
"differedFromSpec": "<string>",
"mustFollow": "<string>",
"whatChanged": "<string>",
"sessionId": "<string>"
}
headers = {
"X-Outerlayer-App-Id": "<api-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Outerlayer-App-Id': '<api-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
affects: [1],
differedFromSpec: '<string>',
mustFollow: '<string>',
whatChanged: '<string>',
sessionId: '<string>'
})
};
fetch('https://api.outerlayer.ai/v1/plan-notes', 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.outerlayer.ai/v1/plan-notes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'affects' => [
1
],
'differedFromSpec' => '<string>',
'mustFollow' => '<string>',
'whatChanged' => '<string>',
'sessionId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Outerlayer-App-Id: <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://api.outerlayer.ai/v1/plan-notes"
payload := strings.NewReader("{\n \"affects\": [\n 1\n ],\n \"differedFromSpec\": \"<string>\",\n \"mustFollow\": \"<string>\",\n \"whatChanged\": \"<string>\",\n \"sessionId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Outerlayer-App-Id", "<api-key>")
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://api.outerlayer.ai/v1/plan-notes")
.header("X-Outerlayer-App-Id", "<api-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"affects\": [\n 1\n ],\n \"differedFromSpec\": \"<string>\",\n \"mustFollow\": \"<string>\",\n \"whatChanged\": \"<string>\",\n \"sessionId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.outerlayer.ai/v1/plan-notes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Outerlayer-App-Id"] = '<api-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"affects\": [\n 1\n ],\n \"differedFromSpec\": \"<string>\",\n \"mustFollow\": \"<string>\",\n \"whatChanged\": \"<string>\",\n \"sessionId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"replaced": true,
"workItemId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Record a plan note on a child work item
Records what a build of a child item leaves for the other children of its plan: what it changed (whatChanged), what the other children must follow (mustFollow), where it differed from the item’s spec (differedFromSpec) and the numbers of the children it affects (affects, empty when the other children have nothing to follow). The three text parts hold 8,000 characters at most together, and none is empty. Every note is kept with who recorded it and when; the newest note of an item is its current note, and a new note replaces the one before it. The item key of a build’s live claim records on its own item. A member who is logged in and may update work records on any child. A plain API key is refused with 403, even one bound to a member. An item that is not a child of another item is refused with 422. The item is named by item.number, and a request naming none is refused with nothing stored. A plan note is a record for other builds and for people: it is never proof, and recording one does not change the item’s verdict.
curl --request POST \
--url https://api.outerlayer.ai/v1/plan-notes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Outerlayer-App-Id: <api-key>' \
--data '
{
"affects": [
1
],
"differedFromSpec": "<string>",
"mustFollow": "<string>",
"whatChanged": "<string>",
"sessionId": "<string>"
}
'import requests
url = "https://api.outerlayer.ai/v1/plan-notes"
payload = {
"affects": [1],
"differedFromSpec": "<string>",
"mustFollow": "<string>",
"whatChanged": "<string>",
"sessionId": "<string>"
}
headers = {
"X-Outerlayer-App-Id": "<api-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Outerlayer-App-Id': '<api-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
affects: [1],
differedFromSpec: '<string>',
mustFollow: '<string>',
whatChanged: '<string>',
sessionId: '<string>'
})
};
fetch('https://api.outerlayer.ai/v1/plan-notes', 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.outerlayer.ai/v1/plan-notes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'affects' => [
1
],
'differedFromSpec' => '<string>',
'mustFollow' => '<string>',
'whatChanged' => '<string>',
'sessionId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Outerlayer-App-Id: <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://api.outerlayer.ai/v1/plan-notes"
payload := strings.NewReader("{\n \"affects\": [\n 1\n ],\n \"differedFromSpec\": \"<string>\",\n \"mustFollow\": \"<string>\",\n \"whatChanged\": \"<string>\",\n \"sessionId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Outerlayer-App-Id", "<api-key>")
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://api.outerlayer.ai/v1/plan-notes")
.header("X-Outerlayer-App-Id", "<api-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"affects\": [\n 1\n ],\n \"differedFromSpec\": \"<string>\",\n \"mustFollow\": \"<string>\",\n \"whatChanged\": \"<string>\",\n \"sessionId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.outerlayer.ai/v1/plan-notes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Outerlayer-App-Id"] = '<api-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"affects\": [\n 1\n ],\n \"differedFromSpec\": \"<string>\",\n \"mustFollow\": \"<string>\",\n \"whatChanged\": \"<string>\",\n \"sessionId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"replaced": true,
"workItemId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}