All URIs are relative to https://<tenantHostname>/staffing/v6
Method | HTTP request | Description |
---|---|---|
getCollection | GET /jobs | Retrieves a collection of jobs. |
getJobById | GET /jobs/{ID} | Retrieves a single job instance. |
getWorkspace | GET /jobs/{ID}/workspace/{subresourceID} | Retrieves a single workspace instance. |
getWorkspaces | GET /jobs/{ID}/workspace | Retrieves a collection of workspaces for the specified job ID. |
JobsGetCollectionResponse getCollection().limit(limit).offset(offset).execute();
Retrieves a collection of jobs.
Retrieves a collection of jobs. Secured by: Worker Position: View Scope: Staffing
import com.konfigthis.client.ApiClient;
import com.konfigthis.client.ApiException;
import com.konfigthis.client.ApiResponse;
import com.konfigthis.client.WorkdayStaffing;
import com.konfigthis.client.Configuration;
import com.konfigthis.client.model.*;
import com.konfigthis.client.api.JobsApi;
import java.util.List;
import java.util.Map;
import java.util.UUID;
public class Example {
public static void main(String[] args) {
Configuration configuration = new Configuration();
configuration.host = "https://<tenantHostname>/staffing/v6";
WorkdayStaffing client = new WorkdayStaffing(configuration);
Long limit = 56L; // The maximum number of objects in a single response. The default is 20. The maximum is 100.
Long offset = 56L; // The zero-based index of the first object in a response collection. The default is 0. Use offset with the limit parameter to control paging of a response collection. Example: If limit is 5 and offset is 9, the response returns a collection of 5 objects starting with the 10th object.
try {
JobsGetCollectionResponse result = client
.jobs
.getCollection()
.limit(limit)
.offset(offset)
.execute();
System.out.println(result);
System.out.println(result.getData());
System.out.println(result.getTotal());
} catch (ApiException e) {
System.err.println("Exception when calling JobsApi#getCollection");
System.err.println("Status code: " + e.getStatusCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
// Use .executeWithHttpInfo() to retrieve HTTP Status Code, Headers and Request
try {
ApiResponse<JobsGetCollectionResponse> response = client
.jobs
.getCollection()
.limit(limit)
.offset(offset)
.executeWithHttpInfo();
System.out.println(response.getResponseBody());
System.out.println(response.getResponseHeaders());
System.out.println(response.getStatusCode());
System.out.println(response.getRoundTripTime());
System.out.println(response.getRequest());
} catch (ApiException e) {
System.err.println("Exception when calling JobsApi#getCollection");
System.err.println("Status code: " + e.getStatusCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
limit | Long | The maximum number of objects in a single response. The default is 20. The maximum is 100. | [optional] |
offset | Long | The zero-based index of the first object in a response collection. The default is 0. Use offset with the limit parameter to control paging of a response collection. Example: If limit is 5 and offset is 9, the response returns a collection of 5 objects starting with the 10th object. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response. A successful response can return no matched data. | - |
0 | An error occurred. | - |
JobData1bfa8925c50510000ae4479925510026 getJobById(ID).execute();
Retrieves a single job instance.
Retrieves a job with the specified job ID. Secured by: Worker Position: View Scope: Staffing
import com.konfigthis.client.ApiClient;
import com.konfigthis.client.ApiException;
import com.konfigthis.client.ApiResponse;
import com.konfigthis.client.WorkdayStaffing;
import com.konfigthis.client.Configuration;
import com.konfigthis.client.model.*;
import com.konfigthis.client.api.JobsApi;
import java.util.List;
import java.util.Map;
import java.util.UUID;
public class Example {
public static void main(String[] args) {
Configuration configuration = new Configuration();
configuration.host = "https://<tenantHostname>/staffing/v6";
WorkdayStaffing client = new WorkdayStaffing(configuration);
String ID = "ID_example"; // The Workday ID of the resource.
try {
JobData1bfa8925c50510000ae4479925510026 result = client
.jobs
.getJobById(ID)
.execute();
System.out.println(result);
System.out.println(result.getLocation());
System.out.println(result.getBusinessTitle());
System.out.println(result.getWorker());
System.out.println(result.getSupervisoryOrganization());
System.out.println(result.getNextPayPeriodStartDate());
System.out.println(result.getJobType());
System.out.println(result.getJobProfile());
System.out.println(result.getId());
System.out.println(result.getDescriptor());
} catch (ApiException e) {
System.err.println("Exception when calling JobsApi#getJobById");
System.err.println("Status code: " + e.getStatusCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
// Use .executeWithHttpInfo() to retrieve HTTP Status Code, Headers and Request
try {
ApiResponse<JobData1bfa8925c50510000ae4479925510026> response = client
.jobs
.getJobById(ID)
.executeWithHttpInfo();
System.out.println(response.getResponseBody());
System.out.println(response.getResponseHeaders());
System.out.println(response.getStatusCode());
System.out.println(response.getRoundTripTime());
System.out.println(response.getRequest());
} catch (ApiException e) {
System.err.println("Exception when calling JobsApi#getJobById");
System.err.println("Status code: " + e.getStatusCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ID | String | The Workday ID of the resource. |
JobData1bfa8925c50510000ae4479925510026
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response. A successful response can return no matched data. | - |
0 | An error occurred. | - |
JobWorkspaceData1005157e3d631000144205466a6c13d3 getWorkspace(ID, subresourceID).execute();
Retrieves a single workspace instance.
Retrieves a single workspace for the specified job ID. Secured by: Worker Data: Public Worker Reports Scope: Staffing
import com.konfigthis.client.ApiClient;
import com.konfigthis.client.ApiException;
import com.konfigthis.client.ApiResponse;
import com.konfigthis.client.WorkdayStaffing;
import com.konfigthis.client.Configuration;
import com.konfigthis.client.model.*;
import com.konfigthis.client.api.JobsApi;
import java.util.List;
import java.util.Map;
import java.util.UUID;
public class Example {
public static void main(String[] args) {
Configuration configuration = new Configuration();
configuration.host = "https://<tenantHostname>/staffing/v6";
WorkdayStaffing client = new WorkdayStaffing(configuration);
String ID = "ID_example"; // The Workday ID of the resource.
String subresourceID = "subresourceID_example"; // The Workday ID of the subresource.
try {
JobWorkspaceData1005157e3d631000144205466a6c13d3 result = client
.jobs
.getWorkspace(ID, subresourceID)
.execute();
System.out.println(result);
System.out.println(result.getLocationChain());
System.out.println(result.getId());
System.out.println(result.getDescriptor());
} catch (ApiException e) {
System.err.println("Exception when calling JobsApi#getWorkspace");
System.err.println("Status code: " + e.getStatusCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
// Use .executeWithHttpInfo() to retrieve HTTP Status Code, Headers and Request
try {
ApiResponse<JobWorkspaceData1005157e3d631000144205466a6c13d3> response = client
.jobs
.getWorkspace(ID, subresourceID)
.executeWithHttpInfo();
System.out.println(response.getResponseBody());
System.out.println(response.getResponseHeaders());
System.out.println(response.getStatusCode());
System.out.println(response.getRoundTripTime());
System.out.println(response.getRequest());
} catch (ApiException e) {
System.err.println("Exception when calling JobsApi#getWorkspace");
System.err.println("Status code: " + e.getStatusCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ID | String | The Workday ID of the resource. | |
subresourceID | String | The Workday ID of the subresource. |
JobWorkspaceData1005157e3d631000144205466a6c13d3
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response. A successful response can return no matched data. | - |
0 | An error occurred. | - |
JobsGetWorkspacesResponse getWorkspaces(ID).limit(limit).offset(offset).execute();
Retrieves a collection of workspaces for the specified job ID.
Retrieves a collection of workspaces for the specified job ID. Secured by: Worker Data: Public Worker Reports Scope: Staffing
import com.konfigthis.client.ApiClient;
import com.konfigthis.client.ApiException;
import com.konfigthis.client.ApiResponse;
import com.konfigthis.client.WorkdayStaffing;
import com.konfigthis.client.Configuration;
import com.konfigthis.client.model.*;
import com.konfigthis.client.api.JobsApi;
import java.util.List;
import java.util.Map;
import java.util.UUID;
public class Example {
public static void main(String[] args) {
Configuration configuration = new Configuration();
configuration.host = "https://<tenantHostname>/staffing/v6";
WorkdayStaffing client = new WorkdayStaffing(configuration);
String ID = "ID_example"; // The Workday ID of the resource.
Long limit = 56L; // The maximum number of objects in a single response. The default is 20. The maximum is 100.
Long offset = 56L; // The zero-based index of the first object in a response collection. The default is 0. Use offset with the limit parameter to control paging of a response collection. Example: If limit is 5 and offset is 9, the response returns a collection of 5 objects starting with the 10th object.
try {
JobsGetWorkspacesResponse result = client
.jobs
.getWorkspaces(ID)
.limit(limit)
.offset(offset)
.execute();
System.out.println(result);
System.out.println(result.getData());
System.out.println(result.getTotal());
} catch (ApiException e) {
System.err.println("Exception when calling JobsApi#getWorkspaces");
System.err.println("Status code: " + e.getStatusCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
// Use .executeWithHttpInfo() to retrieve HTTP Status Code, Headers and Request
try {
ApiResponse<JobsGetWorkspacesResponse> response = client
.jobs
.getWorkspaces(ID)
.limit(limit)
.offset(offset)
.executeWithHttpInfo();
System.out.println(response.getResponseBody());
System.out.println(response.getResponseHeaders());
System.out.println(response.getStatusCode());
System.out.println(response.getRoundTripTime());
System.out.println(response.getRequest());
} catch (ApiException e) {
System.err.println("Exception when calling JobsApi#getWorkspaces");
System.err.println("Status code: " + e.getStatusCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ID | String | The Workday ID of the resource. | |
limit | Long | The maximum number of objects in a single response. The default is 20. The maximum is 100. | [optional] |
offset | Long | The zero-based index of the first object in a response collection. The default is 0. Use offset with the limit parameter to control paging of a response collection. Example: If limit is 5 and offset is 9, the response returns a collection of 5 objects starting with the 10th object. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response. A successful response can return no matched data. | - |
0 | An error occurred. | - |