WSE · Schnittstellen
Administration & Zugriff
Verbinden Sie WSE mit Ihren Anwendungen. Entdecken Sie Endpunkte, Datenmodelle und Schnittstellen – nach Funktionsbereichen und Add-ons geordnet.
Administration & Zugriff
ERP API Dokumentation
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/auth/me' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
Internal actor UUID; null when the local actor registry is unavailable.
{ "actor_id": "04f37679-bfbf-4906-b749-01756515cecf", "sub": "string", "user": "string", "email": "string", "first_name": "string", "last_name": "string", "phone": "string", "mobile": "string", "actor_type": "string", "roles": [ "string" ], "permissions": [ "string" ] }
Update and return the current human user's editable Keycloak profile.
# Example only: replace the instance URL, token and sample values before use.
curl --request PATCH \
--url 'https://your-instance.example.invalid/auth/me' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"first_name": "string",
"last_name": "string",
"phone": "string",
"mobile": "string"
}'Successful Response
Internal actor UUID; null when the local actor registry is unavailable.
{ "actor_id": "04f37679-bfbf-4906-b749-01756515cecf", "sub": "string", "user": "string", "email": "string", "first_name": "string", "last_name": "string", "phone": "string", "mobile": "string", "actor_type": "string", "roles": [ "string" ], "permissions": [ "string" ] }
Return the personal preferences of the current human user, creating defaults on first access.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/auth/me/preferences' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Preferences for the current user
{ "show_ids": true, "show_last_change": true, "show_new_features": true, "ui_language": "de", "dark_mode": true }
Partially update the personal preferences of the current human user.
Show last-change information in the UI
Show new feature highlights in the UI
UI language of the actor
# Example only: replace the instance URL, token and sample values before use.
curl --request PATCH \
--url 'https://your-instance.example.invalid/auth/me/preferences' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"show_ids": true,
"show_last_change": true,
"show_new_features": true,
"ui_language": "de",
"dark_mode": true
}'Preferences updated
{ "show_ids": true, "show_last_change": true, "show_new_features": true, "ui_language": "de", "dark_mode": true }
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/authz/permissions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'[ { "permission_key": "string", "display_name": "string", "description": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ]
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/authz/role-permissions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Assign one code-defined permission to one custom role.
# Example only: replace the instance URL, token and sample values before use.
curl --request PUT \
--url 'https://your-instance.example.invalid/authz/roles/string/permissions/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Remove one code-defined permission from one custom role.
# Example only: replace the instance URL, token and sample values before use.
curl --request DELETE \
--url 'https://your-instance.example.invalid/authz/roles/string/permissions/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/tenant-admin/licence' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
Status values accepted from a verified signed license lease.
{ "tenant_id": "string", "license_status": "active", "valid_to": "2019-08-24", "grace_until": "2019-08-24", "lease_expires_at": "2019-08-24T14:15:22Z", "last_successful_check_at": "2019-08-24T14:15:22Z", "next_check_after": "2019-08-24T14:15:22Z", "locked": true, "lock_reason": "string", "max_seats": 0, "options": [ { … } ] }
Refresh the tenant license from WAS and return verified license information.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/tenant-admin/licence/refresh' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
Status values accepted from a verified signed license lease.
{ "tenant_id": "string", "license_status": "active", "valid_to": "2019-08-24", "grace_until": "2019-08-24", "lease_expires_at": "2019-08-24T14:15:22Z", "last_successful_check_at": "2019-08-24T14:15:22Z", "next_check_after": "2019-08-24T14:15:22Z", "locked": true, "lock_reason": "string", "max_seats": 0, "options": [ { … } ] }
Submit a tenant product or seat change for asynchronous processing.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/tenant-admin/product-change-requests' \
--header 'Accept: application/json' \
--header 'Idempotency-Key: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"requested_products": [
{
"product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
"count": 1
}
],
"target_max_seats": 1,
"reason": "string"
}'Successful Response
{ "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "process_instance_id": "string", "status": "pending", "submitted_at": "2019-08-24T14:15:22Z" }
Return current process state and verified license data after success.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/tenant-admin/product-change-requests/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
Public license information derived from a verified signed lease.
{ "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "process_instance_id": "string", "status": "pending", "submitted_at": "2019-08-24T14:15:22Z", "result": { "product_assignment": { … }, "seat_adjustment": { … }, "active_wse_option_names": [ … ], "current_max_seats": 1, "seat_schedule": [ … ] }, "failure": { "code": "string", "message": "string" }, "license": { "tenant_id": "string", "license_status": "active", "valid_to": "2019-08-24", "grace_until": "2019-08-24", "lease_expires_at": "2019-08-24T14:15:22Z", "last_successful_check_at": "2019-08-24T14:15:22Z", "next_check_after": "2019-08-24T14:15:22Z", "locked": true, "lock_reason": "string", "max_seats": 0, "options": [ … ] }, "seats": { "current_seat_limit": 0, "active_user_count": 0, "pending_invitation_count": 0, "available_seats": 0 } }
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/tenant-admin/contract-terms' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Start termination of the authenticated WSE tenant.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/tenant-admin/termination-requests' \
--header 'Accept: application/json' \
--header 'Idempotency-Key: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"date_deactivate": "2019-08-24",
"reason": "string"
}'Successful Response
{ "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "process_instance_id": "string", "status": "pending", "submitted_at": "2019-08-24T14:15:22Z" }
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/tenant-admin/roles' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'[ { "role_id": "string", "role_key": "string", "name": "string", "description": "string", "is_standard": true, "is_custom": true } ]
Create one custom tenant role.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/tenant-admin/roles' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"role_key": "string",
"name": "string",
"description": "string"
}'{ "role_id": "string", "role_key": "string", "name": "string", "description": "string", "is_standard": true, "is_custom": true }
Delete one unassigned custom tenant role.
# Example only: replace the instance URL, token and sample values before use.
curl --request DELETE \
--url 'https://your-instance.example.invalid/tenant-admin/roles/string' \
--header 'Accept: application/problem+json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Return one page of tenant users and pending invitations.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/tenant-admin/users?offset=0&limit=50' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Invite one user to the current tenant.
Email address of the user to invite
Tenant role keys to assign after invitation
[ "wse_admin" ]
Display name of the person sending the invitation
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/tenant-admin/users/invitations' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "max.mustermann@example.com",
"role_keys": [
"wse_admin"
],
"inviter_name": "Max Mustermann",
"ttl_sec": 604800,
"send_invitation_email": true
}'Successful Response
{ "email": "user@example.com", "role_keys": [ "string" ], "invitation_id": "string", "expires_at": "2019-08-24T14:15:22Z" }
# Example only: replace the instance URL, token and sample values before use.
curl --request DELETE \
--url 'https://your-instance.example.invalid/tenant-admin/users/string' \
--header 'Accept: application/problem+json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Revoke one pending tenant invitation.
# Example only: replace the instance URL, token and sample values before use.
curl --request DELETE \
--url 'https://your-instance.example.invalid/tenant-admin/users/invitations/string' \
--header 'Accept: application/problem+json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Resend one pending tenant invitation.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/tenant-admin/users/invitations/string/resend' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
{ "email": "user@example.com", "role_keys": [ "string" ], "invitation_id": "string", "expires_at": "2019-08-24T14:15:22Z" }
Return rich role assignments for one tenant user.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/tenant-admin/users/string/roles' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Replace all managed roles on one tenant user.
# Example only: replace the instance URL, token and sample values before use.
curl --request PUT \
--url 'https://your-instance.example.invalid/tenant-admin/users/string/roles' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"role_keys": [
"string"
]
}'Atomically add and remove roles for one tenant user.
# Example only: replace the instance URL, token and sample values before use.
curl --request PATCH \
--url 'https://your-instance.example.invalid/tenant-admin/users/string/roles' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"add_role_keys": [
"string"
],
"remove_role_keys": [
"string"
]
}'Create one tenant-scoped support ticket through WAS.
User-authored HTML fragment. WAS sanitizes it before sending it to Zammad. Supported formatting includes paragraphs, line breaks, headings, emphasis, lists, quotes, code and HTTP(S), mailto or tel links. Plain text is valid HTML text content.
Allowed values of the active Zammad ticket custom field type.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/support-tickets' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"subject": "string",
"description": "<p>The application shows an <strong>error</strong>.</p>",
"type": "Change Request",
"first_name": "string",
"last_name": "string",
"phone": "string",
"mobile": "string"
}'Successful Response
{ "ticket_id": 0, "ticket_number": "string", "organization_found": true, "internal_note_created": true, "warning": "organization_missing_note_failed" }
