All URIs are relative to https://your-api-subdomain.onelogin.com
Method | HTTP request | Description |
---|---|---|
createBrand | POST /api/2/branding/brands | Create Brand |
deleteBrand | DELETE /api/2/branding/brands/{brand_id} | Delete Brand |
getBrand | GET /api/2/branding/brands/{brand_id} | Get Brand |
getBrandApps | GET /api/2/branding/brands/{brand_id}/apps | Get Brand Apps |
listBrands | GET /api/2/branding/brands | List Account Brands |
updateBrand | PUT /api/2/branding/brands/{brand_id} | Update Brand |
Brand createBrand(brand)
Create Brand
Create a new Account Brand
// Import classes:
import com.onelogin.client.ApiClient;
import com.onelogin.client.ApiException;
import com.onelogin.client.Configuration;
import com.onelogin.client.auth.*;
import com.onelogin.client.models.*;
import com.onelogin.client.api.BrandingServiceApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-api-subdomain.onelogin.com");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
BrandingServiceApi apiInstance = new BrandingServiceApi(defaultClient);
Brand brand = new Brand(); // Brand |
try {
Brand result = apiInstance.createBrand(brand);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BrandingServiceApi#createBrand");
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 |
---|---|---|---|
brand | Brand | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
401 | Unauthorized | - |
422 | Unprocessable Entity | - |
deleteBrand(brandId)
Delete Brand
Delete Brand
// Import classes:
import com.onelogin.client.ApiClient;
import com.onelogin.client.ApiException;
import com.onelogin.client.Configuration;
import com.onelogin.client.auth.*;
import com.onelogin.client.models.*;
import com.onelogin.client.api.BrandingServiceApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-api-subdomain.onelogin.com");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
BrandingServiceApi apiInstance = new BrandingServiceApi(defaultClient);
Integer brandId = 9; // Integer | Unique identifier for the branding object.
try {
apiInstance.deleteBrand(brandId);
} catch (ApiException e) {
System.err.println("Exception when calling BrandingServiceApi#deleteBrand");
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 |
---|---|---|---|
brandId | Integer | Unique identifier for the branding object. |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
401 | Unauthorized | - |
404 | Not Found | - |
Brand getBrand(brandId)
Get Brand
Retrieve a single brand via ID
// Import classes:
import com.onelogin.client.ApiClient;
import com.onelogin.client.ApiException;
import com.onelogin.client.Configuration;
import com.onelogin.client.auth.*;
import com.onelogin.client.models.*;
import com.onelogin.client.api.BrandingServiceApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-api-subdomain.onelogin.com");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
BrandingServiceApi apiInstance = new BrandingServiceApi(defaultClient);
Integer brandId = 9; // Integer | Unique identifier for the branding object.
try {
Brand result = apiInstance.getBrand(brandId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BrandingServiceApi#getBrand");
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 |
---|---|---|---|
brandId | Integer | Unique identifier for the branding object. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
401 | Unauthorized | - |
404 | Not Found | - |
List<BrandApp> getBrandApps(brandId)
Get Brand Apps
Get Apps Associated with Account Brand
// Import classes:
import com.onelogin.client.ApiClient;
import com.onelogin.client.ApiException;
import com.onelogin.client.Configuration;
import com.onelogin.client.auth.*;
import com.onelogin.client.models.*;
import com.onelogin.client.api.BrandingServiceApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-api-subdomain.onelogin.com");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
BrandingServiceApi apiInstance = new BrandingServiceApi(defaultClient);
Integer brandId = 9; // Integer | Unique identifier for the branding object.
try {
List<BrandApp> result = apiInstance.getBrandApps(brandId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BrandingServiceApi#getBrandApps");
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 |
---|---|---|---|
brandId | Integer | Unique identifier for the branding object. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
401 | Unauthorized | - |
404 | Not Found | - |
List<BrandReq> listBrands()
List Account Brands
List Account Brands
// Import classes:
import com.onelogin.client.ApiClient;
import com.onelogin.client.ApiException;
import com.onelogin.client.Configuration;
import com.onelogin.client.auth.*;
import com.onelogin.client.models.*;
import com.onelogin.client.api.BrandingServiceApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-api-subdomain.onelogin.com");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
BrandingServiceApi apiInstance = new BrandingServiceApi(defaultClient);
try {
List<BrandReq> result = apiInstance.listBrands();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BrandingServiceApi#listBrands");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
Brand updateBrand(brandId, requestBrand)
Update Brand
Update Account Brand
// Import classes:
import com.onelogin.client.ApiClient;
import com.onelogin.client.ApiException;
import com.onelogin.client.Configuration;
import com.onelogin.client.auth.*;
import com.onelogin.client.models.*;
import com.onelogin.client.api.BrandingServiceApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-api-subdomain.onelogin.com");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
BrandingServiceApi apiInstance = new BrandingServiceApi(defaultClient);
Integer brandId = 9; // Integer | Unique identifier for the branding object.
RequestBrand requestBrand = new RequestBrand(); // RequestBrand |
try {
Brand result = apiInstance.updateBrand(brandId, requestBrand);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BrandingServiceApi#updateBrand");
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 |
---|---|---|---|
brandId | Integer | Unique identifier for the branding object. | |
requestBrand | RequestBrand | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
401 | Unauthorized | - |
422 | Unprocessable Entity | - |