<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.7kas.com/index.php?action=history&amp;feed=atom&amp;title=OperatorAPI_export</id>
	<title>OperatorAPI export - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.7kas.com/index.php?action=history&amp;feed=atom&amp;title=OperatorAPI_export"/>
	<link rel="alternate" type="text/html" href="https://wiki.7kas.com/index.php?title=OperatorAPI_export&amp;action=history"/>
	<updated>2026-09-06T23:47:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.7kas.com/index.php?title=OperatorAPI_export&amp;diff=964&amp;oldid=prev</id>
		<title>Maintenance script: Operator API reference (generated from func=help)</title>
		<link rel="alternate" type="text/html" href="https://wiki.7kas.com/index.php?title=OperatorAPI_export&amp;diff=964&amp;oldid=prev"/>
		<updated>2026-08-19T08:17:30Z</updated>

		<summary type="html">&lt;p&gt;Operator API reference (generated from func=help)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;newadmapi (Operator API) function. Available to: &amp;#039;&amp;#039;&amp;#039;Operator, SuperRoot&amp;#039;&amp;#039;&amp;#039;.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
The SAME query as list, rendered as a delimited file. Every view parameter is identical - fields, order, dir, filterby, filter - so exporting &amp;quot;what I am looking at&amp;quot; is this call with the parameters the grid was already using, never a second code path that could disagree about what that was. Columns may be NARROWED with fields and never widened: a name that is not declared by the section is refused. A separator inside a value is quoted (RFC4180), so a value containing the delimiter cannot silently split into two columns as the legacy export does. Refuses rather than truncates above 50000 rows.&lt;br /&gt;
&lt;br /&gt;
{{Note|1=A &amp;#039;&amp;#039;&amp;#039;generic verb&amp;#039;&amp;#039;&amp;#039;: it works over any section via the &amp;lt;code&amp;gt;section&amp;lt;/code&amp;gt; parameter. Discover sections with [[OperatorAPI sections]] and a section&amp;#039;s fields/capabilities with [[OperatorAPI options]].}}&lt;br /&gt;
&lt;br /&gt;
== Call ==&lt;br /&gt;
 GET|POST https://YOUR_HOST:9089/newadm?func=export&lt;br /&gt;
Send your API key with every request (header &amp;lt;code&amp;gt;X-API-Key: YOUR_KEY&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;Authorization: Bearer YOUR_KEY&amp;lt;/code&amp;gt;, or the &amp;lt;code&amp;gt;ukey&amp;lt;/code&amp;gt; query parameter).&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
! Parameter !! Type !! Required !! Default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;section&amp;lt;/code&amp;gt; || string || Yes || &amp;amp;mdash; || The section key.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;fields&amp;lt;/code&amp;gt; || string || No || &amp;amp;mdash; || Comma-separated subset of the declared fields, in the order you want the columns. &amp;lt;small&amp;gt;(Empty = every declared field. An undeclared name is refused BY NAME)&amp;lt;/small&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sep&amp;lt;/code&amp;gt; || string || No || &amp;lt;code&amp;gt;tab&amp;lt;/code&amp;gt; || Field separator: tab, comma, semicolon, pipe, or one literal character. &amp;lt;small&amp;gt;(The legacy default was TAB (export_separator). A quote or a newline is refused)&amp;lt;/small&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;decimal&amp;lt;/code&amp;gt; || string || No || &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; || Decimal mark for numeric columns: &amp;quot;.&amp;quot; or &amp;quot;,&amp;quot;. &amp;lt;small&amp;gt;(The legacy wrote &amp;quot;,&amp;quot; (export_floatsig). Refused when it equals sep)&amp;lt;/small&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;header&amp;lt;/code&amp;gt; || boolean || No || &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; || Write a header row of field names.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;order&amp;lt;/code&amp;gt; || string || No || &amp;amp;mdash; || Sort field, from the declared set.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;dir&amp;lt;/code&amp;gt; || string || No || &amp;lt;code&amp;gt;asc&amp;lt;/code&amp;gt; || asc or desc.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;filterby&amp;lt;/code&amp;gt; || string || No || &amp;amp;mdash; || Field to search, from the declared set.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;filter&amp;lt;/code&amp;gt; || string || No || &amp;amp;mdash; || Literal substring, case-insensitive.&lt;br /&gt;
|}&lt;br /&gt;
== Example ==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;https://host:port/newadm?func=export&amp;amp;section=bonos&amp;amp;fields=name,price&amp;amp;sep=semicolon&amp;amp;decimal=,&amp;amp;order=name&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Response ==&lt;br /&gt;
Success is &amp;lt;code&amp;gt;{&amp;quot;ok&amp;quot;:true,&amp;quot;data&amp;quot;:{...}}&amp;lt;/code&amp;gt;; on refusal &amp;lt;code&amp;gt;{&amp;quot;ok&amp;quot;:false,&amp;quot;code&amp;quot;:&amp;quot;...&amp;quot;,&amp;quot;message&amp;quot;:&amp;quot;...&amp;quot;}&amp;lt;/code&amp;gt;. This function&amp;#039;s data shape: &amp;lt;code&amp;gt;text/csv attachment - not a JSON envelope. Errors ARE JSON envelopes.&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
Refusals carry a machine-readable &amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt; (branch on the code, never the message). See [[OperatorAPI#Error codes]].&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Back to [[OperatorAPI]]&lt;br /&gt;
[[Category:OperatorAPI]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>