Update Pricing Access Rights for a Group
post
/rest/v19/companies/{companyLoginName}/groups/{groupVarName}/segments/_pricing/actions/updateAccessRights
This endpoint updates group access rights for the specified pricing segments (Price Models or Price Agreements).
Request
Supported Media Types
- application/json
Path Parameters
-
companyLoginName(required): string
Company login name.
-
groupVarName(required): string
Group variable name.
Root Schema : Pricing Segment Access Rights
Type:
objectTitle:
Show Source
Pricing Segment Access RightsNested Schema : items
Type:
Show Source
array-
Array of:
object Pricing Segment Access Rights
Title:
Pricing Segment Access Rights
Nested Schema : Pricing Segment Access Rights
Type:
objectTitle:
Show Source
Pricing Segment Access Rights-
items:
array items
-
segmentVarName(required):
string
Title:
SegmentVarNameSegment variable name.
Nested Schema : items
Type:
Show Source
array-
Array of:
object Pricing Segment Access Rights
Title:
Pricing Segment Access Rights
Nested Schema : Pricing Segment Access Rights
Type:
objectTitle:
Show Source
Pricing Segment Access Rights-
accessType(required):
string
Title:
Access TypeAllowed Values:[ "FULL", "READ", "EDIT", "EDIT_NO_DELETE", "NONE" ]Access type. -
name(required):
string
Title:
Entity NameName of the entity. -
variableName(required):
string
Title:
Entity variable nameVariable name of the entity.
Response
Default Response
No Content.
Examples
The following examples show how to update group access rights for the specified pricing segments (Price Models or Price Agreements) by submitting a PATCH request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X PATCH -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/companies/dataSolutions/groups/testA/segments/_pricing/actions/updateAccessRights
Request Body Sample
{
"items": [{
"segmentVarName": "_priceModels",
"items": [{
"name": "All Price Models",
"accessType": "FULL"
}, {
"name": "absolutePrice",
"accessType": "EDIT"
}
]
}, {
"segmentVarName": "_priceAgreements",
"items": [{
"name": "All Price Agreements",
"accessType": "FULL"
}, {
"name": "maintenanceAgreementaccount138",
"accessType": "READ"
}
]
}
]
}