All URIs are relative to https://us1.pdfgeneratorapi.com/api/v4
| Method | HTTP request | Description |
|---|---|---|
| createWorkspace | POST /workspaces | Create workspace |
| deleteWorkspace | DELETE /workspaces/{workspaceIdentifier} | Delete workspace |
| getWorkspace | GET /workspaces/{workspaceIdentifier} | Get workspace |
| getWorkspaces | GET /workspaces | Get workspaces |
CreateWorkspace201Response createWorkspace(createWorkspaceRequest)
Create workspace
Creates a regular workspace with identifier specified in the request.
// Import classes:
import org.pdfgeneratorapi.client.ApiClient;
import org.pdfgeneratorapi.client.ApiException;
import org.pdfgeneratorapi.client.Configuration;
import org.pdfgeneratorapi.client.auth.*;
import org.pdfgeneratorapi.client.models.*;
import org.pdfgeneratorapi.client.api.WorkspacesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://us1.pdfgeneratorapi.com/api/v4");
// Configure HTTP bearer authorization: JSONWebTokenAuth
HttpBearerAuth JSONWebTokenAuth = (HttpBearerAuth) defaultClient.getAuthentication("JSONWebTokenAuth");
JSONWebTokenAuth.setBearerToken("BEARER TOKEN");
WorkspacesApi apiInstance = new WorkspacesApi(defaultClient);
CreateWorkspaceRequest createWorkspaceRequest = new CreateWorkspaceRequest(); // CreateWorkspaceRequest |
try {
CreateWorkspace201Response result = apiInstance.createWorkspace(createWorkspaceRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkspacesApi#createWorkspace");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| createWorkspaceRequest | CreateWorkspaceRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Workspace information | - |
| 401 | Unauthorized | - |
| 402 | Account Suspended | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too Many Requests | - |
| 500 | Internal Server Error | - |
deleteWorkspace(workspaceIdentifier)
Delete workspace
Delete workspace. Only regular workspaces can be deleted.
// Import classes:
import org.pdfgeneratorapi.client.ApiClient;
import org.pdfgeneratorapi.client.ApiException;
import org.pdfgeneratorapi.client.Configuration;
import org.pdfgeneratorapi.client.auth.*;
import org.pdfgeneratorapi.client.models.*;
import org.pdfgeneratorapi.client.api.WorkspacesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://us1.pdfgeneratorapi.com/api/v4");
// Configure HTTP bearer authorization: JSONWebTokenAuth
HttpBearerAuth JSONWebTokenAuth = (HttpBearerAuth) defaultClient.getAuthentication("JSONWebTokenAuth");
JSONWebTokenAuth.setBearerToken("BEARER TOKEN");
WorkspacesApi apiInstance = new WorkspacesApi(defaultClient);
String workspaceIdentifier = "demo.example@actualreports.com"; // String | Workspace identifier
try {
apiInstance.deleteWorkspace(workspaceIdentifier);
} catch (ApiException e) {
System.err.println("Exception when calling WorkspacesApi#deleteWorkspace");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workspaceIdentifier | String | Workspace identifier |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | The resource was deleted successfully. | - |
| 401 | Unauthorized | - |
| 402 | Account Suspended | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too Many Requests | - |
| 500 | Internal Server Error | - |
CreateWorkspace201Response getWorkspace(workspaceIdentifier)
Get workspace
Returns workspace information for the workspace identifier specified in the request.
// Import classes:
import org.pdfgeneratorapi.client.ApiClient;
import org.pdfgeneratorapi.client.ApiException;
import org.pdfgeneratorapi.client.Configuration;
import org.pdfgeneratorapi.client.auth.*;
import org.pdfgeneratorapi.client.models.*;
import org.pdfgeneratorapi.client.api.WorkspacesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://us1.pdfgeneratorapi.com/api/v4");
// Configure HTTP bearer authorization: JSONWebTokenAuth
HttpBearerAuth JSONWebTokenAuth = (HttpBearerAuth) defaultClient.getAuthentication("JSONWebTokenAuth");
JSONWebTokenAuth.setBearerToken("BEARER TOKEN");
WorkspacesApi apiInstance = new WorkspacesApi(defaultClient);
String workspaceIdentifier = "demo.example@actualreports.com"; // String | Workspace identifier
try {
CreateWorkspace201Response result = apiInstance.getWorkspace(workspaceIdentifier);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkspacesApi#getWorkspace");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workspaceIdentifier | String | Workspace identifier |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workspace information | - |
| 401 | Unauthorized | - |
| 402 | Account Suspended | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too Many Requests | - |
| 500 | Internal Server Error | - |
GetWorkspaces200Response getWorkspaces(page, perPage)
Get workspaces
Returns all workspaces in the organization
// Import classes:
import org.pdfgeneratorapi.client.ApiClient;
import org.pdfgeneratorapi.client.ApiException;
import org.pdfgeneratorapi.client.Configuration;
import org.pdfgeneratorapi.client.auth.*;
import org.pdfgeneratorapi.client.models.*;
import org.pdfgeneratorapi.client.api.WorkspacesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://us1.pdfgeneratorapi.com/api/v4");
// Configure HTTP bearer authorization: JSONWebTokenAuth
HttpBearerAuth JSONWebTokenAuth = (HttpBearerAuth) defaultClient.getAuthentication("JSONWebTokenAuth");
JSONWebTokenAuth.setBearerToken("BEARER TOKEN");
WorkspacesApi apiInstance = new WorkspacesApi(defaultClient);
Integer page = 1; // Integer | Pagination: page to return
Integer perPage = 15; // Integer | Pagination: How many records to return per page
try {
GetWorkspaces200Response result = apiInstance.getWorkspaces(page, perPage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkspacesApi#getWorkspaces");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| page | Integer | Pagination: page to return | [optional] [default to 1] |
| perPage | Integer | Pagination: How many records to return per page | [optional] [default to 15] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | An array of workspace objects | - |
| 401 | Unauthorized | - |
| 402 | Account Suspended | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too Many Requests | - |
| 500 | Internal Server Error | - |