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
Path Parameters
Body ()
Root Schema : Pricing Segment Access Rights
Type: object
Title: Pricing Segment Access Rights
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Pricing Segment Access Rights
Type: object
Title: Pricing Segment Access Rights
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Pricing Segment Access Rights
Type: object
Title: Pricing Segment Access Rights
Show Source
Back to Top

Response

Default Response

No Content.
Back to Top

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"
        }
      ]
    }
  ]
}
Back to Top