WSE · Schnittstellen

Administration & Zugriff

Verbinden Sie WSE mit Ihren Anwendungen. Entdecken Sie Endpunkte, Datenmodelle und Schnittstellen – nach Funktionsbereichen und Add-ons geordnet.

OpenAPI herunterladen ↓
REST · JSONBearer-Authentifizierung

Administration & Zugriff

ERP API Dokumentation

Get Auth Me

Request

Return the authenticated actor and effective authorization context.

Security
BearerAuth
GET
/auth/me
# 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'

Responses

Successful Response

Bodyapplication/json
actor_idstring or null(Actor Id)required
Any of:

Internal actor UUID; null when the local actor registry is unavailable.

string (uuid)
substring(Sub)required
userstring(User)required
actor_typestring(Actor Type)required
rolesArray of strings(Roles)required
permissionsArray of strings(Permissions)required
emailstring or null(Email)
Any of:
string
first_namestring or null(First Name)
Any of:
string
last_namestring or null(Last Name)
Any of:
string
phonestring or null(Phone)
Any of:
string
mobilestring or null(Mobile)
Any of:
string
Response
{ "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" ] }

Patch Auth Me

Request

Update and return the current human user's editable Keycloak profile.

Security
BearerAuth
Bodyapplication/jsonrequired
first_namestring or null(First Name)
Any of:
<= 255 characters
string
last_namestring or null(Last Name)
Any of:
<= 255 characters
string
phonestring or null(Phone)
Any of:
<= 255 characters
string
mobilestring or null(Mobile)
Any of:
<= 255 characters
string
PATCH
/auth/me
# 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"
}'

Responses

Successful Response

Bodyapplication/json
actor_idstring or null(Actor Id)required
Any of:

Internal actor UUID; null when the local actor registry is unavailable.

string (uuid)
substring(Sub)required
userstring(User)required
actor_typestring(Actor Type)required
rolesArray of strings(Roles)required
permissionsArray of strings(Permissions)required
emailstring or null(Email)
Any of:
string
first_namestring or null(First Name)
Any of:
string
last_namestring or null(Last Name)
Any of:
string
phonestring or null(Phone)
Any of:
string
mobilestring or null(Mobile)
Any of:
string
Response
{ "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" ] }

Get My Preferences

Request

Return the personal preferences of the current human user, creating defaults on first access.

Security
BearerAuth
GET
/auth/me/preferences
# 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'

Responses

Preferences for the current user

Bodyapplication/json
show_idsboolean(Show Ids)required

Show technical IDs in the UI

show_last_changeboolean(Show Last Change)required

Show last-change information in the UI

show_new_featuresboolean(Show New Features)required

Show new feature highlights in the UI

ui_languagestring(UiLanguage)required

UI language of the actor

Enum:"de""en"
dark_modeboolean(Dark Mode)required

Whether the UI uses dark mode

Response
{ "show_ids": true, "show_last_change": true, "show_new_features": true, "ui_language": "de", "dark_mode": true }

Patch My Preferences

Request

Partially update the personal preferences of the current human user.

Security
BearerAuth
Bodyapplication/jsonrequired
show_idsboolean or null(Show Ids)
Any of:

Show technical IDs in the UI

boolean
show_last_changeboolean or null(Show Last Change)
Any of:

Show last-change information in the UI

boolean
show_new_featuresboolean or null(Show New Features)
Any of:

Show new feature highlights in the UI

boolean
ui_languageUiLanguage (string) or null
Any of:

UI language of the actor

string(UiLanguage)
Enum:"de""en"
dark_modeboolean or null(Dark Mode)
Any of:

Whether the UI uses dark mode

boolean
PATCH
/auth/me/preferences
# 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
}'

Responses

Preferences updated

Bodyapplication/json
show_idsboolean(Show Ids)required

Show technical IDs in the UI

show_last_changeboolean(Show Last Change)required

Show last-change information in the UI

show_new_featuresboolean(Show New Features)required

Show new feature highlights in the UI

ui_languagestring(UiLanguage)required

UI language of the actor

Enum:"de""en"
dark_modeboolean(Dark Mode)required

Whether the UI uses dark mode

Response
{ "show_ids": true, "show_last_change": true, "show_new_features": true, "ui_language": "de", "dark_mode": true }

List Permissions

Request

Return all code-defined route permissions.

Security
BearerAuth
GET
/authz/permissions
# 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'

Responses

Successful Response

