Delete Roles ​
Endpoint ​
http
DELETE /unified/user-directory/roles/{id}Integrations supported
- Jira
- Pipedrive
- Salesforce
Path parameters ​
id
string
REQUIRED ·Â
The ID of the resource.
Example:
23423523Query parameters ​
Refer Specifying query parameters in Truto APIs
integrated_account_id
string · uuid
REQUIRED ·Â
The ID of the integrated account to use for the request.
Example:
62f44730-dd91-461e-bd6a-aedd9e0ad79dtruto_response_format
string
The format of the response.
unifiedreturns the response with unified mappings applied.rawreturns the unprocessed, raw response from the remote API.normalizedapplies the unified mappings and returns the data in a normalized format.streamreturns the response as a stream, which is ideal for transmitting large datasets, files, or binary data. Using streaming mode helps to efficiently handle large payloads or real-time data flows without requiring the entire data to be buffered in memory.debugreturns the final unified result alongside raw remote fetch information. The response is an envelope containingresult(identical to unified mode output) anddebug(withrequestUrl,requestOptions,data,responseHeaders, and for list operations:nextCursor,isLooping,isEmptyResult,resultCount).debugisnullfor static responses or whentruto_skip_api_call=true.
Defaults to unified.
All possible enum values:
unifiedrawnormalizedstreamdebug
Example:
unifiedtruto_ignore_remote_data
boolean
Excludes the remote_data attribute from the response.
truto_exclude_fields
array
Array of fields to exclude from the response.
Example:
truto_exclude_fields[]=id&truto_exclude_fields[]=nameremote_query
object
Query parameters to pass to the underlying API without any transformations. Refer this guide to see how to structure the query parameters.
Example:
remote_query[foo]=barResponse Body ​
id
string
REQUIRED ·Â
The unique identifier for a role
name
string
The name of the role
label
string
The display label of the role
description
string
The description of the role
type
string
The type of the role
applicable_in
string
The context in which the role is applicable
All possible enum values:
groupworkspace
created_at
string · date-time
The date and time the role was created
updated_at
string · date-time
The date and time the role was last updated
remote_data
object
Raw data returned from the remote API call.