Get role details
Roles
Get role details
Retrieve detailed information about a specific role by its ID.
GET
Get role details
Autorizaciones
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
import requests
url = "https://api.diga.io/v1/role/{role_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.diga.io/v1/role/{role_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.diga.io/v1/role/{role_id} \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.diga.io/v1/role/{role_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"permissions": [
"<string>"
]
}{
"error_code": "PROJECT_NOT_FOUND",
"message": "Project with id 550e8400-e29b-41d4-a716-446655440000 not found",
"status": "error"
}{
"status": "error",
"error_code": "NOT_FOUND",
"message": "Role with id 550e8400-e29b-41d4-a716-446655440000 not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"error_code": "PROJECT_NOT_FOUND",
"message": "Project with id 550e8400-e29b-41d4-a716-446655440000 not found",
"status": "error"
}Retrieve detailed information about a specific role by its ID.
import requests
url = "https://api.diga.io/v1/role/{role_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.diga.io/v1/role/{role_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.diga.io/v1/role/{role_id} \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.diga.io/v1/role/{role_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"permissions": [
"<string>"
]
}{
"error_code": "PROJECT_NOT_FOUND",
"message": "Project with id 550e8400-e29b-41d4-a716-446655440000 not found",
"status": "error"
}{
"status": "error",
"error_code": "NOT_FOUND",
"message": "Role with id 550e8400-e29b-41d4-a716-446655440000 not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"error_code": "PROJECT_NOT_FOUND",
"message": "Project with id 550e8400-e29b-41d4-a716-446655440000 not found",
"status": "error"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