Bodyapplication/json
Array [
permission_keystring(Permission Key)required
display_namestring(Display Name)required
created_atstring, (date-time)(Created At)required
updated_atstring, (date-time)(Updated At)required
descriptionstring or null(Description)
Any of:
string
]
Response
[ { "permission_key": "string", "display_name": "string", "description": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ]

List Role Permissions

Request

Return all local role-to-permission mappings.

Security
BearerAuth
GET
/authz/role-permissions
# 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'

Responses

Successful Response

Bodyapplication/json
Array [
role_keystring(Role Key)required
permission_keystring(Permission Key)required
]
Response
[ { "role_key": "string", "permission_key": "string" } ]

Assign Role Permission

Request

Assign one code-defined permission to one custom role.

Security
BearerAuth
Path
role_keystring(Role Key)required
permission_keystring(Permission Key)required
PUT
/authz/roles/{role_key}/permissions/{permission_key}
# 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'

Responses

Successful Response

Bodyapplication/json
role_keystring(Role Key)required
permission_keystring(Permission Key)required
Response
{ "role_key": "string", "permission_key": "string" }

Delete Role Permission

Request

Remove one code-defined permission from one custom role.

Security
BearerAuth
Path
role_keystring(Role Key)required
permission_keystring(Permission Key)required
DELETE
/authz/roles/{role_key}/permissions/{permission_key}
# 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'

Responses

Successful Response

Bodyapplication/json
role_keystring(Role Key)required
permission_keystring(Permission Key)required
Response
{ "role_key": "string", "permission_key": "string" }

Get Tenant Licence

Request

Return verified signed lease-derived tenant license information.

Security
BearerAuth
GET
/tenant-admin/licence
# 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'

Responses

Successful Response

Bodyapplication/json
tenant_idstring(Tenant Id)required
license_statusstring(LicenseStatus)required

Status values accepted from a verified signed license lease.

Enum:"active""expired""suspended""unknown"
valid_tostring, (date)(Valid To)required
grace_untilstring, (date)(Grace Until)required
lease_expires_atstring, (date-time)(Lease Expires At)required
lockedboolean(Locked)required
last_successful_check_atstring or null(Last Successful Check At)
Any of:
string (date-time)
next_check_afterstring or null(Next Check After)
Any of:
string (date-time)
lock_reasonstring or null(Lock Reason)
Any of:
string
max_seatsinteger or null(Max Seats)
Any of:
>= 0
integer
optionsArray of objects(Options)
Response
{ "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 Tenant Licence

Request

Refresh the tenant license from WAS and return verified license information.

Security
BearerAuth
POST
/tenant-admin/licence/refresh
# 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'

Responses

Successful Response

Bodyapplication/json
tenant_idstring(Tenant Id)required
license_statusstring(LicenseStatus)required

Status values accepted from a verified signed license lease.

Enum:"active""expired""suspended""unknown"
valid_tostring, (date)(Valid To)required
grace_untilstring, (date)(Grace Until)required
lease_expires_atstring, (date-time)(Lease Expires At)required
lockedboolean(Locked)required
last_successful_check_atstring or null(Last Successful Check At)
Any of:
string (date-time)
next_check_afterstring or null(Next Check After)
Any of:
string (date-time)
lock_reasonstring or null(Lock Reason)
Any of:
string
max_seatsinteger or null(Max Seats)
Any of:
>= 0
integer
optionsArray of objects(Options)
Response
{ "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": [ { … } ] }

Create Tenant Product Change Request

Request

Submit a tenant product or seat change for asynchronous processing.

Security
BearerAuth
Headers
Idempotency-Keystring, (uuid)(Idempotency-Key)required
Bodyapplication/jsonrequired
reasonstring, [ 1 .. 500 ] characters(Reason)required
requested_productsArray of objects, <= 100 items(Requested Products)
target_max_seatsinteger or null(Target Max Seats)
Any of:
>= 1
integer
POST
/tenant-admin/product-change-requests
# 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"
}'

Responses

Successful Response

Bodyapplication/json
request_idstring, (uuid)(Request Id)required
statusstring(ProductChangeStatus)required
Enum:"pending""running""succeeded""failed"
submitted_atstring, (date-time)(Submitted At)required
process_instance_idstring or null(Process Instance Id)
Any of:
<= 255 characters
string
Response
{ "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "process_instance_id": "string", "status": "pending", "submitted_at": "2019-08-24T14:15:22Z" }

Get Tenant Product Change Request

Request

Return current process state and verified license data after success.

Security
BearerAuth
Path
request_idstring, (uuid)(Request Id)required
GET
/tenant-admin/product-change-requests/{request_id}
# 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'

Responses

Successful Response

Bodyapplication/json
request_idstring, (uuid)(Request Id)required
statusstring(ProductChangeStatus)required
Enum:"pending""running""succeeded""failed"
submitted_atstring, (date-time)(Submitted At)required
process_instance_idstring or null(Process Instance Id)
Any of:
<= 255 characters
string
resultProductChangeResult (object) or null
Any of:
failureProductChangeFailure (object) or null
Any of:
licenseLicenseInfo (object) or null
Any of:

Public license information derived from a verified signed lease.

seatsSeatLimitResponse (object) or null
Any of:
Response
{ "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 } }

Get Tenant Contract Terms

Request

Return contract dates for the authenticated WSE tenant.

Security
BearerAuth
GET
/tenant-admin/contract-terms
# 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'

Responses

Successful Response

Bodyapplication/json
contract_start_datestring, (date)(Contract Start Date)required
earliest_termination_datestring, (date)(Earliest Termination Date)required
Response
{ "contract_start_date": "2019-08-24", "earliest_termination_date": "2019-08-24" }

Create Tenant Termination Request

Request

Start termination of the authenticated WSE tenant.

Security
BearerAuth
Headers
Idempotency-Keystring, (uuid)(Idempotency-Key)required
Bodyapplication/jsonrequired
date_deactivatestring, (date)(Date Deactivate)required
reasonstring, [ 1 .. 500 ] characters(Reason)required
POST
/tenant-admin/termination-requests
# 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"
}'

Responses

Successful Response

Bodyapplication/json
request_idstring, (uuid)(Request Id)required
statusstring(TerminationStatus)required
Enum:"pending""running""succeeded""failed""cancelled"
submitted_atstring, (date-time)(Submitted At)required
process_instance_idstring or null(Process Instance Id)
Any of:
<= 255 characters
string
Response
{ "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "process_instance_id": "string", "status": "pending", "submitted_at": "2019-08-24T14:15:22Z" }

List Tenant Roles

Request

Return the tenant role catalog from WAS.

Security
BearerAuth
GET
/tenant-admin/roles
# 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'

Responses

Successful Response

Bodyapplication/json
Array [
role_idstring(Role Id)required
role_keystring(Role Key)required
is_standardboolean(Is Standard)required
is_customboolean(Is Custom)required
namestring or null(Name)
Any of:
string
descriptionstring or null(Description)
Any of:
string
]
Response
[ { "role_id": "string", "role_key": "string", "name": "string", "description": "string", "is_standard": true, "is_custom": true } ]

Create Tenant Role

Request

Create one custom tenant role.

Security
BearerAuth
Bodyapplication/jsonrequired
role_keystring, [ 1 .. 120 ] characters(Role Key)required
namestring, [ 1 .. 255 ] characters(Name)required
descriptionstring, [ 1 .. 500 ] characters(Description)required
POST
/tenant-admin/roles
# 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"
}'

Responses

Successful Response

Bodyapplication/json
role_idstring(Role Id)required
role_keystring(Role Key)required
is_standardboolean(Is Standard)required
is_customboolean(Is Custom)required
namestring or null(Name)
Any of:
string
descriptionstring or null(Description)
Any of:
string
Response
{ "role_id": "string", "role_key": "string", "name": "string", "description": "string", "is_standard": true, "is_custom": true }

Delete Tenant Role

Request

Delete one unassigned custom tenant role.

Security
BearerAuth
Path
role_keystring(Role Key)required
DELETE
/tenant-admin/roles/{role_key}
# 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'

Responses

Successful Response

Response
No content

List Tenant Users

Request

Return one page of tenant users and pending invitations.

Security
BearerAuth
Query
offsetinteger, >= 0(Offset)
Default:0
limitinteger, [ 1 .. 100 ](Limit)
Default:50
GET
/tenant-admin/users
# 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'

Responses

Successful Response

Bodyapplication/json
offsetinteger, >= 0(Offset)required
limitinteger, [ 1 .. 100 ](Limit)required
itemsArray of objects(Items)
next_offsetinteger or null(Next Offset)
Any of:
>= 0
integer
Response
{ "items": [ { … } ], "offset": 0, "limit": 1, "next_offset": 0 }

Invite Tenant User

Request

Invite one user to the current tenant.

Security
BearerAuth
Bodyapplication/jsonrequired
emailstring, (email)(Email)required

Email address of the user to invite

Example:"max.mustermann@example.com"
role_keysArray of strings, [ 1 .. 50 ] items(Role Keys)required

Tenant role keys to assign after invitation

Example:
[ "wse_admin" ]
inviter_namestring or null(Inviter Name)
Any of:

Display name of the person sending the invitation

[ 1 .. 300 ] characters
string
ttl_secinteger or null(Ttl Sec)
Any of:

Invitation lifetime in seconds

[ 0 .. 2592000 ]
integer
send_invitation_emailboolean(Send Invitation Email)

Whether WAS should send the invitation email

Default:true
POST
/tenant-admin/users/invitations
# 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
}'

Responses

Successful Response

Bodyapplication/json
emailstring, (email)(Email)required

Email address of the invited user

role_keysArray of strings(Role Keys)

Roles assigned to the invited user

invitation_idstring or null(Invitation Id)
Any of:

External invitation identifier

string
expires_atstring or null(Expires At)
Any of:

Invitation expiration timestamp

string (date-time)
Response
{ "email": "user@example.com", "role_keys": [ "string" ], "invitation_id": "string", "expires_at": "2019-08-24T14:15:22Z" }

Delete Tenant User

Request

Remove one user from the current tenant.

Security
BearerAuth
Path
user_idstring(User Id)required
DELETE
/tenant-admin/users/{user_id}
# 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'

Responses

Successful Response

Response
No content

Revoke Tenant User Invitation

Request

Revoke one pending tenant invitation.

Security
BearerAuth
Path
invitation_idstring(Invitation Id)required
DELETE
/tenant-admin/users/invitations/{invitation_id}
# 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'

Responses

Successful Response

Response
No content

Resend Tenant User Invitation

Request

Resend one pending tenant invitation.

Security
BearerAuth
Path
invitation_idstring(Invitation Id)required
POST
/tenant-admin/users/invitations/{invitation_id}/resend
# 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'

Responses

Successful Response

Bodyapplication/json
emailstring, (email)(Email)required

Email address of the invited user

role_keysArray of strings(Role Keys)

Roles assigned to the invited user

invitation_idstring or null(Invitation Id)
Any of:

External invitation identifier

string
expires_atstring or null(Expires At)
Any of:

Invitation expiration timestamp

string (date-time)
Response
{ "email": "user@example.com", "role_keys": [ "string" ], "invitation_id": "string", "expires_at": "2019-08-24T14:15:22Z" }

Get Tenant User Roles

Request

Return rich role assignments for one tenant user.

Security
BearerAuth
Path
user_idstring(User Id)required
GET
/tenant-admin/users/{user_id}/roles
# 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'

Responses

Successful Response

Bodyapplication/json
user_idstring(User Id)required
rolesArray of objects(Roles)
Response
{ "user_id": "string", "roles": [ { … } ] }

Replace Tenant User Roles

Request

Replace all managed roles on one tenant user.

Security
BearerAuth
Path
user_idstring(User Id)required
Bodyapplication/jsonrequired
role_keysArray of strings, [ 1 .. 50 ] items(Role Keys)required
PUT
/tenant-admin/users/{user_id}/roles
# 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"
  ]
}'

