DE EN EN (Google)

Retrieve transitions

GET /api/v1/transitions?token=<token>

Retrieves all transitions. Transitions are returned in the order they are processed.

Query String

token Session token acquired with /api/v1/session

Returns

Array of transitions.

Examples

[
    {
        "_id": 1,
        "operations": [
            "INSERT"
        ],
        "objecttype_ids": [],
        "confirm": {},
        "sticky": false,
        "type": "process",
        "actions": [],
        "who": [
            {
                "_basetype": "group",
                "group": {
                    "_id": 1,
                    "displayname": {
                        "de-DE": "Alle Benutzer",
                        "en-US": "All users",
                        "es-ES": "Todos los usuarios",
                        "it-IT": "All users (IT)",
                        "ka-GE": null
                    },
                    "type": "system",
                    "name": ":all"
                }
            }
        ]
    }
]

Permissions

The session must be authenticated.

HTTP status codes

200 Success
400 Not Authenticated: session is not authenticated

Update transitions

POST /api/v1/transitions?token=<token>

Updates all transitions. The list should be always complete. That means, if a transition is not provided, it will be deleted. The order of the list is relevant: it determines the processing order of the transitions.

Input

Array of transitions.

Query String

token Session token acquired with /api/v1/session

Returns

Array of transitions.

Permissions

The session must be authenticated and the user needs the system.rights_management right. Otherwise, an error will be returned.

HTTP status codes

200 Success
400 API error: something is malformed
400 Not Authenticated: session is not authenticated
400 No System Right: no system right for “_all_fields”
500 Server error: internal server error