All URIs are relative to https://zernio.com/api
| Method | HTTP request | Description |
|---|---|---|
| bulkCreateContacts | POST /v1/contacts/bulk | Bulk create contacts |
| bulkCreateContactsWithHttpInfo | POST /v1/contacts/bulk | Bulk create contacts |
| createContact | POST /v1/contacts | Create contact |
| createContactWithHttpInfo | POST /v1/contacts | Create contact |
| deleteContact | DELETE /v1/contacts/{contactId} | Delete contact |
| deleteContactWithHttpInfo | DELETE /v1/contacts/{contactId} | Delete contact |
| getContact | GET /v1/contacts/{contactId} | Get contact |
| getContactWithHttpInfo | GET /v1/contacts/{contactId} | Get contact |
| getContactChannels | GET /v1/contacts/{contactId}/channels | List channels for a contact |
| getContactChannelsWithHttpInfo | GET /v1/contacts/{contactId}/channels | List channels for a contact |
| listContacts | GET /v1/contacts | List contacts |
| listContactsWithHttpInfo | GET /v1/contacts | List contacts |
| updateContact | PATCH /v1/contacts/{contactId} | Update contact |
| updateContactWithHttpInfo | PATCH /v1/contacts/{contactId} | Update contact |
BulkCreateContacts200Response bulkCreateContacts(bulkCreateContactsRequest)
Bulk create contacts
Import up to 1000 contacts at a time. Skips duplicates.
// 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.ContactsApi;
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");
ContactsApi apiInstance = new ContactsApi(defaultClient);
BulkCreateContactsRequest bulkCreateContactsRequest = new BulkCreateContactsRequest(); // BulkCreateContactsRequest |
try {
BulkCreateContacts200Response result = apiInstance.bulkCreateContacts(bulkCreateContactsRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#bulkCreateContacts");
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 |
|---|---|---|---|
| bulkCreateContactsRequest | BulkCreateContactsRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Bulk import results | - |
| 401 | Unauthorized | - |
ApiResponse bulkCreateContacts bulkCreateContactsWithHttpInfo(bulkCreateContactsRequest)
Bulk create contacts
Import up to 1000 contacts at a time. Skips duplicates.
// 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.ContactsApi;
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");
ContactsApi apiInstance = new ContactsApi(defaultClient);
BulkCreateContactsRequest bulkCreateContactsRequest = new BulkCreateContactsRequest(); // BulkCreateContactsRequest |
try {
ApiResponse<BulkCreateContacts200Response> response = apiInstance.bulkCreateContactsWithHttpInfo(bulkCreateContactsRequest);
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 ContactsApi#bulkCreateContacts");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| bulkCreateContactsRequest | BulkCreateContactsRequest |
ApiResponse<BulkCreateContacts200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Bulk import results | - |
| 401 | Unauthorized | - |
CreateContact200Response createContact(createContactRequest)
Create contact
Create a new contact. Optionally create a platform channel in the same request by providing accountId, platform, and platformIdentifier.
// 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.ContactsApi;
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");
ContactsApi apiInstance = new ContactsApi(defaultClient);
CreateContactRequest createContactRequest = new CreateContactRequest(); // CreateContactRequest |
try {
CreateContact200Response result = apiInstance.createContact(createContactRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#createContact");
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 |
|---|---|---|---|
| createContactRequest | CreateContactRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Contact created | - |
| 401 | Unauthorized | - |
| 409 | Duplicate contact | - |
ApiResponse createContact createContactWithHttpInfo(createContactRequest)
Create contact
Create a new contact. Optionally create a platform channel in the same request by providing accountId, platform, and platformIdentifier.
// 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.ContactsApi;
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");
ContactsApi apiInstance = new ContactsApi(defaultClient);
CreateContactRequest createContactRequest = new CreateContactRequest(); // CreateContactRequest |
try {
ApiResponse<CreateContact200Response> response = apiInstance.createContactWithHttpInfo(createContactRequest);
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 ContactsApi#createContact");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| createContactRequest | CreateContactRequest |
ApiResponse<CreateContact200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Contact created | - |
| 401 | Unauthorized | - |
| 409 | Duplicate contact | - |
void deleteContact(contactId)
Delete contact
Permanently deletes a contact and all associated channels.
// 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.ContactsApi;
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");
ContactsApi apiInstance = new ContactsApi(defaultClient);
String contactId = "contactId_example"; // String |
try {
apiInstance.deleteContact(contactId);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#deleteContact");
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 |
|---|---|---|---|
| contactId | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Contact deleted | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse deleteContact deleteContactWithHttpInfo(contactId)
Delete contact
Permanently deletes a contact and all associated channels.
// 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.ContactsApi;
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");
ContactsApi apiInstance = new ContactsApi(defaultClient);
String contactId = "contactId_example"; // String |
try {
ApiResponse<Void> response = apiInstance.deleteContactWithHttpInfo(contactId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#deleteContact");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contactId | String |
ApiResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Contact deleted | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
GetContact200Response getContact(contactId)
Get contact
Returns a contact with all associated messaging channels.
// 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.ContactsApi;
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");
ContactsApi apiInstance = new ContactsApi(defaultClient);
String contactId = "contactId_example"; // String |
try {
GetContact200Response result = apiInstance.getContact(contactId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#getContact");
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 |
|---|---|---|---|
| contactId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Contact with channels | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse getContact getContactWithHttpInfo(contactId)
Get contact
Returns a contact with all associated messaging channels.
// 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.ContactsApi;
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");
ContactsApi apiInstance = new ContactsApi(defaultClient);
String contactId = "contactId_example"; // String |
try {
ApiResponse<GetContact200Response> response = apiInstance.getContactWithHttpInfo(contactId);
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 ContactsApi#getContact");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contactId | String |
ApiResponse<GetContact200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Contact with channels | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
GetContactChannels200Response getContactChannels(contactId)
List channels for a contact
Returns all messaging channels linked to a contact (e.g. Instagram DM, Telegram, WhatsApp).
// 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.ContactsApi;
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");
ContactsApi apiInstance = new ContactsApi(defaultClient);
String contactId = "contactId_example"; // String |
try {
GetContactChannels200Response result = apiInstance.getContactChannels(contactId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#getContactChannels");
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 |
|---|---|---|---|
| contactId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of contact channels | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse getContactChannels getContactChannelsWithHttpInfo(contactId)
List channels for a contact
Returns all messaging channels linked to a contact (e.g. Instagram DM, Telegram, WhatsApp).
// 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.ContactsApi;
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");
ContactsApi apiInstance = new ContactsApi(defaultClient);
String contactId = "contactId_example"; // String |
try {
ApiResponse<GetContactChannels200Response> response = apiInstance.getContactChannelsWithHttpInfo(contactId);
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 ContactsApi#getContactChannels");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contactId | String |
ApiResponse<GetContactChannels200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of contact channels | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ListContacts200Response listContacts(profileId, search, tag, platform, isSubscribed, limit, skip)
List contacts
List and search contacts for a profile. Supports filtering by tags, platform, subscription status, and full-text search.
// 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.ContactsApi;
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");
ContactsApi apiInstance = new ContactsApi(defaultClient);
String profileId = "profileId_example"; // String | Filter by profile. Omit to list across all profiles
String search = "search_example"; // String |
String tag = "tag_example"; // String |
String platform = "instagram"; // String |
String isSubscribed = "true"; // String |
Integer limit = 50; // Integer |
Integer skip = 0; // Integer |
try {
ListContacts200Response result = apiInstance.listContacts(profileId, search, tag, platform, isSubscribed, limit, skip);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#listContacts");
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 |
|---|---|---|---|
| profileId | String | Filter by profile. Omit to list across all profiles | [optional] |
| search | String | [optional] | |
| tag | String | [optional] | |
| platform | String | [optional] [enum: instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp] | |
| isSubscribed | String | [optional] [enum: true, false] | |
| limit | Integer | [optional] [default to 50] | |
| skip | Integer | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Contacts list with pagination and filter metadata | - |
| 401 | Unauthorized | - |
ApiResponse listContacts listContactsWithHttpInfo(profileId, search, tag, platform, isSubscribed, limit, skip)
List contacts
List and search contacts for a profile. Supports filtering by tags, platform, subscription status, and full-text search.
// 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.ContactsApi;
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");
ContactsApi apiInstance = new ContactsApi(defaultClient);
String profileId = "profileId_example"; // String | Filter by profile. Omit to list across all profiles
String search = "search_example"; // String |
String tag = "tag_example"; // String |
String platform = "instagram"; // String |
String isSubscribed = "true"; // String |
Integer limit = 50; // Integer |
Integer skip = 0; // Integer |
try {
ApiResponse<ListContacts200Response> response = apiInstance.listContactsWithHttpInfo(profileId, search, tag, platform, isSubscribed, limit, skip);
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 ContactsApi#listContacts");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| profileId | String | Filter by profile. Omit to list across all profiles | [optional] |
| search | String | [optional] | |
| tag | String | [optional] | |
| platform | String | [optional] [enum: instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp] | |
| isSubscribed | String | [optional] [enum: true, false] | |
| limit | Integer | [optional] [default to 50] | |
| skip | Integer | [optional] [default to 0] |
ApiResponse<ListContacts200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Contacts list with pagination and filter metadata | - |
| 401 | Unauthorized | - |
UpdateContact200Response updateContact(contactId, updateContactRequest)
Update contact
Update one or more fields on a contact. Only provided fields are changed.
// 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.ContactsApi;
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");
ContactsApi apiInstance = new ContactsApi(defaultClient);
String contactId = "contactId_example"; // String |
UpdateContactRequest updateContactRequest = new UpdateContactRequest(); // UpdateContactRequest |
try {
UpdateContact200Response result = apiInstance.updateContact(contactId, updateContactRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#updateContact");
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 |
|---|---|---|---|
| contactId | String | ||
| updateContactRequest | UpdateContactRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Contact updated | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse updateContact updateContactWithHttpInfo(contactId, updateContactRequest)
Update contact
Update one or more fields on a contact. Only provided fields are changed.
// 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.ContactsApi;
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");
ContactsApi apiInstance = new ContactsApi(defaultClient);
String contactId = "contactId_example"; // String |
UpdateContactRequest updateContactRequest = new UpdateContactRequest(); // UpdateContactRequest |
try {
ApiResponse<UpdateContact200Response> response = apiInstance.updateContactWithHttpInfo(contactId, updateContactRequest);
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 ContactsApi#updateContact");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contactId | String | ||
| updateContactRequest | UpdateContactRequest | [optional] |
ApiResponse<UpdateContact200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Contact updated | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |