CompanyCourse

CompanyCourse_GetEmployeeGroupsPerCompany

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/groups?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyCourse_InsertEmployeeGroup

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
name
required
string [ 0 .. 120 ] characters
employees
required
Array of strings <uuid>

Responses

Request samples

Content type
{
}

CompanyCourse_GetCoursesAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/overview?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyCourse_GetCoursesRequestsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/requests?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyCourse_GetCourseDetailsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
courseUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var CourseUid = "YOUR_courseUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/" + CourseUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyCourse_UpdateCourseAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
courseUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
name
required
string
type
integer <int32>
Enum: 1 2 3 4 5 6 7
locationLatitude
number <double>
locationLongitude
number <double>
address
string [ 0 .. 120 ] characters
teacher
string
targetGroup
string
contactPerson
required
string [ 0 .. 120 ] characters
contactMail
required
string [ 0 .. 120 ] characters
contactPhone
string [ 0 .. 50 ] characters
attachmentUids
Array of strings <uuid>
isNumberOfParticipantsUnlimited
boolean
maximumNumberOfParticipants
integer <int32>
description
string
isSingleCourse
boolean
required
Array of objects (Zalary.Courses.Contracts.EmployeeInCourse.Models.EmployeeInCourseRequest)
required
Array of objects (Zalary.Courses.Contracts.EmployeeInCourse.Models.EmployeeInCourseRequest)
autoApproveRequests
boolean
participationOnlyByInvitation
boolean
activateInviteLink
boolean
invitationLink
string [ 0 .. 2000 ] characters
required
Array of objects (Zalary.Courses.Contracts.CourseDate.Models.CourseDateRequest)

Responses

Request samples

Content type
{
}

CompanyCourse_GetCourseRequestsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
courseUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var CourseUid = "YOUR_courseUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/" + CourseUid + "/requests?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyCourse_GetCourseInvitationsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
courseUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var CourseUid = "YOUR_courseUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/" + CourseUid + "/invitations?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyCourse_GetCourseParticipantsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
courseUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var CourseUid = "YOUR_courseUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/" + CourseUid + "/participants?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyCourse_GetEmployeesGroup

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeGroupUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var EmployeeGroupUid = "YOUR_employeeGroupUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/groups/" + EmployeeGroupUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyCourse_DeleteEmployeeGroup

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeGroupUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var EmployeeGroupUid = "YOUR_employeeGroupUid_PARAMETER";
      var request = await client.DeleteAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/groups/" + EmployeeGroupUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

CompanyCourse_UpdateEmployeeGroup

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeGroupUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
name
required
string [ 0 .. 120 ] characters
employees
required
Array of strings <uuid>

Responses

Request samples

Content type
{
}

CompanyCourse_GetCourseAttachmentAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
courseUid
required
string <uuid>
attachmentUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var CourseUid = "YOUR_courseUid_PARAMETER";
      var AttachmentUid = "YOUR_attachmentUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/" + CourseUid + "/attachments/" + AttachmentUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
"string"

CompanyCourse_CreateCourseAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
name
required
string
type
integer <int32>
Enum: 1 2 3 4 5 6 7
locationLatitude
number <double>
locationLongitude
number <double>
address
string [ 0 .. 120 ] characters
teacher
string
targetGroup
string
contactPerson
required
string [ 0 .. 120 ] characters
contactMail
required
string [ 0 .. 120 ] characters
contactPhone
string [ 0 .. 50 ] characters
attachmentUids
Array of strings <uuid>
isNumberOfParticipantsUnlimited
boolean
maximumNumberOfParticipants
integer <int32>
description
string
isSingleCourse
boolean
required
Array of objects (Zalary.Courses.Contracts.EmployeeInCourse.Models.EmployeeInCourseRequest)
required
Array of objects (Zalary.Courses.Contracts.EmployeeInCourse.Models.EmployeeInCourseRequest)
autoApproveRequests
boolean
participationOnlyByInvitation
boolean
activateInviteLink
boolean
invitationLink
string [ 0 .. 2000 ] characters
required
Array of objects (Zalary.Courses.Contracts.CourseDate.Models.CourseDateRequest)

Responses

Request samples

Content type
{
}

Response samples

Content type
[
]

CompanyCourse_PostCourseAttachmentAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var request = await client.PostAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/attachments?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

CompanyCourse_InviteEmployeesInCourseAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
courseUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
Array ()
string <uuid>

Responses

Request samples

Content type
[
]

CompanyCourse_SendMessageToAllParticipants

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
courseUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
subject
string
message
string

Responses

Request samples

Content type
{
}

CompanyCourse_CancelCourseAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/cancel?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

CompanyCourse_ArchiveCourseAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/archive?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

CompanyCourse_RejectRequestsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/requests/reject?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

CompanyCourse_ApproveRequestsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/requests/approve?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

CompanyCourse_CopyCourseAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
courseUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var CourseUid = "YOUR_courseUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/" + CourseUid + "/copy?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
"00000000-0000-0000-0000-000000000000"

CompanyCourse_RejectCourseRequestsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
courseUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var CourseUid = "YOUR_courseUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/" + CourseUid + "/requests/reject?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

CompanyCourse_ApproveCourseRequestsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
courseUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var CourseUid = "YOUR_courseUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/" + CourseUid + "/requests/approve?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

CompanyCourse_PendingCourseRequestsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
courseUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var CourseUid = "YOUR_courseUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/" + CourseUid + "/requests/pending?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

CompanyCourse_CancelCourseInvitationsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
courseUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var CourseUid = "YOUR_courseUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/" + CourseUid + "/invitations/cancel?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

CompanyCourse_RemoveCourseParticipantsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
courseUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var CourseUid = "YOUR_courseUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/courses/" + CourseUid + "/participants/remove?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}