AccountsHours

GetAccountsHourRegistrations

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
query Parameters
status
integer <int32>
showStandard
boolean
userUids
Array of strings <uuid>
departmentUids
Array of strings <uuid>
rateUids
Array of strings <uuid>
startDate
string <date-time>
endDate
string <date-time>
payrollNumbers
Array of integers <int32>
attachments
integer <int32>
skip
integer <int32>
take
integer <int32>

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 AccountUid = "YOUR_accountUid_PARAMETER";
      var request = await client.GetAsync("/api/hours/accounts/" + AccountUid + "/registrations?status=0&showStandard=true&userUids=497f6eca-6276-4993-bfeb-53cbbbba6f08&departmentUids=497f6eca-6276-4993-bfeb-53cbbbba6f08&rateUids=497f6eca-6276-4993-bfeb-53cbbbba6f08&startDate=2019-08-24T14%3A15%3A22Z&endDate=2019-08-24T14%3A15%3A22Z&payrollNumbers=0&attachments=0&skip=0&take=0");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

DeleteRegistrationAsync

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
query Parameters
newStatus
integer <int32>
registrationUids
Array of strings <uuid>
status
integer <int32>
showStandard
boolean
userUids
Array of strings <uuid>
departmentUids
Array of strings <uuid>
rateUids
Array of strings <uuid>
startDate
string <date-time>
endDate
string <date-time>
payrollNumbers
Array of integers <int32>
attachments
integer <int32>
skip
integer <int32>
take
integer <int32>

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 AccountUid = "YOUR_accountUid_PARAMETER";
      var request = await client.DeleteAsync("/api/hours/accounts/" + AccountUid + "/registrations?newStatus=0&registrationUids=497f6eca-6276-4993-bfeb-53cbbbba6f08&status=0&showStandard=true&userUids=497f6eca-6276-4993-bfeb-53cbbbba6f08&departmentUids=497f6eca-6276-4993-bfeb-53cbbbba6f08&rateUids=497f6eca-6276-4993-bfeb-53cbbbba6f08&startDate=2019-08-24T14%3A15%3A22Z&endDate=2019-08-24T14%3A15%3A22Z&payrollNumbers=0&attachments=0&skip=0&take=0");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

ChangeStatusRegistrationAsync

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
query Parameters
newStatus
integer <int32>
registrationUids
Array of strings <uuid>
status
integer <int32>
showStandard
boolean
userUids
Array of strings <uuid>
departmentUids
Array of strings <uuid>
rateUids
Array of strings <uuid>
startDate
string <date-time>
endDate
string <date-time>
payrollNumbers
Array of integers <int32>
attachments
integer <int32>
skip
integer <int32>
take
integer <int32>

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 AccountUid = "YOUR_accountUid_PARAMETER";
      var request = await client.PatchAsync("/api/hours/accounts/" + AccountUid + "/registrations/status?newStatus=0&registrationUids=497f6eca-6276-4993-bfeb-53cbbbba6f08&status=0&showStandard=true&userUids=497f6eca-6276-4993-bfeb-53cbbbba6f08&departmentUids=497f6eca-6276-4993-bfeb-53cbbbba6f08&rateUids=497f6eca-6276-4993-bfeb-53cbbbba6f08&startDate=2019-08-24T14%3A15%3A22Z&endDate=2019-08-24T14%3A15%3A22Z&payrollNumbers=0&attachments=0&skip=0&take=0", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

DeleteRegistrationAsync

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
registrationUid
required
string <uuid>

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 AccountUid = "YOUR_accountUid_PARAMETER";
      var RegistrationUid = "YOUR_registrationUid_PARAMETER";
      var request = await client.DeleteAsync("/api/hours/accounts/" + AccountUid + "/registrations/" + RegistrationUid);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

InsertHourRegistrationsAsync

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
Request Body schema:
Array of objects (UserRegistrationRequest)
object (Result)

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

PostHourRegistrationAttachmentsAsync

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>

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 AccountUid = "YOUR_accountUid_PARAMETER";
      var request = await client.PostAsync("/api/hours/accounts/" + AccountUid + "/registrations/attachments", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

GetAccountsRegistrationAttachmentLocationAsync

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
registrationUid
required
string <uuid>
attachmentUid
required
string <uuid>

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 AccountUid = "YOUR_accountUid_PARAMETER";
      var RegistrationUid = "YOUR_registrationUid_PARAMETER";
      var AttachmentUid = "YOUR_attachmentUid_PARAMETER";
      var request = await client.GetAsync("/api/hours/accounts/" + AccountUid + "/registrations/" + RegistrationUid + "/attachments/" + AttachmentUid);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

GetRegistrationPayrollNumbers

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
query Parameters
skip
integer <int32>
take
integer <int32>

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 AccountUid = "YOUR_accountUid_PARAMETER";
      var request = await client.GetAsync("/api/hours/accounts/" + AccountUid + "/registrations/payrolls?skip=0&take=0");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

GetAccountDepartmentsAsync

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
query Parameters
skip
integer <int32>
take
integer <int32>

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 AccountUid = "YOUR_accountUid_PARAMETER";
      var request = await client.GetAsync("/api/hours/accounts/" + AccountUid + "/registrations/departments?skip=0&take=0");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}