Update a contact marketing roster
patch
/services/rest/connect/v1.4/contactMarketingRosters/{id}
Request
Path Parameters
-
id: integer
The unique identifier of the contact marketing roster.
The information about the contact lists used in audiences in Oracle B2C Service Outreach Cloud Service.
Root Schema : contactMarketingRosters
Type:
object
The information about the contact lists used in audiences in Oracle B2C Service Outreach Cloud Service.
Show Source
-
comment(optional):
[
"string",
"null"
]
Maximum Length:
1333
The description associated with the contact marketing roster. -
createdByAccount(optional):
[
"object",
"null"
]
The account represents a staff member in Oracle B2C Service. Examples of staff members are customer sales representatives, sales agents, site administrators, and so on. It is the reference to a resource in 'accounts' collection. Only ID or lookupName can be provided to specify the resource.
-
createdTime(optional):
string
The date and time when the contact marketing roster was created. This attribute is read-only.
-
id(optional):
integer
Minimum Value:
1
Maximum Value:9.223372036854776E18
The unique identifier of the contact marketing roster. -
interface(optional):
object interface
The console, windows, and pages used by staff members and customers to access the application and interact with a single knowledge base. The interface name determines the URL for the web site, the name of the system executables, and the .cfg directory name. It is the reference to a resource in 'siteInterfaces' collection. Only ID or lookupName can be provided to specify the resource.
-
isProofList(optional):
boolean
Indicates whether the contact marketing roster is a proof list.
-
lastCountStatistics(optional):
object contactMarketingRosters-lastCountStatistics
The last count-related information of the contact marketing roster.
-
lookupName(optional):
string
Maximum Length:
255
The name used to look up the contact marketing roster. -
name(optional):
string
Maximum Length:
80
Pattern:^[^ ]*$
The name of the contact marketing roster. -
purgeData(optional):
boolean
Indicates whether the contact marketing roster should be cleared periodically. The default value is false.
-
updatedByAccount(optional):
[
"object",
"null"
]
The account represents a staff member in Oracle B2C Service. Examples of staff members are customer sales representatives, sales agents, site administrators, and so on. It is the reference to a resource in 'accounts' collection. Only ID or lookupName can be provided to specify the resource.
-
updatedTime(optional):
string
The date and time when the contact marketing roster was last updated. This attribute is read-only.
Nested Schema : interface
Type:
object
The console, windows, and pages used by staff members and customers to access the application and interact with a single knowledge base. The interface name determines the URL for the web site, the name of the system executables, and the .cfg directory name. It is the reference to a resource in 'siteInterfaces' collection. Only ID or lookupName can be provided to specify the resource.
Nested Schema : contactMarketingRosters-lastCountStatistics
Type:
object
The last count-related information of the contact marketing roster.
Show Source
-
lastCount(optional):
integer
Minimum Value:
0
Maximum Value:2147483647
The number of contacts in the contact marketing roster when the count was last calculated. -
lastCountedTime(optional):
string
The date and time when the contact marketing roster was last counted.
Response
Default Response
Examples
Use the PATCH operation with the following syntax to partially update a contact marketing roster object:
https://your_site_interface/services/rest/connect/version/contactMarketingRosters/contact_id
Include the data to be updated in the request body. Only the fields present in the request JSON data are updated. All other fields remain the same.
Request URI example
https://mysite.example.com/services/rest/connect/v1.4/contactMarketingRosters/1
Request body example
{
"name" : "General Contacts"
}
Response body example
The status 200 OK
is returned. Then getting the data for contact marketing roster 1 returns the following:
{
"id": 1,
"lookupName": "General Contacts",
"createdTime": "2009-01-14T15:17:39.000Z",
"updatedTime": "2018-04-17T10:24:40.000Z",
"comment": null,
"createdByAccount": {
"links": [
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/v1.4/accounts/2"
}
...
Note:
The name has been updated from "Sample Contacts" to "General Contacts".