Responses

Successful Response

Bodyapplication/json
user_idstring(User Id)required
role_keysArray of strings(Role Keys)
Response
{ "user_id": "string", "role_keys": [ "string" ] }

Patch Tenant User Roles

Request

Atomically add and remove roles for one tenant user.

Security
BearerAuth
Path
user_idstring(User Id)required
Bodyapplication/jsonrequired
add_role_keysArray of strings, <= 50 items(Add Role Keys)
remove_role_keysArray of strings, <= 50 items(Remove Role Keys)
PATCH
/tenant-admin/users/{user_id}/roles
# 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"
  ]
}'

Responses

Successful Response

Bodyapplication/json
user_idstring(User Id)required
role_keysArray of strings(Role Keys)
Response
{ "user_id": "string", "role_keys": [ "string" ] }

Create Support Ticket

Request

Create one tenant-scoped support ticket through WAS.

Security
BearerAuth
Bodyapplication/jsonrequired
subjectstring(Subject)required
descriptionstring(Description)required

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.

Example:"<p>The application shows an <strong>error</strong>.</p>"
typeSupportTicketType (string) or null
Any of:

Allowed values of the active Zammad ticket custom field type.

string(SupportTicketType)
Enum:"Change Request""Problem""Service Request""Incident"
first_namestring or null(First Name)
Any of:
string
last_namestring or null(Last Name)
Any of:
string
phonestring or null(Phone)
Any of:
string
mobilestring or null(Mobile)
Any of:
string
POST
/support-tickets
# 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"
}'

Responses

Successful Response

Bodyapplication/json
ticket_idinteger(Ticket Id)required
ticket_numberstring(Ticket Number)required
organization_foundboolean(Organization Found)required
internal_note_createdboolean or null(Internal Note Created)required
Any of:
boolean
warningSupportTicketWarning (string) or null
Any of:

Non-fatal warnings returned after a ticket was created.

string(SupportTicketWarning)
Value:"organization_missing_note_failed"
Response
{ "ticket_id": 0, "ticket_number": "string", "organization_found": true, "internal_note_created": true, "warning": "organization_missing_note_failed" }