Get rights
GEThttps://[AccountName].logeto.com/api/v2/Rights
Get rights
Request
Query Parameters
OwnerEntityGuid guid[]
RelatedEntityGuid guid[]
OwnerEntityType EntityType[]
Possible values: [Person
, Group
, Contract
, Activity
, Vehicle
, TimeTracking
, EventLog
, Expenses
]
RelatedEntityType EntityType[]
Possible values: [Person
, Group
, Contract
, Activity
, Vehicle
, TimeTracking
, EventLog
, Expenses
]
ContinuationToken string
Token is needed, unless all records have been returned in previous request. Do not forget to pass also all other parameters.
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (from schema)
Schema
ContinuationToken stringnullable
Items
object[]
nullable
{
"ContinuationToken": "string",
"Items": [
{
"Guid": "string",
"Revision": 0,
"PersonCreated": "string",
"PersonChanged": "string",
"TimestampCreated": "2024-10-07T12:48:00Z",
"TimestampChanged": "2024-10-07T12:48:00Z",
"OwnerEntityGuid": "string",
"OwnerEntityType": "Person",
"RelatedEntityGuid": "string",
"RelatedEntityType": "Person",
"Rights": 0
}
]
}
Error
- application/json
- Schema
- Example (from schema)
Schema
Error
object
required
{
"Error": {
"Code": "string",
"Message": "string"
}
}
Authorization: AccessKey
name: AccessKeytype: apiKeyin: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://[AccountName].logeto.com/api/v2/Rights");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("AccessKey", "<API_KEY_VALUE>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear