Update a subscription contact
patch
/crmRestApi/resources/11.13.18.05/subscriptions/{SubscriptionNumber}/child/parties/{PartyPuid}/child/contacts/{ContactPuid}
Request
Path Parameters
-
ContactPuid(required): string
The alternate subscription contact.
-
PartyPuid(required): string
The alternate identifier of the party.
-
SubscriptionNumber(required): string
The alternate identifier of the subscription.
Header Parameters
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
AccessLevel: string
Maximum Length:
302
The access level of the contact. -
BillingOwnerFlag: boolean
Maximum Length:
1
Default Value:false
Indicates whether this contact is a billing owner or not. -
ContactEmail: string
Title:
Email
The contact's email address. -
ContactId: integer
(int64)
The unique identifier of the contact.
-
ContactName: string
Title:
Name
The contact name. -
ContactNumber: string
Title:
Party Contact Number
The contact number. -
ContactPuid: string
Maximum Length:
120
The alternate subscription contact. -
ContactRole: string
Title:
Role
Maximum Length:30
The contact role. -
EndDate: string
(date)
The end date of the contact.
-
InternalFlag: boolean
Maximum Length:
1
Default Value:false
Indicates whether this contact is internal or not. -
OwnerFlag: boolean
Title:
Owner
Maximum Length:1
Default Value:false
Indicates whether the contact is the owner. -
PartyId: integer
The unique identifier of the party.
-
StartDate: string
(date)
The start date of the contact.
-
SubscriptionContactId: integer
(int64)
The unique identifier of the subscription contact.
-
SubscriptionId: integer
(int64)
The unique identifier of the subscription.
-
SubscriptionPartyId: integer
(int64)
The unique identifier of the subscription party.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : subscriptions-parties-contacts-item-response
Type:
Show Source
object
-
AccessLevel: string
Maximum Length:
302
The access level of the contact. -
BillingOwnerFlag: boolean
Maximum Length:
1
Default Value:false
Indicates whether this contact is a billing owner or not. -
ContactEmail: string
Title:
Email
The contact's email address. -
ContactId: integer
(int64)
The unique identifier of the contact.
-
ContactName: string
Title:
Name
The contact name. -
ContactNumber: string
Title:
Party Contact Number
The contact number. -
ContactPuid: string
Maximum Length:
120
The alternate subscription contact. -
ContactRole: string
Title:
Role
Maximum Length:30
The contact role. -
CreatedBy: string
Read Only:
true
Maximum Length:64
The user who created the contact. -
CreationDate: string
(date-time)
Read Only:
true
The date when the contact was created. -
EndDate: string
(date)
The end date of the contact.
-
InternalFlag: boolean
Maximum Length:
1
Default Value:false
Indicates whether this contact is internal or not. -
LastUpdateDate: string
(date-time)
Read Only:
true
The date when the contact was last updated. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
The user who last updated the contact. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
The login of the user who last updated the contact. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
ObjectVersionNumber: integer
(int32)
Read Only:
true
The object version number. -
OwnerFlag: boolean
Title:
Owner
Maximum Length:1
Default Value:false
Indicates whether the contact is the owner. -
PartyId: integer
The unique identifier of the party.
-
StartDate: string
(date)
The start date of the contact.
-
SubscriptionContactId: integer
(int64)
The unique identifier of the subscription contact.
-
SubscriptionId: integer
(int64)
The unique identifier of the subscription.
-
SubscriptionPartyId: integer
(int64)
The unique identifier of the subscription party.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object
-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Examples
The following example shows how to update a subscription contact by submitting a PATCH request on the REST resource using cURL.
cURL Command
curl --user
sales_cloud_user -X PATCH -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/subscriptions/GP-5678/child/parties/GP-5678-PRTY-9/child/contacts
Example of Request Body
The following shows the contents of the request body in JSON format.
{ "BillingOwnerFlag": false"} }
Example of Response Body
The following shows the contents of the response body in JSON format.
{ "SubscriptionContactId": 300100177241556, "ContactPuid": "GP-5678-PRTY-9-PCNT-10", "SubscriptionPartyId": 300100177254426, "ContactRole": "ORA_CUSTOMER_CONTACT", "SubscriptionId": 300100177254423, "PartyId": 1001, "ContactId": 1009, "StartDate": null, "EndDate": null, "AccessLevel": null, "BillingOwnerFlag": false, "InternalFlag": false, "ContactName": "Mike Kenton", "ContactEmail": null, "ObjectVersionNumber": 1, "CreatedBy": "CONMGR", "CreationDate": "2019-06-05T03:14:40+00:00", "LastUpdatedBy": "CONMGR", "LastUpdateDate": "2019-06-05T03:14:40.329+00:00", "LastUpdateLogin": "8A5689AE12D939D9E05322EAF40A63A4", ... }