Skip to content

Latest commit

 

History

History
942 lines (692 loc) · 32 KB

File metadata and controls

942 lines (692 loc) · 32 KB

QueueApi

All URIs are relative to https://zernio.com/api

Method HTTP request Description
createQueueSlot POST /v1/queue/slots Create schedule
createQueueSlotWithHttpInfo POST /v1/queue/slots Create schedule
deleteQueueSlot DELETE /v1/queue/slots Delete schedule
deleteQueueSlotWithHttpInfo DELETE /v1/queue/slots Delete schedule
getNextQueueSlot GET /v1/queue/next-slot Get next available slot
getNextQueueSlotWithHttpInfo GET /v1/queue/next-slot Get next available slot
listQueueSlots GET /v1/queue/slots List schedules
listQueueSlotsWithHttpInfo GET /v1/queue/slots List schedules
previewQueue GET /v1/queue/preview Preview upcoming slots
previewQueueWithHttpInfo GET /v1/queue/preview Preview upcoming slots
updateQueueSlot PUT /v1/queue/slots Update schedule
updateQueueSlotWithHttpInfo PUT /v1/queue/slots Update schedule

createQueueSlot

CreateQueueSlot201Response createQueueSlot(createQueueSlotRequest)

Create schedule

Create an additional queue for a profile. The first queue created becomes the default. Subsequent queues are non-default unless explicitly set.

Example

// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.QueueApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://zernio.com/api");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        QueueApi apiInstance = new QueueApi(defaultClient);
        CreateQueueSlotRequest createQueueSlotRequest = new CreateQueueSlotRequest(); // CreateQueueSlotRequest | 
        try {
            CreateQueueSlot201Response result = apiInstance.createQueueSlot(createQueueSlotRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QueueApi#createQueueSlot");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
createQueueSlotRequest CreateQueueSlotRequest

Return type

CreateQueueSlot201Response

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
201 Queue created -
400 Invalid request or validation error -
401 Unauthorized -
404 Profile not found -

createQueueSlotWithHttpInfo

ApiResponse createQueueSlot createQueueSlotWithHttpInfo(createQueueSlotRequest)

Create schedule

Create an additional queue for a profile. The first queue created becomes the default. Subsequent queues are non-default unless explicitly set.

Example

// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.QueueApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://zernio.com/api");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        QueueApi apiInstance = new QueueApi(defaultClient);
        CreateQueueSlotRequest createQueueSlotRequest = new CreateQueueSlotRequest(); // CreateQueueSlotRequest | 
        try {
            ApiResponse<CreateQueueSlot201Response> response = apiInstance.createQueueSlotWithHttpInfo(createQueueSlotRequest);
            System.out.println("Status code: " + response.getStatusCode());
            System.out.println("Response headers: " + response.getHeaders());
            System.out.println("Response body: " + response.getData());
        } catch (ApiException e) {
            System.err.println("Exception when calling QueueApi#createQueueSlot");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Response headers: " + e.getResponseHeaders());
            System.err.println("Reason: " + e.getResponseBody());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
createQueueSlotRequest CreateQueueSlotRequest

Return type

ApiResponse<CreateQueueSlot201Response>

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
201 Queue created -
400 Invalid request or validation error -
401 Unauthorized -
404 Profile not found -

deleteQueueSlot

DeleteQueueSlot200Response deleteQueueSlot(profileId, queueId)

Delete schedule

Delete a queue from a profile. Requires queueId to specify which queue to delete. If deleting the default queue, another queue will be promoted to default.

Example

// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.QueueApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://zernio.com/api");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        QueueApi apiInstance = new QueueApi(defaultClient);
        String profileId = "profileId_example"; // String | 
        String queueId = "queueId_example"; // String | Queue ID to delete
        try {
            DeleteQueueSlot200Response result = apiInstance.deleteQueueSlot(profileId, queueId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QueueApi#deleteQueueSlot");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
profileId String
queueId String Queue ID to delete

Return type

DeleteQueueSlot200Response

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Queue schedule deleted -
400 Missing profileId or queueId -
401 Unauthorized -

deleteQueueSlotWithHttpInfo

ApiResponse deleteQueueSlot deleteQueueSlotWithHttpInfo(profileId, queueId)

Delete schedule

Delete a queue from a profile. Requires queueId to specify which queue to delete. If deleting the default queue, another queue will be promoted to default.

Example

// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.QueueApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://zernio.com/api");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        QueueApi apiInstance = new QueueApi(defaultClient);
        String profileId = "profileId_example"; // String | 
        String queueId = "queueId_example"; // String | Queue ID to delete
        try {
            ApiResponse<DeleteQueueSlot200Response> response = apiInstance.deleteQueueSlotWithHttpInfo(profileId, queueId);
            System.out.println("Status code: " + response.getStatusCode());
            System.out.println("Response headers: " + response.getHeaders());
            System.out.println("Response body: " + response.getData());
        } catch (ApiException e) {
            System.err.println("Exception when calling QueueApi#deleteQueueSlot");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Response headers: " + e.getResponseHeaders());
            System.err.println("Reason: " + e.getResponseBody());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
profileId String
queueId String Queue ID to delete

Return type

ApiResponse<DeleteQueueSlot200Response>

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Queue schedule deleted -
400 Missing profileId or queueId -
401 Unauthorized -

getNextQueueSlot

GetNextQueueSlot200Response getNextQueueSlot(profileId, queueId)

Get next available slot

Returns the next available queue slot for preview purposes. To create a queue post, use POST /v1/posts with queuedFromProfile instead of scheduledFor.

Example

// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.QueueApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://zernio.com/api");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        QueueApi apiInstance = new QueueApi(defaultClient);
        String profileId = "profileId_example"; // String | 
        String queueId = "queueId_example"; // String | Specific queue ID (optional, defaults to profile's default queue)
        try {
            GetNextQueueSlot200Response result = apiInstance.getNextQueueSlot(profileId, queueId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QueueApi#getNextQueueSlot");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
profileId String
queueId String Specific queue ID (optional, defaults to profile's default queue) [optional]

Return type

GetNextQueueSlot200Response

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Next available slot -
400 Invalid parameters or inactive queue -
401 Unauthorized -
404 Profile or queue schedule not found, or no available slots -

getNextQueueSlotWithHttpInfo

ApiResponse getNextQueueSlot getNextQueueSlotWithHttpInfo(profileId, queueId)

Get next available slot

Returns the next available queue slot for preview purposes. To create a queue post, use POST /v1/posts with queuedFromProfile instead of scheduledFor.

Example

// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.QueueApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://zernio.com/api");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        QueueApi apiInstance = new QueueApi(defaultClient);
        String profileId = "profileId_example"; // String | 
        String queueId = "queueId_example"; // String | Specific queue ID (optional, defaults to profile's default queue)
        try {
            ApiResponse<GetNextQueueSlot200Response> response = apiInstance.getNextQueueSlotWithHttpInfo(profileId, queueId);
            System.out.println("Status code: " + response.getStatusCode());
            System.out.println("Response headers: " + response.getHeaders());
            System.out.println("Response body: " + response.getData());
        } catch (ApiException e) {
            System.err.println("Exception when calling QueueApi#getNextQueueSlot");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Response headers: " + e.getResponseHeaders());
            System.err.println("Reason: " + e.getResponseBody());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
profileId String
queueId String Specific queue ID (optional, defaults to profile's default queue) [optional]

Return type

ApiResponse<GetNextQueueSlot200Response>

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Next available slot -
400 Invalid parameters or inactive queue -
401 Unauthorized -
404 Profile or queue schedule not found, or no available slots -

listQueueSlots

ListQueueSlots200Response listQueueSlots(profileId, queueId, all)

List schedules

Returns queue schedules for a profile. Use all=true for all queues, or queueId for a specific one. Defaults to the default queue.

Example

// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.QueueApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://zernio.com/api");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        QueueApi apiInstance = new QueueApi(defaultClient);
        String profileId = "profileId_example"; // String | Profile ID to get queues for
        String queueId = "queueId_example"; // String | Specific queue ID to retrieve (optional)
        String all = "true"; // String | Set to 'true' to list all queues for the profile
        try {
            ListQueueSlots200Response result = apiInstance.listQueueSlots(profileId, queueId, all);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QueueApi#listQueueSlots");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
profileId String Profile ID to get queues for
queueId String Specific queue ID to retrieve (optional) [optional]
all String Set to 'true' to list all queues for the profile [optional] [enum: true]

Return type

ListQueueSlots200Response

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Queue schedule(s) retrieved -
400 Missing profileId -
401 Unauthorized -
404 Profile not found -

listQueueSlotsWithHttpInfo

ApiResponse listQueueSlots listQueueSlotsWithHttpInfo(profileId, queueId, all)

List schedules

Returns queue schedules for a profile. Use all=true for all queues, or queueId for a specific one. Defaults to the default queue.

Example

// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.QueueApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://zernio.com/api");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        QueueApi apiInstance = new QueueApi(defaultClient);
        String profileId = "profileId_example"; // String | Profile ID to get queues for
        String queueId = "queueId_example"; // String | Specific queue ID to retrieve (optional)
        String all = "true"; // String | Set to 'true' to list all queues for the profile
        try {
            ApiResponse<ListQueueSlots200Response> response = apiInstance.listQueueSlotsWithHttpInfo(profileId, queueId, all);
            System.out.println("Status code: " + response.getStatusCode());
            System.out.println("Response headers: " + response.getHeaders());
            System.out.println("Response body: " + response.getData());
        } catch (ApiException e) {
            System.err.println("Exception when calling QueueApi#listQueueSlots");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Response headers: " + e.getResponseHeaders());
            System.err.println("Reason: " + e.getResponseBody());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
profileId String Profile ID to get queues for
queueId String Specific queue ID to retrieve (optional) [optional]
all String Set to 'true' to list all queues for the profile [optional] [enum: true]

Return type

ApiResponse<ListQueueSlots200Response>

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Queue schedule(s) retrieved -
400 Missing profileId -
401 Unauthorized -
404 Profile not found -

previewQueue

PreviewQueue200Response previewQueue(profileId, queueId, count)

Preview upcoming slots

Returns the next N upcoming queue slot times for a profile as ISO datetime strings.

Example

// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.QueueApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://zernio.com/api");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        QueueApi apiInstance = new QueueApi(defaultClient);
        String profileId = "profileId_example"; // String | 
        String queueId = "queueId_example"; // String | Filter by specific queue ID. Omit to use the default queue.
        Integer count = 20; // Integer | 
        try {
            PreviewQueue200Response result = apiInstance.previewQueue(profileId, queueId, count);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QueueApi#previewQueue");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
profileId String
queueId String Filter by specific queue ID. Omit to use the default queue. [optional]
count Integer [optional] [default to 20]

Return type

PreviewQueue200Response

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Queue slots preview -
400 Invalid parameters -
401 Unauthorized -
404 Profile or queue schedule not found -

previewQueueWithHttpInfo

ApiResponse previewQueue previewQueueWithHttpInfo(profileId, queueId, count)

Preview upcoming slots

Returns the next N upcoming queue slot times for a profile as ISO datetime strings.

Example

// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.QueueApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://zernio.com/api");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        QueueApi apiInstance = new QueueApi(defaultClient);
        String profileId = "profileId_example"; // String | 
        String queueId = "queueId_example"; // String | Filter by specific queue ID. Omit to use the default queue.
        Integer count = 20; // Integer | 
        try {
            ApiResponse<PreviewQueue200Response> response = apiInstance.previewQueueWithHttpInfo(profileId, queueId, count);
            System.out.println("Status code: " + response.getStatusCode());
            System.out.println("Response headers: " + response.getHeaders());
            System.out.println("Response body: " + response.getData());
        } catch (ApiException e) {
            System.err.println("Exception when calling QueueApi#previewQueue");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Response headers: " + e.getResponseHeaders());
            System.err.println("Reason: " + e.getResponseBody());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
profileId String
queueId String Filter by specific queue ID. Omit to use the default queue. [optional]
count Integer [optional] [default to 20]

Return type

ApiResponse<PreviewQueue200Response>

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Queue slots preview -
400 Invalid parameters -
401 Unauthorized -
404 Profile or queue schedule not found -

updateQueueSlot

UpdateQueueSlot200Response updateQueueSlot(updateQueueSlotRequest)

Update schedule

Create a new queue or update an existing one. Without queueId, creates/updates the default queue. With queueId, updates a specific queue. With setAsDefault=true, makes this queue the default for the profile.

Example

// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.QueueApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://zernio.com/api");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        QueueApi apiInstance = new QueueApi(defaultClient);
        UpdateQueueSlotRequest updateQueueSlotRequest = new UpdateQueueSlotRequest(); // UpdateQueueSlotRequest | 
        try {
            UpdateQueueSlot200Response result = apiInstance.updateQueueSlot(updateQueueSlotRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QueueApi#updateQueueSlot");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
updateQueueSlotRequest UpdateQueueSlotRequest

Return type

UpdateQueueSlot200Response

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Queue schedule updated -
400 Invalid request -
401 Unauthorized -
404 Profile not found -

updateQueueSlotWithHttpInfo

ApiResponse updateQueueSlot updateQueueSlotWithHttpInfo(updateQueueSlotRequest)

Update schedule

Create a new queue or update an existing one. Without queueId, creates/updates the default queue. With queueId, updates a specific queue. With setAsDefault=true, makes this queue the default for the profile.

Example

// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.QueueApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://zernio.com/api");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        QueueApi apiInstance = new QueueApi(defaultClient);
        UpdateQueueSlotRequest updateQueueSlotRequest = new UpdateQueueSlotRequest(); // UpdateQueueSlotRequest | 
        try {
            ApiResponse<UpdateQueueSlot200Response> response = apiInstance.updateQueueSlotWithHttpInfo(updateQueueSlotRequest);
            System.out.println("Status code: " + response.getStatusCode());
            System.out.println("Response headers: " + response.getHeaders());
            System.out.println("Response body: " + response.getData());
        } catch (ApiException e) {
            System.err.println("Exception when calling QueueApi#updateQueueSlot");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Response headers: " + e.getResponseHeaders());
            System.err.println("Reason: " + e.getResponseBody());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
updateQueueSlotRequest UpdateQueueSlotRequest

Return type

ApiResponse<UpdateQueueSlot200Response>

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Queue schedule updated -
400 Invalid request -
401 Unauthorized -
404 Profile not found -