Update a Group for Host Company or Partner Organization

put

/rest/v16/companies/{companyLoginName}/groups/{groupVarName}

This endpoint updates a group for a host company or partner organization.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Group Details
Type: object
Title: Group Details
Show Source
Nested Schema : Segments
Type: object
Title: Segments
Access Segments for the group.
Show Source
Nested Schema : Status
Type: object
Title: Status
Preferred status format of the group.
Show Source
Nested Schema : Type
Type: object
Title: Type
Preferred type format of the group.
Show Source
Nested Schema : Selected Users
Type: object
Title: Selected Users
The users list part of the group.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Segment Details
Type: object
Title: Segment Details
Show Source
  • Title: Checked
    Is segment enabled.
  • Title: Icon
    Path of the icon image file. This field is only applicable if uiMetadata is set as true.
  • Sub Segments
    Title: Sub Segments
    Sub access segments for the segment.
  • Title: Status
    Specifies if the segment is enabled, partially selected or unselected. Possible values are 0[UNCHECKED], 1[PARTIALCHECKED],2[CHECKED]. This field is only applicable if uiMetadata is set as true.
  • Title: VariableName
    Segment variable name.
Nested Schema : Sub Segments
Type: object
Title: Sub Segments
Sub access segments for the segment.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Sub Segment Details
Type: object
Title: Sub Segment Details
Show Source
  • Title: Checked
    Is segment enabled.
  • Title: Icon
    Path of the icon image file. This field is only applicable if uiMetadata is set as true.
  • Title: Status
    Specifies if the segment is enabled, partially selected or unselected. Possible values are 0[UNCHECKED], 1[PARTIALCHECKED],2[CHECKED]. This field is only applicable if uiMetadata is set as true.
  • Title: title
    Segment label.
  • Title: VariableName
    Segment variable name.
Nested Schema : items
Type: array
Show Source
Nested Schema : User Details
Type: object
Title: User Details
Show Source
Back to Top

Response

Supported Media Types

Default Response

Group details.
Body ()
Root Schema : Group
Type: object
Title: Group
User group information
Show Source
Back to Top

Examples

The following example updates a group for a host company or partner organization by submitting a PUT request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X POST -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v16/companies/visionServices/groups/midwestTestGroup

Request Body Sample

{
  "label": "Midwest Test Group",
  "variableName": "midwestTestGroup",
  "description": "Midwest Test Group",
  "type": {
    "value": 1,
    "displayValue": "Administrator"
  },
  "users": {
    "items": [{
        "login": "superuser"
      }, {
        "login": "jsanchez"
      }
    ]
  },
  "segments": {
    "items": [{
        "variableName": "_commerceAndDocuments",
        "checked": false,
        "segments": {
          "items": [{
              "variableName": "_processDefinition",
              "checked": true
            }, {
              "variableName": "_processInvocation",
              "checked": true
            }, {
              "variableName": "_commerceSettings",
              "checked": true
            }, {
              "variableName": "_documents",
              "checked": true
            }
          ]
        }
      }, {
        "variableName": "_developerTools",
        "segments": {
          "items": [{
              "variableName": "_dataTables",
              "checked": false,
              "segments": {
                "items": [{
                    "variableName": "_default",
                    "checked": true
                  }, {
                    "variableName": "aBOTables",
                    "checked": true
                  }
                ]
              }
            }
          ]
        }
      }, {
        "variableName": "_general",
        "checked": true
      }, {
        "variableName": "_products",
        "segments": {
          "items": [{
              "variableName": "_catalogDefinition",
              "segments": {
                "items": [{
                    "variableName": "integration",
                    "checked": false
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}

Response Body Sample

{
  "label": "Midwest Test Group",
  "variableName": "midwestTestGroup",
  "description": "Midwest Test Group",
  "company": {
    "name": "visionServices",
    "loginName": "_host"
  },
  "status": {
    "value": 1,
    "displayValue": "Active"
  },
  "type": {
    "value": 1,
    "displayValue": "Administrator"
  },
  "readOnly": false,
  "links": [{
      "rel": "self",
      "href": "http://sitename.oracle.com/rest/v16/companies/visionServices/groups/midwestTestGroup"
    }, {
      "rel": "child",
      "href": "http://sitename.oracle.com/rest/v16/companies/visionServices/groups/midwestTestGroup/segments"
    }, {
      "rel": "child",
      "href": "http://sitename.oracle.com/rest/v16/companies/visionServices/groups/midwestTestGroup/users"
    }
  ]
}
Back to Top