Skip to content

Commit

Permalink
Maintenance and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ralf401 committed Dec 7, 2023
1 parent a92e7f7 commit 77b0d8b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
25 changes: 13 additions & 12 deletions api/ticket/states.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ States

.. warning::

Creating, changing or removing states via below endpoints require further
steps via console. See :ref:`states_to_ui`
Creating, changing or removing states via below endpoints is not
recommended! You can do this in UI, please have a look
:admin-docs:`here </system/objects.html#ticket-state-reference>`.

List
====
Expand All @@ -18,9 +19,9 @@ Response:

.. code-block:: json
:force:
# HTTP-Code 200 Ok
[
{
"id": 1,
Expand Down Expand Up @@ -141,9 +142,9 @@ Response:

.. code-block:: json
:force:
# HTTP-Code 200 Ok
{
"id": 4,
"state_type_id": 5,
Expand Down Expand Up @@ -190,9 +191,9 @@ Response:

.. code-block:: json
:force:
# HTTP-Code 201 Created
{
"id": 8,
"state_type_id": 2,
Expand All @@ -218,7 +219,7 @@ Required permission: ``admin.object``
``PUT``-Request sent: ``/api/v1/ticket_states/{id}``

.. code-block:: json
{
"note": "State created & updated via API"
}
Expand All @@ -227,9 +228,9 @@ Response:

.. code-block:: json
:force:
# HTTP-Code 200 Ok
{
"id": 8,
"note": "State created &amp; updated via API",
Expand Down Expand Up @@ -269,7 +270,7 @@ Response:

.. code-block:: json
:force:
# HTTP-Code 200 Ok
{}
8 changes: 4 additions & 4 deletions install/elasticsearch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Step 3: Connect Zammad
.. code-block:: sh
# Set the Elasticsearch server address
$ zammad run rails r "Setting.set('es_url', 'http://localhost:9200')"
$ zammad run rails r "Setting.set('es_url', 'https://localhost:9200')"
# Build the search index
$ zammad run rake zammad:searchindex:rebuild
Expand All @@ -178,11 +178,11 @@ Step 3: Connect Zammad
# rebuilding the searchindex, as in the following example with 8 cores:
$ zammad run rake zammad:searchindex:rebuild[8]
.. note::
.. note::

If you use Elasticsearch 8+, you need to use an HTTPS URL in
If you use Elasticsearch 8+, you need to use a HTTPS URL in
'es_url' as 'https://localhost:9200' and configure an
Authentication (see HTTP Basic below).
authentication (see HTTP Basic below).


Optional settings
Expand Down

0 comments on commit 77b0d8b

Please sign in to comment.