Update an asset resource

patch

/crmRestApi/resources/11.13.18.05/assets/{AssetId}/child/assetResources/{AssetResourceId}

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: Asset ID
    The unique identifier of the Asset.
  • Title: Email
    The e-mail address of the asset team member.
  • Title: Function
    Maximum Length: 30
    The code indicating the role of an asset resource in the resource team such as Integrator, Executive Sponsor, and Technical Account Manager. A list of valid values is defined in the lookup FND_LOOKUPS.
  • Title: Owner
    Indicates whether the asset resource is the owner of the asset.
  • Title: Resource Party ID
    The identifier of the party associated with the asset resource.
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 : assets-assetResources-item-response
Type: object
Show Source
Back to Top

Examples

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

cURL Command

curl -u <username:password> \ -X PATCH -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/assets/785805215/child/assetResources/300100168153882

Example of Request Body

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

{		
	"ResourceId": 28709      			  
}

Example of Response Body

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

{
    "AssetResourceId": 300100168153882,
    "AssetId": 785805215,
    "ResourceId": 28709,
    "MemberFunctionCode": null,
    "CreatedBy": "SALES_ADMIN",
    "CreationDate": "2018-09-25T10:07:21+00:00",
    "LastUpdatedBy": "SALES_ADMIN",
    "LastUpdateDate": "2018-09-25T10:11:55+00:00",
    "LastUpdateLogin": "76AF2964E73B33C2E053773AF80A77BF",
    "PartyName": "CYNTHIA SCHECHTER",
    "PartyId": 28709,
    "Status": "A",
    "EmailAddress": "sendmail-test-discard@oracle.com",
    "PrimaryPhoneNumber": null,
    "PrimaryPhoneAreaCode": null,
    "PrimaryPhoneCountryCode": "1",
    "PrimaryPhoneExtension": null,
    "PrimaryPhoneLineType": "GEN",
    "OwnerFlag": false,
    "RoleName": "Salesperson",
    "ResourcePartyNumber": "19534",
    "links": [
		...
		]
	}
Back to Top