All URIs are relative to https://eu-api.legalesign.com/api/v1
Method | HTTP request | Description |
---|---|---|
GetGroup | GET /group/{groupId} | Get group |
GetGroups | GET /group | Get groups |
PostGroup | POST /group | Create group |
UpdateGroup | PATCH /group/{groupId} | Update group |
GroupResponse GetGroup (string groupId)
Get group
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class GetGroupExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://eu-api.legalesign.com/api/v1";
// Configure API key authorization: apikeyAuth
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new GroupApi(Configuration.Default);
var groupId = "groupId_example"; // string |
try
{
// Get group
GroupResponse result = apiInstance.GetGroup(groupId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling GroupApi.GetGroup: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
groupId | string |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | ok | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GroupListResponse GetGroups (int? offset = null, int? limit = null)
Get groups
List groups the api user belongs to
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class GetGroupsExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://eu-api.legalesign.com/api/v1";
// Configure API key authorization: apikeyAuth
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new GroupApi(Configuration.Default);
var offset = 56; // int? | Offset from start of dataset. Use with the limit query to iterate through dataset. (optional)
var limit = 56; // int? | Length of dataset to return. Use with offset query to iterate through results. (optional)
try
{
// Get groups
GroupListResponse result = apiInstance.GetGroups(offset, limit);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling GroupApi.GetGroups: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
offset | int? | Offset from start of dataset. Use with the limit query to iterate through dataset. | [optional] |
limit | int? | Length of dataset to return. Use with offset query to iterate through results. | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | operation successful | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void PostGroup (GroupPost groupPost)
Create group
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class PostGroupExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://eu-api.legalesign.com/api/v1";
// Configure API key authorization: apikeyAuth
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new GroupApi(Configuration.Default);
var groupPost = new GroupPost(); // GroupPost |
try
{
// Create group
apiInstance.PostGroup(groupPost);
}
catch (ApiException e)
{
Debug.Print("Exception when calling GroupApi.PostGroup: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
groupPost | GroupPost |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
201 | operation successful | * location - resource_uri for new user (if password set) |
400 | groups allowance exceeded | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UpdateGroup (string groupId, GroupPatch groupPatch)
Update group
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class UpdateGroupExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://eu-api.legalesign.com/api/v1";
// Configure API key authorization: apikeyAuth
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new GroupApi(Configuration.Default);
var groupId = "groupId_example"; // string | group id
var groupPatch = new GroupPatch(); // GroupPatch |
try
{
// Update group
apiInstance.UpdateGroup(groupId, groupPatch);
}
catch (ApiException e)
{
Debug.Print("Exception when calling GroupApi.UpdateGroup: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
groupId | string | group id | |
groupPatch | GroupPatch |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
202 | operation successful | - |
400 | bad request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]