Planfix API handbook.getStructure: Difference between revisions
From Planfix
(Created page with "Obtaining a directory description - the full content of fields and their value types. Request format: <source lang="xml"> <?xml version="1.0" encoding="UTF-8"?> <request method="handbook.getStructure"> <account></account> <sid></sid> <handbook> <id></id> </handbook> <signature></signature> </request> </source> {| class="wikitable" style="margin-top: 1em; width:100% " !width="150"|Name !!width="200"| Type !!width="50%"| Value !! Note |- |sid || string(32) ||...") |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 83: | Line 83: | ||
|field.name || string || field description || | |field.name || string || field description || | ||
|- | |- | ||
|field.type || enum || data type in the field ||list of permissible values for this field see in the section [[ Planfix API:data types of data | |field.type || enum || data type in the field ||list of permissible values for this field see in the section [[Planfix API:Field data types of data tags|data types of data tag fields]] | ||
|- | |- | ||
|field.list || || list of available values for the field, if '''type'''=''LIST'' || | |field.list || || list of available values for the field, if '''type'''=''LIST'' || | ||
Latest revision as of 13:46, 28 February 2025
Obtaining a directory description - the full content of fields and their value types. Request format:
<?xml version="1.0" encoding="UTF-8"?>
<request method="handbook.getStructure">
<account></account>
<sid></sid>
<handbook>
<id></id>
</handbook>
<signature></signature>
</request>| Name | Type | Value | Note |
|---|---|---|---|
| sid | string(32) | session key | issued as a result of authentication |
| handbook.id | int | directory identifier |
Response when the request is successfully executed:
<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
<handbook>
<id></id>
<name></name>
<group>
<id></id>
</group>
<fields>
<field>
<id></id>
<num></num>
<name></name>
<type></type>
<list>
<value></value>
<value></value>
<!-- ... -->
</list>
<handbook>
<id></id>
</handbook>
</field>
<field>
<id></id>
<num></num>
<name></name>
<type></type>
<list>
<value></value>
<value></value>
<!-- ... -->
</list>
<handbook>
<id></id>
</handbook>
</field>
<!-- ... -->
</fields>
</handbook>
</response>| Название | Тип | Значение | Примечание |
|---|---|---|---|
| id | int | directory identifier | |
| name | string | directory name | |
| group.id | int | directory group identifier | |
| fields | node containing the list of directory fields | ||
| fields.field | node describing a directory field | ||
| field.id | int | field identifier | required in requests when adding an entry |
| field.num | int | serial number | for interface |
| field.name | string | field description | |
| field.type | enum | data type in the field | list of permissible values for this field see in the section data types of data tag fields |
| field.list | list of available values for the field, if type=LIST | ||
| field.list.value | string | field value | |
| field.handbook.id | int | directory identifier, if type=HANDBOOK |
Otherwise, a response with an error will be returned:
<?xml version="1.0" encoding="UTF-8"?>
<response status="error">
<code></code>
</response>