Role

Get service provider roles

get

Retrieve roles for a service provider

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Path parameters
serviceProviderIdstringRequiredPattern: [^\/#\?]+?
Query parameters
rolestringOptional

Role of the service provider

Default: userExample: admin
Responses
200Success
application/json
get
/api/service-providers/{serviceProviderId}/role
200Success

Add or update service provider role

post

Add or update roles for a service provider

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Path parameters
serviceProviderIdstringRequiredPattern: [^\/#\?]+?
Bodyobject[]
object[]Optional
Responses
200Success
application/json
post
/api/service-providers/{serviceProviderId}/role
200Success

Change service provider role

put

Change a role for a service provider

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Path parameters
serviceProviderIdstringRequiredPattern: [^\/#\?]+?
serviceProviderRolestringRequiredPattern: [^\/#\?]+?
Body
serviceProviderIdnumberRequired

ID of the service provider

Example: 123
rolestring · enumRequired

Role type of the service provider

Default: CLIENT_MANAGERExample: CLIENT_MANAGERPossible values:
subRolesnumber[]Optional

List of sub-role IDs

Default: []Example: [1,2,3]
activebooleanOptional

Whether the role is active

Example: true
Responses
200Success
application/json
put
/api/service-providers/{serviceProviderId}/role/{serviceProviderRole}
200Success

Deactivate service provider role

delete

Deactivate a role for a service provider

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Path parameters
serviceProviderIdstringRequiredPattern: [^\/#\?]+?
serviceProviderRolestringRequiredPattern: [^\/#\?]+?
Responses
200Success
application/json
delete
/api/service-providers/{serviceProviderId}/role/{serviceProviderRole}
200Success