{"api":"splicedeck","version":"1","operations":[{"name":"capabilities","method":"GET","path":"/capabilities","summary":"This document: entities, operations, fields, pagination, rate limits, errors.","auth":"none","paginated":false}],"entities":{"project":{"description":"A project: the billing entity. Billed per calendar month in which it was active.","fields":{"id":{"type":"integer","read_only":true},"code":{"type":"string","min":1,"max":64,"writable_on":["create"],"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$"},"name":{"type":"string","min":1,"max":200,"writable_on":["create","update"]},"status":{"type":"enum","values":["active","archived","closed"],"read_only":true,"note":"changed with set_status"},"created_at":{"type":"datetime","read_only":true}},"operations":[{"name":"list","method":"GET","path":"/v1/projects","summary":"Projects in the workspace, oldest first.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"status":{"type":"enum","values":["active","archived","closed"]}},"paginated":true},{"name":"create","method":"POST","path":"/v1/projects","summary":"Create a project. It starts active, and is billable from this month.","auth":{"session_min_role":"admin","token_access":"read_write"},"body":{"code":{"type":"string","min":1,"max":64,"writable_on":["create"],"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","required":false},"name":{"type":"string","min":1,"max":200,"writable_on":["create","update"],"required":true}},"paginated":false},{"name":"get","method":"GET","path":"/v1/projects/{id}","summary":"One project.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"update","method":"PATCH","path":"/v1/projects/{id}","summary":"Rename a project. Refused with PROJECT_NOT_ACTIVE unless the project is active.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"name":{"type":"string","min":1,"max":200,"writable_on":["create","update"],"required":false}},"paginated":false},{"name":"set_status","method":"POST","path":"/v1/projects/{id}/status","summary":"Change a project's status: active <-> archived, either -> closed. Closed is final. Setting the current status changes nothing.","auth":{"session_min_role":"admin","token_access":"read_write"},"body":{"status":{"type":"enum","values":["active","archived","closed"],"required":true}},"paginated":false}]},"billing_usage":{"description":"Billable projects for one calendar month (UTC).","fields":{"month":{"type":"string","read_only":true,"format":"YYYY-MM"},"billable_project_count":{"type":"integer","read_only":true},"projects":{"type":"array","read_only":true,"items":"{ id, code, name, current_status, basis }"}},"operations":[{"name":"get","method":"GET","path":"/v1/billing/usage","summary":"Billable projects for a month. A project is billable for each UTC calendar month in which it was active at any moment.","auth":{"session_min_role":"admin","token_access":null},"query":{"month":{"type":"string","format":"YYYY-MM","note":"required"}},"paginated":false}]},"api_token":{"description":"A per-tenant API token. The secret is returned once, by create, and is never retrievable again.","fields":{"id":{"type":"integer","read_only":true},"name":{"type":"string","min":1,"max":100,"writable_on":["create"]},"access":{"type":"enum","values":["read","read_write"],"writable_on":["create"]},"token_prefix":{"type":"string","read_only":true},"created_by":{"type":"integer","read_only":true},"created_at":{"type":"datetime","read_only":true},"expires_at":{"type":"datetime","nullable":true,"writable_on":["create"]},"last_used_at":{"type":"datetime","nullable":true,"read_only":true,"note":"updated at most once a minute"},"revoked_at":{"type":"datetime","nullable":true,"read_only":true}},"operations":[{"name":"list","method":"GET","path":"/v1/api-tokens","summary":"API tokens of the workspace, including revoked ones. Never their secrets.","auth":{"session_min_role":"admin","token_access":null},"paginated":true},{"name":"create","method":"POST","path":"/v1/api-tokens","summary":"Create a token. The response carries \"secret\" once; store it, it cannot be shown again.","auth":{"session_min_role":"admin","token_access":null},"body":{"name":{"type":"string","min":1,"max":100,"writable_on":["create"],"required":true},"access":{"type":"enum","values":["read","read_write"],"writable_on":["create"],"required":true},"expires_at":{"type":"datetime","nullable":true,"writable_on":["create"],"required":false}},"paginated":false},{"name":"revoke","method":"DELETE","path":"/v1/api-tokens/{id}","summary":"Revoke a token. It stops working at once; the record stays for audit. Revoking twice is refused with TOKEN_ALREADY_REVOKED.","auth":{"session_min_role":"admin","token_access":null},"paginated":false}]},"ai_settings":{"description":"The workspace's own AI provider and key (bring your own). The key is write-only: it is never returned.","fields":{"configured":{"type":"boolean","read_only":true},"provider":{"type":"enum","values":["anthropic","openai","azure_openai","openai_compatible"],"writable_on":["replace"]},"model":{"type":"string","min":1,"max":100,"nullable":true,"writable_on":["replace"]},"base_url":{"type":"string","min":8,"max":500,"nullable":true,"writable_on":["replace"],"note":"required for azure_openai and openai_compatible","pattern":"^https:\\/\\/[^\\s]+$"},"api_key":{"type":"string","min":8,"max":1000,"write_only":true,"writable_on":["replace"]},"key_last4":{"type":"string","nullable":true,"read_only":true},"updated_by":{"type":"integer","nullable":true,"read_only":true},"updated_at":{"type":"datetime","nullable":true,"read_only":true}},"operations":[{"name":"get","method":"GET","path":"/v1/settings/ai","summary":"The AI provider settings. The key is never returned; key_last4 identifies it.","auth":{"session_min_role":"admin","token_access":null},"paginated":false},{"name":"replace","method":"PUT","path":"/v1/settings/ai","summary":"Set the AI provider and key (replaces any previous settings).","auth":{"session_min_role":"admin","token_access":null},"body":{"provider":{"type":"enum","values":["anthropic","openai","azure_openai","openai_compatible"],"writable_on":["replace"],"required":true},"model":{"type":"string","min":1,"max":100,"nullable":true,"writable_on":["replace"],"required":false},"base_url":{"type":"string","min":8,"max":500,"nullable":true,"writable_on":["replace"],"note":"required for azure_openai and openai_compatible","pattern":"^https:\\/\\/[^\\s]+$","required":false},"api_key":{"type":"string","min":8,"max":1000,"write_only":true,"writable_on":["replace"],"required":true}},"paginated":false},{"name":"delete","method":"DELETE","path":"/v1/settings/ai","summary":"Remove the AI settings and the stored key.","auth":{"session_min_role":"admin","token_access":null},"paginated":false}]},"me":{"description":"Who the caller is, and in which workspace.","fields":{"kind":{"type":"enum","values":["session","token"],"read_only":true},"tenant":{"type":"object","read_only":true,"items":"{ id, slug, name }"},"user":{"type":"object","nullable":true,"read_only":true,"items":"{ id, email, display_name, role }"},"token":{"type":"object","nullable":true,"read_only":true,"items":"{ id, name, access }"}},"operations":[{"name":"get","method":"GET","path":"/v1/me","summary":"The caller and its workspace.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"change_password","method":"POST","path":"/v1/me/password","summary":"Change your own password. Needs the current one; ends your other sessions (this one stays signed in).","auth":{"session_min_role":"viewer","token_access":null},"body":{"current_password":{"type":"string","min":1,"max":200,"required":true},"new_password":{"type":"string","min":12,"max":200,"required":true}},"paginated":false}]},"session":{"description":"A browser session, carried only in the HttpOnly sd_session cookie.","fields":{"email":{"type":"string","min":3,"max":254,"write_only":true,"writable_on":["login","signup"],"pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"password":{"type":"string","min":12,"max":200,"write_only":true,"writable_on":["login","signup"]},"tenant":{"type":"string","min":1,"max":64,"write_only":true,"writable_on":["login"],"note":"workspace slug; needed only if the user belongs to several"},"company_name":{"type":"string","min":1,"max":200,"write_only":true,"writable_on":["signup"]},"slug":{"type":"string","min":2,"max":64,"write_only":true,"writable_on":["signup"],"pattern":"^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"display_name":{"type":"string","min":1,"max":200,"write_only":true,"writable_on":["signup"]},"expires_at":{"type":"datetime","read_only":true}},"operations":[{"name":"signup","method":"POST","path":"/v1/auth/signup","summary":"Create a workspace and its owner, and sign in. Refused with SIGNUP_CLOSED unless the server allows sign-ups.","auth":"none","body":{"email":{"type":"string","min":3,"max":254,"write_only":true,"writable_on":["login","signup"],"pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$","required":true},"password":{"type":"string","min":12,"max":200,"write_only":true,"writable_on":["login","signup"],"required":true},"company_name":{"type":"string","min":1,"max":200,"write_only":true,"writable_on":["signup"],"required":true},"slug":{"type":"string","min":2,"max":64,"write_only":true,"writable_on":["signup"],"pattern":"^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$","required":true},"display_name":{"type":"string","min":1,"max":200,"write_only":true,"writable_on":["signup"],"required":true}},"paginated":false},{"name":"login","method":"POST","path":"/v1/auth/login","summary":"Sign in with e-mail and password; sets the sd_session cookie.","auth":"none","body":{"email":{"type":"string","min":3,"max":254,"write_only":true,"writable_on":["login","signup"],"pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$","required":true},"password":{"type":"string","min":12,"max":200,"write_only":true,"writable_on":["login","signup"],"required":true},"tenant":{"type":"string","min":1,"max":64,"write_only":true,"writable_on":["login"],"note":"workspace slug; needed only if the user belongs to several","required":false}},"paginated":false},{"name":"logout","method":"POST","path":"/v1/auth/logout","summary":"End the current session.","auth":{"session_min_role":"viewer","token_access":null},"paginated":false}]},"cable_type":{"description":"A cable type in the workspace catalogue: medium, strand count, tube/binder size, outer diameter (for fill).","fields":{"id":{"type":"integer","read_only":true},"code":{"type":"string","min":1,"max":64,"writable_on":["create","update"]},"family_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"cable_family library entry"},"description":{"type":"string","min":1,"max":200,"writable_on":["create","update"]},"medium":{"type":"enum","values":["fibre","copper"],"writable_on":["create"]},"fibre_category":{"type":"string","min":1,"max":16,"nullable":true,"writable_on":["create","update"],"note":"e.g. OS2, OM4; null for copper"},"strand_count":{"type":"integer","min":1,"max":1728,"writable_on":["create"],"note":"cores or pairs"},"strands_per_group":{"type":"integer","min":1,"max":288,"writable_on":["create"],"note":"cores per tube, pairs per binder"},"outer_diameter_mm":{"type":"number","min":0.1,"max":200,"writable_on":["create","update"]}},"operations":[{"name":"list","method":"GET","path":"/v1/cable-types","summary":"List cable types, oldest first.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{},"paginated":true},{"name":"create","method":"POST","path":"/v1/cable-types","summary":"Create a cable type.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"code":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"required":true},"family_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"cable_family library entry","required":false},"description":{"type":"string","min":1,"max":200,"writable_on":["create","update"],"required":true},"medium":{"type":"enum","values":["fibre","copper"],"writable_on":["create"],"required":true},"fibre_category":{"type":"string","min":1,"max":16,"nullable":true,"writable_on":["create","update"],"note":"e.g. OS2, OM4; null for copper","required":false},"strand_count":{"type":"integer","min":1,"max":1728,"writable_on":["create"],"note":"cores or pairs","required":true},"strands_per_group":{"type":"integer","min":1,"max":288,"writable_on":["create"],"note":"cores per tube, pairs per binder","required":true},"outer_diameter_mm":{"type":"number","min":0.1,"max":200,"writable_on":["create","update"],"required":true}},"paginated":false},{"name":"get","method":"GET","path":"/v1/cable-types/{id}","summary":"One cable type.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"update","method":"PATCH","path":"/v1/cable-types/{id}","summary":"Change a cable type. Only the fields sent change.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"code":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"required":false},"family_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"cable_family library entry","required":false},"description":{"type":"string","min":1,"max":200,"writable_on":["create","update"],"required":false},"fibre_category":{"type":"string","min":1,"max":16,"nullable":true,"writable_on":["create","update"],"note":"e.g. OS2, OM4; null for copper","required":false},"outer_diameter_mm":{"type":"number","min":0.1,"max":200,"writable_on":["create","update"],"required":false}},"paginated":false},{"name":"delete","method":"DELETE","path":"/v1/cable-types/{id}","summary":"Delete a cable type.","auth":{"session_min_role":"editor","token_access":"read_write"},"paginated":false}]},"node":{"description":"A pathway node: manhole, chamber, handhole, room, riser, cabinet or pole.","fields":{"id":{"type":"integer","read_only":true},"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$"},"type_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"node_type library entry; sets kind"},"kind":{"type":"enum","values":["manhole","chamber","handhole","room","riser","cabinet","pole","other"],"writable_on":["create","update"],"note":"required unless type_id is given"},"description":{"type":"string","min":1,"max":200,"nullable":true,"writable_on":["create","update"]},"map_x":{"type":"number","min":-1000000,"max":1000000,"nullable":true,"writable_on":["create","update"],"note":"position on the pathway map (drawing units)"},"map_y":{"type":"number","min":-1000000,"max":1000000,"nullable":true,"writable_on":["create","update"]}},"operations":[{"name":"list","method":"GET","path":"/v1/projects/{pid}/nodes","summary":"List nodes, oldest first.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"kind":{"type":"enum","values":["manhole","chamber","handhole","room","riser","cabinet","pole","other"]}},"paginated":true},{"name":"create","method":"POST","path":"/v1/projects/{pid}/nodes","summary":"Create a node.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$","required":false},"type_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"node_type library entry; sets kind","required":false},"kind":{"type":"enum","values":["manhole","chamber","handhole","room","riser","cabinet","pole","other"],"writable_on":["create","update"],"note":"required unless type_id is given","required":false},"description":{"type":"string","min":1,"max":200,"nullable":true,"writable_on":["create","update"],"required":false},"map_x":{"type":"number","min":-1000000,"max":1000000,"nullable":true,"writable_on":["create","update"],"note":"position on the pathway map (drawing units)","required":false},"map_y":{"type":"number","min":-1000000,"max":1000000,"nullable":true,"writable_on":["create","update"],"required":false}},"paginated":false},{"name":"get","method":"GET","path":"/v1/projects/{pid}/nodes/{id}","summary":"One node.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"update","method":"PATCH","path":"/v1/projects/{pid}/nodes/{id}","summary":"Change a node. Only the fields sent change.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$","required":false},"type_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"node_type library entry; sets kind","required":false},"kind":{"type":"enum","values":["manhole","chamber","handhole","room","riser","cabinet","pole","other"],"writable_on":["create","update"],"note":"required unless type_id is given","required":false},"description":{"type":"string","min":1,"max":200,"nullable":true,"writable_on":["create","update"],"required":false},"map_x":{"type":"number","min":-1000000,"max":1000000,"nullable":true,"writable_on":["create","update"],"note":"position on the pathway map (drawing units)","required":false},"map_y":{"type":"number","min":-1000000,"max":1000000,"nullable":true,"writable_on":["create","update"],"required":false}},"paginated":false},{"name":"delete","method":"DELETE","path":"/v1/projects/{pid}/nodes/{id}","summary":"Delete a node.","auth":{"session_min_role":"editor","token_access":"read_write"},"paginated":false}]},"segment":{"description":"A pathway segment (transit) between two nodes: duct, subduct, conduit, tray, ladder or direct-buried run.","fields":{"id":{"type":"integer","read_only":true},"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$"},"type_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"segment_type library entry; sets kind and fills dimensions not given"},"kind":{"type":"enum","values":["duct","subduct","conduit","tray","ladder","direct_buried"],"writable_on":["create"],"note":"required unless type_id is given"},"from_node_id":{"type":"id","writable_on":["create"]},"to_node_id":{"type":"id","writable_on":["create"]},"parent_segment_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"the duct a subduct sits in"},"length_m":{"type":"number","min":0,"max":1000000,"nullable":true,"writable_on":["create","update"]},"inner_diameter_mm":{"type":"number","min":1,"max":2000,"nullable":true,"writable_on":["create","update"],"note":"required for duct, subduct, conduit"},"outer_diameter_mm":{"type":"number","min":1,"max":2000,"nullable":true,"writable_on":["create","update"],"note":"required for a subduct (its footprint in the parent)"},"width_mm":{"type":"number","min":1,"max":5000,"nullable":true,"writable_on":["create","update"],"note":"required for tray, ladder"},"depth_mm":{"type":"number","min":1,"max":5000,"nullable":true,"writable_on":["create","update"],"note":"required for tray, ladder"},"max_fill_ratio":{"type":"number","min":0.01,"max":1,"writable_on":["create","update"],"note":"default 0.40"}},"operations":[{"name":"list","method":"GET","path":"/v1/projects/{pid}/segments","summary":"List segments, oldest first.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"kind":{"type":"enum","values":["duct","subduct","conduit","tray","ladder","direct_buried"]}},"paginated":true},{"name":"create","method":"POST","path":"/v1/projects/{pid}/segments","summary":"Create a segment.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$","required":false},"type_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"segment_type library entry; sets kind and fills dimensions not given","required":false},"kind":{"type":"enum","values":["duct","subduct","conduit","tray","ladder","direct_buried"],"writable_on":["create"],"note":"required unless type_id is given","required":false},"from_node_id":{"type":"id","writable_on":["create"],"required":true},"to_node_id":{"type":"id","writable_on":["create"],"required":true},"parent_segment_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"the duct a subduct sits in","required":false},"length_m":{"type":"number","min":0,"max":1000000,"nullable":true,"writable_on":["create","update"],"required":false},"inner_diameter_mm":{"type":"number","min":1,"max":2000,"nullable":true,"writable_on":["create","update"],"note":"required for duct, subduct, conduit","required":false},"outer_diameter_mm":{"type":"number","min":1,"max":2000,"nullable":true,"writable_on":["create","update"],"note":"required for a subduct (its footprint in the parent)","required":false},"width_mm":{"type":"number","min":1,"max":5000,"nullable":true,"writable_on":["create","update"],"note":"required for tray, ladder","required":false},"depth_mm":{"type":"number","min":1,"max":5000,"nullable":true,"writable_on":["create","update"],"note":"required for tray, ladder","required":false},"max_fill_ratio":{"type":"number","min":0.01,"max":1,"writable_on":["create","update"],"note":"default 0.40","required":false}},"paginated":false},{"name":"get","method":"GET","path":"/v1/projects/{pid}/segments/{id}","summary":"One segment.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"update","method":"PATCH","path":"/v1/projects/{pid}/segments/{id}","summary":"Change a segment. Only the fields sent change.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$","required":false},"type_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"segment_type library entry; sets kind and fills dimensions not given","required":false},"parent_segment_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"the duct a subduct sits in","required":false},"length_m":{"type":"number","min":0,"max":1000000,"nullable":true,"writable_on":["create","update"],"required":false},"inner_diameter_mm":{"type":"number","min":1,"max":2000,"nullable":true,"writable_on":["create","update"],"note":"required for duct, subduct, conduit","required":false},"outer_diameter_mm":{"type":"number","min":1,"max":2000,"nullable":true,"writable_on":["create","update"],"note":"required for a subduct (its footprint in the parent)","required":false},"width_mm":{"type":"number","min":1,"max":5000,"nullable":true,"writable_on":["create","update"],"note":"required for tray, ladder","required":false},"depth_mm":{"type":"number","min":1,"max":5000,"nullable":true,"writable_on":["create","update"],"note":"required for tray, ladder","required":false},"max_fill_ratio":{"type":"number","min":0.01,"max":1,"writable_on":["create","update"],"note":"default 0.40","required":false}},"paginated":false},{"name":"delete","method":"DELETE","path":"/v1/projects/{pid}/segments/{id}","summary":"Delete a segment.","auth":{"session_min_role":"editor","token_access":"read_write"},"paginated":false}]},"circuit":{"description":"What a path carries. Circuits sharing a diversity_group must not share a chamber.","fields":{"id":{"type":"integer","read_only":true},"ref":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$"},"service_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"circuit_service library entry"},"description":{"type":"string","min":1,"max":200,"nullable":true,"writable_on":["create","update"]},"diversity_group":{"type":"string","min":1,"max":64,"nullable":true,"writable_on":["create","update"]}},"operations":[{"name":"list","method":"GET","path":"/v1/projects/{pid}/circuits","summary":"List circuits, oldest first.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"diversity_group":{"type":"string"}},"paginated":true},{"name":"create","method":"POST","path":"/v1/projects/{pid}/circuits","summary":"Create a circuit.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"ref":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$","required":false},"service_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"circuit_service library entry","required":false},"description":{"type":"string","min":1,"max":200,"nullable":true,"writable_on":["create","update"],"required":false},"diversity_group":{"type":"string","min":1,"max":64,"nullable":true,"writable_on":["create","update"],"required":false}},"paginated":false},{"name":"get","method":"GET","path":"/v1/projects/{pid}/circuits/{id}","summary":"One circuit.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"update","method":"PATCH","path":"/v1/projects/{pid}/circuits/{id}","summary":"Change a circuit. Only the fields sent change.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"ref":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$","required":false},"service_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"circuit_service library entry","required":false},"description":{"type":"string","min":1,"max":200,"nullable":true,"writable_on":["create","update"],"required":false},"diversity_group":{"type":"string","min":1,"max":64,"nullable":true,"writable_on":["create","update"],"required":false}},"paginated":false},{"name":"delete","method":"DELETE","path":"/v1/projects/{pid}/circuits/{id}","summary":"Delete a circuit.","auth":{"session_min_role":"editor","token_access":"read_write"},"paginated":false}]},"cable":{"description":"A cable or patch cord. Creating one creates all its cores or pairs, numbered and coloured from its cable type.","fields":{"id":{"type":"integer","read_only":true},"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$"},"cable_type_id":{"type":"id","writable_on":["create"]},"kind":{"type":"enum","values":["cable","patch_cord"],"writable_on":["create"]},"a_node_id":{"type":"id","nullable":true,"writable_on":["create","update"]},"b_node_id":{"type":"id","nullable":true,"writable_on":["create","update"]},"design_length_m":{"type":"number","min":0,"max":1000000,"nullable":true,"writable_on":["create","update"],"note":"span length for the loss budget"},"as_built_length_m":{"type":"number","min":0,"max":1000000,"nullable":true,"writable_on":["create","update"],"note":"from sheath markings"},"layer":{"type":"enum","values":["design","as_built","both"],"writable_on":["create","update"],"note":"design (default), as_built, or both (installed as designed)"}},"operations":[{"name":"list","method":"GET","path":"/v1/projects/{pid}/cables","summary":"List cables, oldest first.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"kind":{"type":"enum","values":["cable","patch_cord"]}},"paginated":true},{"name":"create","method":"POST","path":"/v1/projects/{pid}/cables","summary":"Create a cable.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$","required":false},"cable_type_id":{"type":"id","writable_on":["create"],"required":true},"kind":{"type":"enum","values":["cable","patch_cord"],"writable_on":["create"],"required":false},"a_node_id":{"type":"id","nullable":true,"writable_on":["create","update"],"required":false},"b_node_id":{"type":"id","nullable":true,"writable_on":["create","update"],"required":false},"design_length_m":{"type":"number","min":0,"max":1000000,"nullable":true,"writable_on":["create","update"],"note":"span length for the loss budget","required":false},"as_built_length_m":{"type":"number","min":0,"max":1000000,"nullable":true,"writable_on":["create","update"],"note":"from sheath markings","required":false},"layer":{"type":"enum","values":["design","as_built","both"],"writable_on":["create","update"],"note":"design (default), as_built, or both (installed as designed)","required":false}},"paginated":false},{"name":"get","method":"GET","path":"/v1/projects/{pid}/cables/{id}","summary":"One cable.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"update","method":"PATCH","path":"/v1/projects/{pid}/cables/{id}","summary":"Change a cable. Only the fields sent change.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$","required":false},"a_node_id":{"type":"id","nullable":true,"writable_on":["create","update"],"required":false},"b_node_id":{"type":"id","nullable":true,"writable_on":["create","update"],"required":false},"design_length_m":{"type":"number","min":0,"max":1000000,"nullable":true,"writable_on":["create","update"],"note":"span length for the loss budget","required":false},"as_built_length_m":{"type":"number","min":0,"max":1000000,"nullable":true,"writable_on":["create","update"],"note":"from sheath markings","required":false},"layer":{"type":"enum","values":["design","as_built","both"],"writable_on":["create","update"],"note":"design (default), as_built, or both (installed as designed)","required":false}},"paginated":false},{"name":"delete","method":"DELETE","path":"/v1/projects/{pid}/cables/{id}","summary":"Delete a cable.","auth":{"session_min_role":"editor","token_access":"read_write"},"paginated":false}]},"project_summary":{"description":"Counts for one project. *_installed counts are the design records also in the as-built layer.","fields":{"nodes":{"type":"number","read_only":true},"chambers":{"type":"number","read_only":true},"segments":{"type":"number","read_only":true},"segment_m":{"type":"number","read_only":true},"cables":{"type":"number","read_only":true},"cables_installed":{"type":"number","read_only":true},"patch_cords":{"type":"number","read_only":true},"cable_m":{"type":"number","read_only":true},"strands":{"type":"number","read_only":true},"strands_allocated":{"type":"number","read_only":true},"closures":{"type":"number","read_only":true},"splices":{"type":"number","read_only":true},"splices_installed":{"type":"number","read_only":true},"panels":{"type":"number","read_only":true},"ports":{"type":"number","read_only":true},"terminations":{"type":"number","read_only":true},"terminations_installed":{"type":"number","read_only":true},"circuits":{"type":"number","read_only":true}},"operations":[{"name":"get","method":"GET","path":"/v1/projects/{pid}/summary","summary":"Counts for the project at a glance: nodes, chambers, ducts, cables, cores, closures, splices, panels, ports, terminations, circuits; and how much of the design is installed.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false}]},"next_tag":{"description":"The next tag from the workspace tagging rules (library tag_rule). Records created without a tag get it; a tag given is used as given.","fields":{"entity":{"type":"string","read_only":true},"tag":{"type":"string","nullable":true,"read_only":true},"rule":{"type":"object","nullable":true,"read_only":true,"items":"{ id, code, name, pattern }"}},"operations":[{"name":"get","method":"GET","path":"/v1/projects/{pid}/next-tag","summary":"The tag a new record would get from the workspace's tagging rules if created now without one. Give what the record will have (type, kind, nodes) for the rule to match and fill in.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"entity":{"type":"enum","values":["node","segment","cable","closure","panel","circuit"],"note":"required"},"type_id":{"type":"id"},"kind":{"type":"string","max":32},"medium":{"type":"enum","values":["fibre","copper"]},"from_node_id":{"type":"id"},"to_node_id":{"type":"id"},"node_id":{"type":"id"},"cable_type_id":{"type":"id"},"service_id":{"type":"id"},"a_node_id":{"type":"id"},"b_node_id":{"type":"id"}},"paginated":false}]},"strand":{"description":"A fibre core or copper pair. Identity is number + colour code + colour name; colour is never the only identifier.","fields":{"id":{"type":"integer","read_only":true},"cable_id":{"type":"integer","read_only":true},"cable_tag":{"type":"string","read_only":true},"number":{"type":"integer","read_only":true},"group_number":{"type":"integer","read_only":true,"note":"tube or binder"},"colour":{"type":"object","read_only":true,"items":"{ code, name }"},"group_colour":{"type":"object","read_only":true,"items":"{ code, name }"},"circuit_id":{"type":"id","nullable":true,"writable_on":["update"]},"circuit_ref":{"type":"string","nullable":true,"read_only":true},"connections":{"type":"array","read_only":true,"note":"on get only: what each end is spliced or terminated to, per layer"}},"operations":[{"name":"list","method":"GET","path":"/v1/projects/{pid}/cables/{id}/strands","summary":"The cores or pairs of a cable, in number order, with their colour codes and names.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":true},{"name":"get","method":"GET","path":"/v1/projects/{pid}/strands/{id}","summary":"One core or pair, with what each of its ends is connected to.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"update","method":"PATCH","path":"/v1/projects/{pid}/strands/{id}","summary":"Allocate a core or pair to a circuit (or null to free it).","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"circuit_id":{"type":"id","nullable":true,"writable_on":["update"],"required":false}},"paginated":false}]},"closure":{"description":"A splice closure (joint), optionally in a chamber.","fields":{"id":{"type":"integer","read_only":true},"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$"},"type_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"closure_type library entry; fills tray_count"},"node_id":{"type":"id","nullable":true,"writable_on":["create","update"]},"tray_count":{"type":"integer","min":1,"max":1000,"nullable":true,"writable_on":["create","update"]}},"operations":[{"name":"list","method":"GET","path":"/v1/projects/{pid}/closures","summary":"List closures, oldest first.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{},"paginated":true},{"name":"create","method":"POST","path":"/v1/projects/{pid}/closures","summary":"Create a closure.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$","required":false},"type_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"closure_type library entry; fills tray_count","required":false},"node_id":{"type":"id","nullable":true,"writable_on":["create","update"],"required":false},"tray_count":{"type":"integer","min":1,"max":1000,"nullable":true,"writable_on":["create","update"],"required":false}},"paginated":false},{"name":"get","method":"GET","path":"/v1/projects/{pid}/closures/{id}","summary":"One closure.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"update","method":"PATCH","path":"/v1/projects/{pid}/closures/{id}","summary":"Change a closure. Only the fields sent change.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$","required":false},"type_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"closure_type library entry; fills tray_count","required":false},"node_id":{"type":"id","nullable":true,"writable_on":["create","update"],"required":false},"tray_count":{"type":"integer","min":1,"max":1000,"nullable":true,"writable_on":["create","update"],"required":false}},"paginated":false},{"name":"delete","method":"DELETE","path":"/v1/projects/{pid}/closures/{id}","summary":"Delete a closure.","auth":{"session_min_role":"editor","token_access":"read_write"},"paginated":false}]},"splice":{"description":"A splice joining one end of one core/pair to one end of another, in a closure.","fields":{"id":{"type":"integer","read_only":true},"closure_id":{"type":"id","writable_on":["create"]},"tray_number":{"type":"integer","min":1,"max":1000,"nullable":true,"writable_on":["create","update"]},"position":{"type":"integer","min":1,"max":10000,"nullable":true,"writable_on":["create","update"]},"method":{"type":"enum","values":["fusion","mechanical","punch_down","joint"],"writable_on":["create","update"]},"a_strand_id":{"type":"id","write_only":true,"writable_on":["create"]},"a_end":{"type":"enum","values":["A","B"],"write_only":true,"writable_on":["create"]},"b_strand_id":{"type":"id","write_only":true,"writable_on":["create"]},"b_end":{"type":"enum","values":["A","B"],"write_only":true,"writable_on":["create"]},"layer":{"type":"enum","values":["design","as_built","both"],"writable_on":["create"],"note":"design (default), as_built, or both (installed as designed)"},"sides":{"type":"array","read_only":true,"items":"{ connection_id, side, strand_id, cable_tag, number, colour, end, layer }"}},"operations":[{"name":"list","method":"GET","path":"/v1/projects/{pid}/splices","summary":"List splices, oldest first.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"closure_id":{"type":"id"}},"paginated":true},{"name":"create","method":"POST","path":"/v1/projects/{pid}/splices","summary":"Create a splice.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"closure_id":{"type":"id","writable_on":["create"],"required":true},"tray_number":{"type":"integer","min":1,"max":1000,"nullable":true,"writable_on":["create","update"],"required":false},"position":{"type":"integer","min":1,"max":10000,"nullable":true,"writable_on":["create","update"],"required":false},"method":{"type":"enum","values":["fusion","mechanical","punch_down","joint"],"writable_on":["create","update"],"required":false},"a_strand_id":{"type":"id","write_only":true,"writable_on":["create"],"required":true},"a_end":{"type":"enum","values":["A","B"],"write_only":true,"writable_on":["create"],"required":true},"b_strand_id":{"type":"id","write_only":true,"writable_on":["create"],"required":true},"b_end":{"type":"enum","values":["A","B"],"write_only":true,"writable_on":["create"],"required":true},"layer":{"type":"enum","values":["design","as_built","both"],"writable_on":["create"],"note":"design (default), as_built, or both (installed as designed)","required":false}},"paginated":false},{"name":"get","method":"GET","path":"/v1/projects/{pid}/splices/{id}","summary":"One splice.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"update","method":"PATCH","path":"/v1/projects/{pid}/splices/{id}","summary":"Change a splice. Only the fields sent change.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"tray_number":{"type":"integer","min":1,"max":1000,"nullable":true,"writable_on":["create","update"],"required":false},"position":{"type":"integer","min":1,"max":10000,"nullable":true,"writable_on":["create","update"],"required":false},"method":{"type":"enum","values":["fusion","mechanical","punch_down","joint"],"writable_on":["create","update"],"required":false}},"paginated":false},{"name":"delete","method":"DELETE","path":"/v1/projects/{pid}/splices/{id}","summary":"Delete a splice.","auth":{"session_min_role":"editor","token_access":"read_write"},"paginated":false},{"name":"set_installed","method":"POST","path":"/v1/projects/{pid}/splices/{id}/installed","summary":"Record whether a splice is installed (as built). Un-installing a splice that exists only as built is refused (NOT_IN_DESIGN).","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"installed":{"type":"boolean","required":true}},"paginated":false}]},"panel":{"description":"A patch panel. Creating one creates its ports.","fields":{"id":{"type":"integer","read_only":true},"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$"},"type_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"panel_type library entry; sets medium and fills port_count and connector"},"medium":{"type":"enum","values":["fibre","copper"],"writable_on":["create"],"note":"required unless type_id is given"},"node_id":{"type":"id","nullable":true,"writable_on":["create","update"]},"rack":{"type":"string","min":1,"max":64,"nullable":true,"writable_on":["create","update"]},"u_position":{"type":"integer","min":1,"max":100,"nullable":true,"writable_on":["create","update"]},"port_count":{"type":"integer","min":1,"max":576,"writable_on":["create"],"note":"required unless type_id is given"},"connector_type":{"type":"string","min":1,"max":16,"write_only":true,"writable_on":["create"],"note":"for all ports; default LC (fibre) or RJ45 (copper)"}},"operations":[{"name":"list","method":"GET","path":"/v1/projects/{pid}/panels","summary":"List panels, oldest first.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{},"paginated":true},{"name":"create","method":"POST","path":"/v1/projects/{pid}/panels","summary":"Create a panel.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$","required":false},"type_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"panel_type library entry; sets medium and fills port_count and connector","required":false},"medium":{"type":"enum","values":["fibre","copper"],"writable_on":["create"],"note":"required unless type_id is given","required":false},"node_id":{"type":"id","nullable":true,"writable_on":["create","update"],"required":false},"rack":{"type":"string","min":1,"max":64,"nullable":true,"writable_on":["create","update"],"required":false},"u_position":{"type":"integer","min":1,"max":100,"nullable":true,"writable_on":["create","update"],"required":false},"port_count":{"type":"integer","min":1,"max":576,"writable_on":["create"],"note":"required unless type_id is given","required":false},"connector_type":{"type":"string","min":1,"max":16,"write_only":true,"writable_on":["create"],"note":"for all ports; default LC (fibre) or RJ45 (copper)","required":false}},"paginated":false},{"name":"get","method":"GET","path":"/v1/projects/{pid}/panels/{id}","summary":"One panel.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"update","method":"PATCH","path":"/v1/projects/{pid}/panels/{id}","summary":"Change a panel. Only the fields sent change.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"tag":{"type":"string","min":1,"max":64,"writable_on":["create","update"],"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._/#-]*$","required":false},"type_id":{"type":"id","nullable":true,"writable_on":["create","update"],"note":"panel_type library entry; sets medium and fills port_count and connector","required":false},"node_id":{"type":"id","nullable":true,"writable_on":["create","update"],"required":false},"rack":{"type":"string","min":1,"max":64,"nullable":true,"writable_on":["create","update"],"required":false},"u_position":{"type":"integer","min":1,"max":100,"nullable":true,"writable_on":["create","update"],"required":false}},"paginated":false},{"name":"delete","method":"DELETE","path":"/v1/projects/{pid}/panels/{id}","summary":"Delete a panel.","auth":{"session_min_role":"editor","token_access":"read_write"},"paginated":false}]},"port":{"description":"A panel port with a rear face (installed cable) and a front face (patch cord or equipment).","fields":{"id":{"type":"integer","read_only":true},"panel_id":{"type":"integer","read_only":true},"number":{"type":"integer","read_only":true},"label":{"type":"string","min":1,"max":64,"nullable":true,"writable_on":["update"]},"connector_type":{"type":"string","min":1,"max":16,"writable_on":["update"]}},"operations":[{"name":"list","method":"GET","path":"/v1/projects/{pid}/panels/{id}/ports","summary":"A panel's ports in number order.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":true},{"name":"list","method":"GET","path":"/v1/projects/{pid}/ports","summary":"List ports, oldest first.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"panel_id":{"type":"id"}},"paginated":true},{"name":"get","method":"GET","path":"/v1/projects/{pid}/ports/{id}","summary":"One port.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"update","method":"PATCH","path":"/v1/projects/{pid}/ports/{id}","summary":"Change a port. Only the fields sent change.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"label":{"type":"string","min":1,"max":64,"nullable":true,"writable_on":["update"],"required":false},"connector_type":{"type":"string","min":1,"max":16,"writable_on":["update"],"required":false}},"paginated":false}]},"termination":{"description":"One end of a core/pair terminated on a port face.","fields":{"id":{"type":"integer","read_only":true},"strand_id":{"type":"id","writable_on":["create"]},"end":{"type":"enum","values":["A","B"],"writable_on":["create"]},"port_id":{"type":"id","writable_on":["create"]},"face":{"type":"enum","values":["rear","front"],"writable_on":["create"],"note":"default rear"},"layer":{"type":"enum","values":["design","as_built","both"],"writable_on":["create"],"note":"design (default), as_built, or both (installed as designed)"},"panel_id":{"type":"integer","read_only":true},"panel_tag":{"type":"string","read_only":true},"port_number":{"type":"integer","read_only":true},"cable_tag":{"type":"string","read_only":true},"number":{"type":"integer","read_only":true},"colour":{"type":"object","read_only":true},"circuit_ref":{"type":"string","nullable":true,"read_only":true}},"operations":[{"name":"list","method":"GET","path":"/v1/projects/{pid}/terminations","summary":"List terminations, oldest first.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"panel_id":{"type":"id"},"cable_id":{"type":"id"}},"paginated":true},{"name":"create","method":"POST","path":"/v1/projects/{pid}/terminations","summary":"Create a termination.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"strand_id":{"type":"id","writable_on":["create"],"required":true},"end":{"type":"enum","values":["A","B"],"writable_on":["create"],"required":true},"port_id":{"type":"id","writable_on":["create"],"required":true},"face":{"type":"enum","values":["rear","front"],"writable_on":["create"],"note":"default rear","required":false},"layer":{"type":"enum","values":["design","as_built","both"],"writable_on":["create"],"note":"design (default), as_built, or both (installed as designed)","required":false}},"paginated":false},{"name":"get","method":"GET","path":"/v1/projects/{pid}/terminations/{id}","summary":"One termination.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"delete","method":"DELETE","path":"/v1/projects/{pid}/terminations/{id}","summary":"Delete a termination.","auth":{"session_min_role":"editor","token_access":"read_write"},"paginated":false},{"name":"set_installed","method":"POST","path":"/v1/projects/{pid}/terminations/{id}/installed","summary":"Record whether a termination is installed (as built).","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"installed":{"type":"boolean","required":true}},"paginated":false}]},"route":{"description":"A cable's route: the ordered segments it occupies, per layer.","fields":{"layer":{"type":"enum","values":["design","as_built"],"writable_on":["replace"]},"segment_ids":{"type":"id_array","max":1000,"writable_on":["replace"]},"segments":{"type":"array","read_only":true,"items":"{ seq, segment_id, tag, kind, length_m, from_node, to_node }"}},"operations":[{"name":"get","method":"GET","path":"/v1/projects/{pid}/cables/{id}/route","summary":"A cable's route in one layer.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"layer":{"type":"enum","values":["design","as_built"]}},"paginated":false},{"name":"replace","method":"PUT","path":"/v1/projects/{pid}/cables/{id}/route","summary":"Replace a cable's route in one layer. Segments must be contiguous (each shares a chamber with the next).","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"layer":{"type":"enum","values":["design","as_built"],"writable_on":["replace"],"required":true},"segment_ids":{"type":"id_array","max":1000,"writable_on":["replace"],"required":true}},"paginated":false}]},"trace":{"description":"Where a core/pair goes: every core/pair on its path, end to end, both landings, and the loss-budget inputs.","fields":{"landing_a":{"type":"object","read_only":true},"landing_b":{"type":"object","read_only":true},"strands":{"type":"array","read_only":true},"circuits":{"type":"array","read_only":true},"loss_inputs":{"type":"object","read_only":true}},"operations":[{"name":"get","method":"GET","path":"/v1/projects/{pid}/trace","summary":"\"What is on core N of cable X, and where does it land?\" Give strand_id, or cable (tag) and core (number).","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"strand_id":{"type":"id"},"cable":{"type":"string"},"core":{"type":"integer","min":1},"layer":{"type":"enum","values":["design","as_built"]}},"paginated":false}]},"diversity":{"description":"Shared pathway nodes between two paths, or every diversity-group violation in the project.","fields":{"shared":{"type":"array","read_only":true},"violations":{"type":"array","read_only":true}},"operations":[{"name":"compare","method":"GET","path":"/v1/projects/{pid}/diversity","summary":"Do two paths share a pathway node? Give any core/pair on each path. Shared manholes, chambers, handholes, poles and risers are violations; shared rooms and cabinets are listed but are not.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"strand_a":{"type":"id","note":"required"},"strand_b":{"type":"id","note":"required"},"layer":{"type":"enum","values":["design","as_built"]}},"paginated":false},{"name":"violations","method":"GET","path":"/v1/projects/{pid}/diversity/violations","summary":"Every diversity group whose circuits share a chamber, with the chamber and the circuits. A computed report: always complete.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"layer":{"type":"enum","values":["design","as_built"]}},"paginated":false}]},"loss_budget":{"description":"The optical loss budget of a traced path at one wavelength: fibre, splices and mated connections, with the coefficients used.","fields":{"total_loss_db":{"type":"number","read_only":true},"fibre_loss_db":{"type":"number","read_only":true},"spans":{"type":"array","read_only":true},"splices":{"type":"object","read_only":true},"connectors":{"type":"object","read_only":true},"margin_db":{"type":"number","nullable":true,"read_only":true,"note":"when budget_db is given"},"assumptions":{"type":"object","read_only":true},"warnings":{"type":"array","read_only":true}},"operations":[{"name":"get","method":"GET","path":"/v1/projects/{pid}/loss-budget","summary":"Calculated optical loss of a path at a wavelength. Defaults are ISO/IEC 11801-1 maxima (stated in the answer); override any coefficient. Give budget_db to get the margin.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"strand_id":{"type":"id"},"cable":{"type":"string"},"core":{"type":"integer","min":1},"layer":{"type":"enum","values":["design","as_built"]},"wavelength_nm":{"type":"enum","values":["850","1300","1310","1383","1550"],"note":"required"},"attenuation_db_per_km":{"type":"number","min":0,"max":10},"splice_db":{"type":"number","min":0,"max":5},"connector_db":{"type":"number","min":0,"max":5},"budget_db":{"type":"number","min":0,"max":100}},"paginated":false}]},"fill":{"description":"Duct and tray fill per segment.","fields":{"fill_ratio":{"type":"number","read_only":true},"over_limit":{"type":"boolean","read_only":true}},"operations":[{"name":"list","method":"GET","path":"/v1/projects/{pid}/fill","summary":"Fill ratio of every duct and tray: cables plus subduct footprints over the usable cross-section.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"layer":{"type":"enum","values":["design","as_built"]}},"paginated":true}]},"commissioning":{"description":"Sign-off of a core/pair's as-built path; reads as stale when the path changes afterwards.","fields":{"result":{"type":"enum","values":["pass","fail"],"writable_on":["create"]},"note":{"type":"string","min":1,"max":500,"nullable":true,"writable_on":["create"]},"state":{"type":"enum","values":["not_signed","commissioned","failed","stale"],"read_only":true}},"operations":[{"name":"get","method":"GET","path":"/v1/projects/{pid}/strands/{id}/commissioning","summary":"Commissioning state of the as-built path through this core/pair.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"create","method":"POST","path":"/v1/projects/{pid}/strands/{id}/commissioning","summary":"Sign off the as-built path (signed-in users only). Refused with PATH_NOT_LANDED unless both ends land on ports.","auth":{"session_min_role":"editor","token_access":null},"body":{"result":{"type":"enum","values":["pass","fail"],"writable_on":["create"],"required":true},"note":{"type":"string","min":1,"max":500,"nullable":true,"writable_on":["create"],"required":false}},"paginated":false}]},"diagram":{"description":"A diagram generated from the model (never drawn by hand): splice diagrams per closure, cross-connect schematics per panel. SVG or PDF.","fields":{"format":{"type":"enum","values":["svg","pdf"],"read_only":true}},"operations":[{"name":"get","method":"GET","path":"/v1/projects/{pid}/diagrams/closures/{id}","summary":"Splice diagram of one closure, drawn from the data: side 1, splice point (tray / position), side 2, with colour codes written out. format=svg (inline) or pdf.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"layer":{"type":"enum","values":["design","as_built"]},"format":{"type":"enum","values":["svg","pdf"]}},"paginated":false},{"name":"get","method":"GET","path":"/v1/projects/{pid}/diagrams/panels/{id}","summary":"Cross-connect schematic of one panel: installed core on the rear of each port, and the patch cord on the front with its far panel and port. format=svg or pdf.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"layer":{"type":"enum","values":["design","as_built"]},"format":{"type":"enum","values":["svg","pdf"]}},"paginated":false}]},"schedule":{"description":"A schedule computed from the model: cables, splices, terminations, or the bill of quantities. format=json is paginated; xlsx and pdf are complete files.","fields":{"kind":{"type":"enum","values":["cables","splices","terminations","pathway","chambers","boq"],"read_only":true},"columns":{"type":"array","read_only":true},"data":{"type":"array","read_only":true}},"operations":[{"name":"get","method":"GET","path":"/v1/projects/{pid}/schedules/{kind}","summary":"A schedule: kind = cables | splices | terminations | boq; format = json (paginated) | xlsx | pdf (complete files).","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"layer":{"type":"enum","values":["design","as_built"]},"format":{"type":"enum","values":["json","xlsx","pdf"]}},"paginated":true}]},"subscription":{"description":"Payment state of a project: a Stripe subscription, monthly or annual. Changed only by Stripe events and by Splicedeck when a project is archived, closed or reactivated.","fields":{"plan":{"type":"enum","values":["monthly","annual"],"writable_on":["create"]},"status":{"type":"string","read_only":true,"note":"Stripe's status, or none"},"paid":{"type":"boolean","read_only":true},"current_period_end":{"type":"datetime","nullable":true,"read_only":true},"cancel_at_period_end":{"type":"boolean","read_only":true},"checkout_url":{"type":"string","read_only":true,"note":"on create"}},"operations":[{"name":"get","method":"GET","path":"/v1/projects/{pid}/subscription","summary":"The project's payment state and the prices.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"create","method":"POST","path":"/v1/projects/{pid}/subscription","summary":"Start paying for this project: returns a Stripe Checkout URL to open. Refused with SUBSCRIPTION_EXISTS if it is already paid.","auth":{"session_min_role":"admin","token_access":null},"body":{"plan":{"type":"enum","values":["monthly","annual"],"required":true}},"paginated":false},{"name":"portal","method":"POST","path":"/v1/billing/portal","summary":"A Stripe customer-portal URL for this workspace: cards, invoices, cancellations.","auth":{"session_min_role":"admin","token_access":null},"paginated":false}]},"stripe_webhook":{"description":"Stripe calls this with signed events.","fields":{"received":{"type":"boolean","read_only":true}},"operations":[{"name":"receive","method":"POST","path":"/v1/stripe/webhook","summary":"Stripe webhook endpoint (signed). Handles checkout.session.completed and customer.subscription.created/updated/deleted.","auth":"none","paginated":false}]},"library":{"description":"The lists behind every selection: node, segment, closure, panel, connector types, fibre categories, cable families, splice methods, circuit services.","fields":{"key":{"type":"string","read_only":true},"label":{"type":"string","read_only":true},"classes":{"type":"array","nullable":true,"read_only":true},"attrs":{"type":"array","read_only":true},"count":{"type":"integer","read_only":true}},"operations":[{"name":"list","method":"GET","path":"/v1/libraries","summary":"Every library of the workspace: its classes, attributes and number of entries.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false}]},"library_item":{"description":"One library entry. class maps the entry to the engine vocabulary where the list has one; attrs holds its dimensions or properties.","fields":{"id":{"type":"integer","read_only":true},"list":{"type":"string","read_only":true},"code":{"type":"string","min":1,"max":64,"writable_on":["create","update"]},"name":{"type":"string","min":1,"max":200,"writable_on":["create","update"]},"class":{"type":"string","min":1,"max":32,"nullable":true,"writable_on":["create","update"],"note":"one of the list's classes, where it has them"},"attrs":{"type":"object","writable_on":["create","update"],"note":"only the attributes the list defines"},"sort_order":{"type":"integer","min":0,"max":100000,"writable_on":["create","update"]},"archived":{"type":"boolean","writable_on":["update"],"note":"archived entries are not offered for new records"}},"operations":[{"name":"list","method":"GET","path":"/v1/libraries/{list}/items","summary":"Entries of one library, in display order. archived=include shows archived entries too.","auth":{"session_min_role":"viewer","token_access":"read"},"query":{"archived":{"type":"enum","values":["exclude","include"]}},"paginated":true},{"name":"create","method":"POST","path":"/v1/libraries/{list}/items","summary":"Add an entry to a library.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"code":{"type":"string","min":1,"max":64,"required":true},"name":{"type":"string","min":1,"max":200,"required":true},"class":{"type":"string","min":1,"max":32,"nullable":true,"required":false},"attrs":{"type":"object","required":false},"sort_order":{"type":"integer","min":0,"max":100000,"required":false}},"paginated":false},{"name":"get","method":"GET","path":"/v1/library-items/{id}","summary":"One library entry.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"update","method":"PATCH","path":"/v1/library-items/{id}","summary":"Change a library entry (name, code, class, attributes, order, archived). Records already using it keep their own values.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"code":{"type":"string","min":1,"max":64,"required":false},"name":{"type":"string","min":1,"max":200,"required":false},"class":{"type":"string","min":1,"max":32,"nullable":true,"required":false},"attrs":{"type":"object","required":false},"sort_order":{"type":"integer","min":0,"max":100000,"required":false},"archived":{"type":"boolean","required":false}},"paginated":false},{"name":"delete","method":"DELETE","path":"/v1/library-items/{id}","summary":"Delete an unused library entry. An entry in use is refused with IN_USE: archive it instead.","auth":{"session_min_role":"editor","token_access":"read_write"},"paginated":false}]},"assistant":{"description":"The project assistant: a question about the project, answered by the workspace's own AI provider from the project's data. Read-only: it cannot change anything.","fields":{"messages":{"type":"message_array","max":40,"writable_on":["ask"],"note":"the conversation so far, oldest first, ending with the question; the server keeps none of it"},"reply":{"type":"string","read_only":true},"stop":{"type":"enum","values":["end","refused","max_tokens"],"read_only":true},"provider":{"type":"string","read_only":true},"model":{"type":"string","read_only":true},"tool_calls":{"type":"array","read_only":true,"items":"{ name, input, ok }"},"usage":{"type":"object","read_only":true,"items":"{ input_tokens, output_tokens }"},"configured":{"type":"boolean","read_only":true},"tools":{"type":"array","read_only":true}},"operations":[{"name":"status","method":"GET","path":"/v1/assistant","summary":"Whether the workspace has an AI provider connected, and the tools the assistant can use.","auth":{"session_min_role":"viewer","token_access":null},"paginated":false},{"name":"ask","method":"POST","path":"/v1/projects/{pid}/assistant","summary":"Ask the assistant about this project. Send the conversation so far; the answer comes back with the tools it used. 409 AI_NOT_CONFIGURED until an owner or admin connects a provider under Settings.","auth":{"session_min_role":"viewer","token_access":null},"body":{"messages":{"type":"message_array","max":40,"required":true}},"paginated":false}]},"member":{"description":"A person in the workspace, with their role. Removing a member ends their sessions; their past work keeps their name.","fields":{"id":{"type":"integer","read_only":true},"email":{"type":"string","read_only":true},"display_name":{"type":"string","read_only":true},"role":{"type":"enum","values":["owner","admin","editor","viewer"],"writable_on":["update"],"note":"owner cannot be assigned; only the owner changes admins"},"member_since":{"type":"datetime","read_only":true}},"operations":[{"name":"list","method":"GET","path":"/v1/members","summary":"Everyone in the workspace, with their role.","auth":{"session_min_role":"admin","token_access":null},"paginated":false},{"name":"update","method":"PATCH","path":"/v1/members/{id}","summary":"Change a member's role. Only the owner changes admins; nobody changes their own role.","auth":{"session_min_role":"admin","token_access":null},"body":{"role":{"type":"enum","values":["admin","editor","viewer"],"required":true}},"paginated":false},{"name":"delete","method":"DELETE","path":"/v1/members/{id}","summary":"Remove a member: their sessions end at once. Records they made keep their name. Re-invite to bring them back.","auth":{"session_min_role":"admin","token_access":null},"paginated":false}]},"invitation":{"description":"An invitation to join the workspace, valid 7 days. Created with a one-time link that is shown once; Splicedeck sends no e-mail.","fields":{"id":{"type":"integer","read_only":true},"email":{"type":"string","min":3,"max":254,"writable_on":["create"],"pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"role":{"type":"enum","values":["admin","editor","viewer"],"writable_on":["create"],"note":"only the owner may invite an admin"},"status":{"type":"enum","values":["pending","accepted","revoked","expired"],"read_only":true},"url":{"type":"string","read_only":true,"note":"returned once, by create"},"token":{"type":"string","min":20,"max":200,"write_only":true,"writable_on":["inspect","accept"]},"password":{"type":"string","min":12,"max":200,"write_only":true,"writable_on":["accept"]},"display_name":{"type":"string","min":1,"max":200,"writable_on":["accept"],"note":"required when the e-mail has no account yet"},"created_by":{"type":"integer","read_only":true},"created_by_name":{"type":"string","read_only":true},"created_at":{"type":"datetime","read_only":true},"expires_at":{"type":"datetime","read_only":true},"accepted_at":{"type":"datetime","nullable":true,"read_only":true},"revoked_at":{"type":"datetime","nullable":true,"read_only":true}},"operations":[{"name":"list","method":"GET","path":"/v1/invitations","summary":"Pending invitations, and those accepted or withdrawn in the last 30 days.","auth":{"session_min_role":"admin","token_access":null},"paginated":false},{"name":"create","method":"POST","path":"/v1/invitations","summary":"Invite someone by e-mail address and role. Returns the one-time link (url) once; pass it to them yourself. A new invitation replaces a pending one for the same address. Valid 7 days.","auth":{"session_min_role":"admin","token_access":null},"body":{"email":{"type":"string","min":3,"max":254,"pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$","required":true},"role":{"type":"enum","values":["admin","editor","viewer"],"required":true}},"paginated":false},{"name":"delete","method":"DELETE","path":"/v1/invitations/{id}","summary":"Withdraw a pending invitation: its link stops working.","auth":{"session_min_role":"admin","token_access":null},"paginated":false},{"name":"inspect","method":"POST","path":"/v1/auth/invitation","summary":"What an invitation link is for: the workspace, e-mail address and role, and whether that address already has an account. The secret goes in the body, never in a URL.","auth":"none","body":{"token":{"type":"string","min":20,"max":200,"required":true}},"paginated":false},{"name":"accept","method":"POST","path":"/v1/auth/accept-invitation","summary":"Join the workspace and sign in. New address: give display_name and a password (12+ characters). Existing account: give its password.","auth":"none","body":{"token":{"type":"string","min":20,"max":200,"required":true},"password":{"type":"string","min":12,"max":200,"required":true},"display_name":{"type":"string","min":1,"max":200,"required":false}},"paginated":false}]},"import":{"description":"An uploaded spreadsheet (kept 7 days) and runs that map its columns onto Splicedeck records: check (dry run) first, then import.","fields":{"id":{"type":"integer","read_only":true},"file_name":{"type":"string","read_only":true},"sheets":{"type":"array","read_only":true,"items":"{ name, row_count, col_count, rows (first 30) }"},"log":{"type":"array","read_only":true,"items":"{ run_id, sheet, target, created, updated, skipped, errors, at }"},"sheet":{"type":"string","min":1,"max":200,"writable_on":["run"]},"header_row":{"type":"integer","min":0,"max":1000,"writable_on":["run"],"note":"1-based row holding the column names; 0 = no header row"},"target":{"type":"enum","values":["nodes","segments","cables","circuits","closures","panels","splices","terminations","allocations"],"writable_on":["run"]},"mapping":{"type":"object","writable_on":["run"],"note":"{ field: column index (0 = A) }"},"defaults":{"type":"object","writable_on":["run"],"note":"{ field: value } used where a field has no column (or the cell is empty)"},"on_existing":{"type":"enum","values":["skip","update"],"writable_on":["run"],"note":"a row whose tag already exists: leave the record, or update it (default skip)"},"dry_run":{"type":"boolean","writable_on":["run"],"note":"check only (default true)"},"offset":{"type":"integer","min":0,"max":1000000,"writable_on":["run"]},"limit":{"type":"integer","min":1,"max":5000,"writable_on":["run"]},"run_id":{"type":"string","min":1,"max":64,"writable_on":["run"],"note":"groups the batches of one import in the log"}},"operations":[{"name":"list","method":"GET","path":"/v1/projects/{pid}/imports","summary":"Uploads of this project from the last 7 days, with what was imported from each.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"create","method":"POST","path":"/v1/projects/{pid}/imports","summary":"Upload a spreadsheet: the request body is the .xlsx or .csv file itself (up to 8 MB, 50000 rows a sheet); send its name in X-File-Name. Returns its sheets with their first rows.","auth":{"session_min_role":"editor","token_access":"read_write"},"paginated":false},{"name":"get","method":"GET","path":"/v1/projects/{pid}/imports/{id}","summary":"One upload: its sheets with their first 30 rows, and what has been imported from it.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false},{"name":"delete","method":"DELETE","path":"/v1/projects/{pid}/imports/{id}","summary":"Delete an upload now rather than after 7 days. Records already imported stay.","auth":{"session_min_role":"editor","token_access":"read_write"},"paginated":false},{"name":"run","method":"POST","path":"/v1/projects/{pid}/imports/{id}/run","summary":"Map a sheet onto a target and check it (dry_run, the default) or import it, in batches. Every row runs through the normal API operations; the answer lists what each row did or why it failed.","auth":{"session_min_role":"editor","token_access":"read_write"},"body":{"sheet":{"type":"string","min":1,"max":200,"required":true},"header_row":{"type":"integer","min":0,"max":1000,"required":true},"target":{"type":"enum","values":["nodes","segments","cables","circuits","closures","panels","splices","terminations","allocations"],"required":true},"mapping":{"type":"object","required":true},"defaults":{"type":"object","required":false},"on_existing":{"type":"enum","values":["skip","update"],"required":false},"dry_run":{"type":"boolean","required":false},"offset":{"type":"integer","min":0,"max":1000000,"required":false},"limit":{"type":"integer","min":1,"max":5000,"required":false},"run_id":{"type":"string","min":1,"max":64,"required":false}},"paginated":false}]},"import_target":{"description":"What a spreadsheet row can become, with its fields and the header names used to suggest a mapping.","fields":{"key":{"type":"string","read_only":true},"label":{"type":"string","read_only":true},"fields":{"type":"array","read_only":true}},"operations":[{"name":"list","method":"GET","path":"/v1/import-targets","summary":"What spreadsheet rows can become: nodes, segments, cables (with routes), circuits, closures, panels, splices, terminations, core allocations; with each one's fields.","auth":{"session_min_role":"viewer","token_access":"read"},"paginated":false}]}},"authentication":{"api_token":"Authorization: Bearer sdk_...  (per workspace; access read or read_write; created by an owner or admin)","session":"HttpOnly cookie sd_session, set by POST /v1/auth/login","roles":["viewer","editor","admin","owner"]},"pagination":{"style":"cursor","parameters":{"limit":"1-500, default 100","cursor":"opaque; from next_cursor"},"response":"{ \"data\": [...], \"next_cursor\": string | null }","max_page_size":500,"oversized_request":"refused with 400 PAGE_SIZE_TOO_LARGE; never truncated"},"rate_limits":{"window_seconds":60,"per_api_token":120,"per_signed_in_user":600,"per_client_address_unauthenticated":60,"login_attempts_per_email":10,"assistant_questions_per_workspace":10,"refusal":"429 with header Retry-After (seconds) and body { error: { code: \"RATE_LIMITED\", detail: { retry_after_seconds } } }","headers":["X-RateLimit-Limit","X-RateLimit-Remaining"]},"errors":{"shape":"{ \"error\": { \"code\": string, \"message\": string, \"detail\"?: object } }","rule":"Every error is a non-2xx status. A 2xx response never carries an error.","unsupported_method":"405 METHOD_NOT_ALLOWED with an Allow header","codes_by_status":{"400":["INVALID_REQUEST","INVALID_BODY","INVALID_JSON","UNEXPECTED_BODY","UNKNOWN_FIELD","FIELD_NOT_WRITABLE","MISSING_FIELD","INVALID_FIELD","UNKNOWN_PARAMETER","MISSING_PARAMETER","INVALID_PARAMETER","INVALID_CURSOR","PAGE_SIZE_TOO_LARGE","MONTH_IN_FUTURE","INVALID_REFERENCE","CONSTRAINT_VIOLATED","WRONG_PASSWORD","INVALID_SIGNATURE","NOT_JSON","UNREADABLE_FILE","MAPPING_INCOMPLETE"],"401":["UNAUTHENTICATED","INVALID_CREDENTIALS"],"402":["PAYMENT_REQUIRED"],"403":["FORBIDDEN","SIGNUP_CLOSED"],"404":["NOT_FOUND"],"405":["METHOD_NOT_ALLOWED"],"409":["DUPLICATE","SLUG_TAKEN","EMAIL_TAKEN","TENANT_REQUIRED","PROJECT_NOT_ACTIVE","INVALID_STATUS_TRANSITION","TOKEN_ALREADY_REVOKED","KEY_VERSION_MISMATCH","IN_USE","END_ALREADY_CONNECTED","PORT_FACE_OCCUPIED","SPLICE_SELF","SPLICE_FULL","ROUTE_REPEATS_SEGMENT","ROUTE_NOT_CONTIGUOUS","NOT_IN_DESIGN","NODE_HAS_SEGMENTS","SEGMENT_OCCUPIED","PATH_NOT_LANDED","NOT_FIBRE","ATTENUATION_UNKNOWN","WAVELENGTH_NOT_APPLICABLE","SUBSCRIPTION_EXISTS","NO_BILLING_ACCOUNT","TYPE_MISMATCH","AI_NOT_CONFIGURED","AI_MODEL_REQUIRED","ALREADY_MEMBER","OWN_MEMBERSHIP","OWNER_PROTECTED","INVITATION_NOT_USABLE","IMPORT_EXPIRED","TAG_RULE_INCOMPLETE"],"413":["BODY_TOO_LARGE","FILE_TOO_LARGE"],"415":["UNSUPPORTED_MEDIA_TYPE"],"422":["ASSISTANT_GAVE_UP"],"429":["RATE_LIMITED","AI_PROVIDER_RATE_LIMITED"],"500":["INTERNAL"],"502":["BILLING_PROVIDER_ERROR","AI_PROVIDER_AUTH","AI_PROVIDER_ERROR"],"503":["ENCRYPTION_NOT_CONFIGURED","BILLING_NOT_CONFIGURED","PRICE_NOT_CONFIGURED","PRICE_MISMATCH"]}},"billing":{"card_payments":true,"provider":"Stripe","enforced":true,"prices":{"monthly":"9 USD per project per month","annual":"90 USD per project per year"}},"signup":{"open":true,"operation":"POST /v1/auth/signup","note":"controlled by the server setting SIGNUP_OPEN"},"conventions":{"timestamps":"ISO-8601 UTC, e.g. 2026-10-06T09:00:00.000Z","unknown_fields_and_parameters":"refused (400), never ignored","request_bodies":"application/json only (415 otherwise)"}}