Update a tier for a partner program
patch
/crmRestApi/resources/11.13.18.05/partnerPrograms/{ProgramNumber}/child/ProgramTiers/{ProgramTierId}
Request
Path Parameters
-
ProgramNumber(required): string
The alternate key identifier generated for each program.
-
ProgramTierId(required): integer(int64)
The unique identifier for a program tier added to a program.
Header Parameters
-
Metadata-Context: string
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: string
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
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 : partnerPrograms-ProgramTiers-item-response
Type:
Show Source
object-
BadgeImageName: string
Title:
BadgeRead Only:trueMaximum Length:100The badge image name of the program tier. -
CreatedBy: string
Read Only:
trueMaximum Length:64The user who created the row. -
CreationDate: string
(date-time)
Read Only:
trueThe date and time the row was created. -
DeleteFlag: boolean
Read Only:
trueIndicates whether the program tier should be deleted. If the value is Y, then the program tier has to be deleted. The default value is N. -
EnrollmentCount: integer
Title:
EnrollmentsRead Only:trueThe count of enrollments referencing the program tier. -
LastUpdateDate: string
(date-time)
Read Only:
trueThe user who last updated the row. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64The date and time the row was last updated. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
Name: string
Title:
NameRead Only:trueMaximum Length:155The name of the program tier. -
PartnerProgramId: integer
(int64)
The unique identifier for the partner program associated with the program tier.
-
ProgramTierId: integer
(int64)
The unique identifier for a program tier added to a program.
-
Ranking: integer
(int32)
Title:
RankRead Only:trueThe rank of the program tier. -
TierId: integer
(int64)
The unique identifier of the Tier which is being added to the program.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed 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
- Tiers
-
The list of values indicating the tiers.
The following properties are defined on the LOV link relation:- Source Attribute: TierId; Target Attribute: TierId
- Display Attribute: Name
Examples
The following example shows how to update a tier for a patner program by submitting a patch request on the REST resource using cURL.
cURL Command
curl -v -u Username:Password
curl -v -u Username:Password -H "content-type:application/vnd.oracle.adf.resourceitem+json"
-X PATCH "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/partnerPrograms/CDRM_12005/child/ProgramTiers/300100071293760"
-d '{request_payload}'
Example of Request Body
The following shows an example of the request body in JSON format.
{ "TierId": 300100071293754}
Example of Response Body
The following shows an example of the response body in JSON format.
{
"ProgramTierId" : 300100071293760,
"PartnerProgramId" : 300100071293754,
"TierId" : 300100071293754,
"CreatedBy" : "CHANNEL_OPERATIONS_MANAGER",
"CreationDate" : "2016-02-17T14:58:33-08:00",
"LastUpdatedBy" : "CHANNEL_OPERATIONS_MANAGER",
"LastUpdateDate" : "2016-02-17T14:58:33-08:00",
"Name" : "Gold Tier",
"BadgeImageName" : null,
"Ranking" : 1,
"EnrollmentCount" : 0,
"DeleteFlag" : "true",
...
}