Update an asset resource
patch
/crmRestApi/resources/11.13.18.05/assets/{AssetId}/child/assetResources/{AssetResourceId}
Request
Path Parameters
-
AssetId(required): integer(int64)
The unique identifier of the asset.
-
AssetResourceId(required): integer(int64)
The unique identifier of the resource associated with the asset.
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
-
AssetId: integer
(int64)
Title:
Asset ID
The unique identifier of the Asset. -
EmailAddress: string
Title:
Email
The e-mail address of the asset team member. -
MemberFunctionCode: string
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. -
OwnerFlag: boolean
Title:
Owner
Indicates whether the asset resource is the owner of the asset. -
ResourceId: integer
(int64)
Title:
Resource Party ID
The identifier of the party associated with the asset resource.
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 : assets-assetResources-item-response
Type:
Show Source
object
-
AssetId: integer
(int64)
Title:
Asset ID
The unique identifier of the Asset. -
AssetNumber: string
Title:
Asset Number
Read Only:true
Maximum Length:100
The number that identifies the asset. -
AssetResourceId: integer
(int64)
Title:
Asset Resource ID
The unique identifier of the resource associated with the asset. -
CreatedBy: string
Title:
Created By
Read Only:true
Maximum Length:64
The user who created or imported the record. -
CreationDate: string
(date-time)
Title:
Creation Date
Read Only:true
The date and time when the record was created. -
EmailAddress: string
Title:
Email
The e-mail address of the asset team member. -
LastUpdateDate: string
(date-time)
Title:
Last Updated Date
Read Only:true
The date and time when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated By
Read Only:true
Maximum Length:64
The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update Login
Read Only:true
Maximum Length:32
The login details of the user who last updated the record in the interface table or submitted the import process. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
MemberFunctionCode: string
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. -
OwnerFlag: boolean
Title:
Owner
Indicates whether the asset resource is the owner of the asset. -
PartyId: integer
(int64)
Title:
Party ID
Read Only:true
The unique identifier of the account, or contact associated with the asset. -
PartyName: string
Title:
Name
Read Only:true
Maximum Length:360
The name of the party associated with the asset resource. -
PrimaryPhoneAreaCode: string
Title:
Primary Phone Area Code
Read Only:true
Maximum Length:20
The phone area code of the asset resource. -
PrimaryPhoneCountryCode: string
Title:
Primary Phone Country Code
Read Only:true
Maximum Length:10
The phone country code of the asset resource. -
PrimaryPhoneExtension: string
Title:
Extension
Read Only:true
Maximum Length:20
The phone extension code of the asset resource. -
PrimaryPhoneLineType: string
Title:
Phone Line Type
Read Only:true
Maximum Length:30
The type of the phone line of the asset resource. -
PrimaryPhoneNumber: string
Title:
Phone
Read Only:true
Maximum Length:40
The primary phone number of the asset team member. -
ResourceId: integer
(int64)
Title:
Resource Party ID
The identifier of the party associated with the asset resource. -
ResourcePartyNumber: string
Title:
Resource Party Number
Read Only:true
Maximum Length:30
The unique identifier of the resource associated with the asset. -
RoleName: string
Title:
Title
Read Only:true
The name of the role of an asset resource in the resource team. -
Status: string
Title:
Party Status
Read Only:true
Maximum Length:1
The user-defined status of the asset team member.
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.
Links
- MemberFunctionLOV
-
Parameters:
- finder:
LookupTypeActiveEnabledOrBindCodeFinder%3BBindLookupCode%3D{MemberFunctionCode}%2CBindLookupType%3DORA_ZCM_TEAM_FUNCTION
The lookups resource is used to view standard lookup codes. - finder:
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": [ ... ] }