Report a cell instance as failed, or clear the report
curl --request PATCH \
--url https://api.ionworks.com/cell_instances/{cell_instance_id}/failure \
--header 'Content-Type: application/json' \
--data '
{
"failed": true,
"reason": "<string>"
}
'import requests
url = "https://api.ionworks.com/cell_instances/{cell_instance_id}/failure"
payload = {
"failed": True,
"reason": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({failed: true, reason: '<string>'})
};
fetch('https://api.ionworks.com/cell_instances/{cell_instance_id}/failure', 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.ionworks.com/cell_instances/{cell_instance_id}/failure",
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([
'failed' => true,
'reason' => '<string>'
]),
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://api.ionworks.com/cell_instances/{cell_instance_id}/failure"
payload := strings.NewReader("{\n \"failed\": true,\n \"reason\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.ionworks.com/cell_instances/{cell_instance_id}/failure")
.header("Content-Type", "application/json")
.body("{\n \"failed\": true,\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/cell_instances/{cell_instance_id}/failure")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"failed\": true,\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"cell_instance": {
"name": "<string>",
"id": "<string>",
"cell_specification_id": "<string>",
"organization_id": "<string>",
"project_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"is_failed": false,
"failure_reason": "<string>",
"failed_at": "2023-11-07T05:31:56Z",
"failed_by": "<string>",
"batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"date_manufactured": "2023-12-25",
"measured_properties": {},
"notes": "<string>",
"created_by": "<string>",
"created_by_email": "<string>",
"batch_name": "<string>",
"measurement_ids": [
{}
]
},
"lims": {
"status": "sent",
"value": "<string>",
"message": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Cell Instances
Report a cell instance as failed, or clear the report
Mark a whole cell as failed; every one of its measurements counts as failed.
For an organization linked to Uncountable, the verdict is also written to the
cell’s recipe (“Failed”, or “Passed” when cleared). lims in the response
says whether that write happened; the verdict is saved either way.
Report a cell instance as failed, or clear the report
curl --request PATCH \
--url https://api.ionworks.com/cell_instances/{cell_instance_id}/failure \
--header 'Content-Type: application/json' \
--data '
{
"failed": true,
"reason": "<string>"
}
'import requests
url = "https://api.ionworks.com/cell_instances/{cell_instance_id}/failure"
payload = {
"failed": True,
"reason": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({failed: true, reason: '<string>'})
};
fetch('https://api.ionworks.com/cell_instances/{cell_instance_id}/failure', 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.ionworks.com/cell_instances/{cell_instance_id}/failure",
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([
'failed' => true,
'reason' => '<string>'
]),
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://api.ionworks.com/cell_instances/{cell_instance_id}/failure"
payload := strings.NewReader("{\n \"failed\": true,\n \"reason\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.ionworks.com/cell_instances/{cell_instance_id}/failure")
.header("Content-Type", "application/json")
.body("{\n \"failed\": true,\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/cell_instances/{cell_instance_id}/failure")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"failed\": true,\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"cell_instance": {
"name": "<string>",
"id": "<string>",
"cell_specification_id": "<string>",
"organization_id": "<string>",
"project_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"is_failed": false,
"failure_reason": "<string>",
"failed_at": "2023-11-07T05:31:56Z",
"failed_by": "<string>",
"batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"date_manufactured": "2023-12-25",
"measured_properties": {},
"notes": "<string>",
"created_by": "<string>",
"created_by_email": "<string>",
"batch_name": "<string>",
"measurement_ids": [
{}
]
},
"lims": {
"status": "sent",
"value": "<string>",
"message": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Path Parameters
Body
application/json
Response
Successful Response
Was this page helpful?