Skip to content

Latest commit

 

History

History
334 lines (245 loc) · 9.03 KB

GroupApi.md

File metadata and controls

334 lines (245 loc) · 9.03 KB

Org.OpenAPITools.Api.GroupApi

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

GetGroup

GroupResponse GetGroup (string groupId)

Get group

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
groupId string

Return type

GroupResponse

Authorization

apikeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 ok -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetGroups

GroupListResponse GetGroups (int? offset = null, int? limit = null)

Get groups

List groups the api user belongs to

Example

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);
            }
        }
    }
}

Parameters

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]

Return type

GroupListResponse

Authorization

apikeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 operation successful -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostGroup

void PostGroup (GroupPost groupPost)

Create group

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
groupPost GroupPost

Return type

void (empty response body)

Authorization

apikeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

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]

UpdateGroup

void UpdateGroup (string groupId, GroupPatch groupPatch)

Update group

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
groupId string group id
groupPatch GroupPatch

Return type

void (empty response body)

Authorization

apikeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

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]