Update a proposal

patch

/crmRestApi/resources/11.13.18.05/proposals/{TerrProposalId}

Request

Path Parameters
Header Parameters
  • 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".
  • 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
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Title: Failure Reason Code
    Maximum Length: 60
    The code indicating the reason for failure of the proposal activation.
  • The date when the proposal is activated.
  • Title: Description
    Maximum Length: 240
    A brief description of the proposal and its intended changes.
  • Title: Name
    Maximum Length: 60
    The name of the proposal.
  • Title: Owner ID
    The unique identifier of the resource who initiated the proposal, typically the owner of the territory.
  • Title: Partition Type
    Maximum Length: 30
    Default Value: PRODUCTION
    The code indicating whether or not the proposal is an error correction proposal for territories that were made invalid by dimension, or member changes, by recording whether the proposal is in the Stage or Production partition. The default value is PRODUCTION.
  • Title: Status
    Maximum Length: 30
    Default Value: DRAFT
    The code indicating the status of the proposal. For example, DRAFT or PENDING ACTIVATION.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • 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".
  • 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.
Body ()
Root Schema : proposals-item-response
Type: object
Show Source
  • Title: Failure Reason Code
    Maximum Length: 60
    The code indicating the reason for failure of the proposal activation.
  • The date when the proposal is activated.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    The user who created the record.
  • Title: Creation Date
    Read Only: true
    The date when the record was created.
  • Read Only: true
    Indicates whether a proposal can be deleted.
  • Title: Description
    Maximum Length: 240
    A brief description of the proposal and its intended changes.
  • Title: Last Updated Date
    Read Only: true
    The date when the record was last updated.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    The user who last updated the record.
  • Title: Last Update Login
    Read Only: true
    Maximum Length: 32
    The login of the user who last updated the record.
  • Links
  • Title: Name
    Maximum Length: 60
    The name of the proposal.
  • Title: Owner
    Read Only: true
    Maximum Length: 360
    The display name for the initiator of the proposal.
  • Title: Owner ID
    The unique identifier of the resource who initiated the proposal, typically the owner of the territory.
  • Title: Owner Registry ID
    Read Only: true
    Maximum Length: 30
    The number of the owner.
  • Title: Partition Type
    Maximum Length: 30
    Default Value: PRODUCTION
    The code indicating whether or not the proposal is an error correction proposal for territories that were made invalid by dimension, or member changes, by recording whether the proposal is in the Stage or Production partition. The default value is PRODUCTION.
  • Title: Proposal Number
    Maximum Length: 30
    The alternate key identifier of the proposal.
  • Title: Status
    Maximum Length: 30
    Default Value: DRAFT
    The code indicating the status of the proposal. For example, DRAFT or PENDING ACTIVATION.
  • Title: Territory Proposal ID
    The unique identifier of the proposal.
  • Read Only: true
    Indicates whether a proposal can be updated.
Back to Top

Examples

The following example shows how to update a proposal by submitting a PATCH request on the REST resource using cURL.

cURL Command

curl -v -u sales_cloud_user -H "content-type:application/vnd.oracle.adf.resourceitem+json" -X PATCH "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/proposals/300100129032294"  -d '{request_payload}'

Example of Request Body

The following example shows the contents of the request body in JSON format.

{
"StatusCode":"PENDING ACTIVATION"
}

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
"TerrProposalId": 300100129032294,
"Name": "Rest Proposals",
"Description": null,
"StatusCode": "PENDING ACTIVATION",
"OwnerId": 100010025532672,
"Owner": "Gabrielle Lee",
"PartitionCode": "PRODUCTION",
"ActFailureReasonCode": null,
"ProposalNumber": "CDRM_274065",
"ActivationDateTime": "2016-12-10T23:00:00-08:00",
"UpdateFlag": true,
"DeleteFlag": true,
"links":[
{"rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/proposals/300100129032294",…},
{"rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/proposals/300100129032294",…},
{"rel": "lov", "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/proposals/300100129032294/lov/ValidStatusCodeViewAccessor",…}
]
}
Back to Top