Skip to content

Commit 5d3efb3

Browse files
committed
acrolinx 1
1 parent 75f7177 commit 5d3efb3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

api-reference/v1.0/api/accesspackage-post-resourcerolescopes.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ POST /identityGovernance/entitlementManagement/accessPackages/{id}/resourceRoleS
4242

4343
## Request body
4444

45-
In the request body, supply a JSON representation of an [accessPackageResourceRoleScope](../resources/accesspackageresourcerolescope.md) object. Include in the object the relationships to an [accessPackageResourceRole](../resources/accesspackageresourcerole.md) object and an [accessPackageResourceScope](../resources/accesspackageresourcescope.md) object, which can be obtained from a request to [list access package resources a catalog](accesspackagecatalog-list-resourceroles.md), with `$expand=roles,scopes`.
45+
In the request body, supply a JSON representation of an [accessPackageResourceRoleScope](../resources/accesspackageresourcerolescope.md) object. Include in the object the relationships to an [accessPackageResourceRole](../resources/accesspackageresourcerole.md) object and an [accessPackageResourceScope](../resources/accesspackageresourcescope.md) object, which can be obtained from a request to [list access package resources a catalog](accesspackagecatalog-list-resourceroles.md), with `$expand=roles,scopes`.
4646

4747
## Response
4848

@@ -54,9 +54,9 @@ If successful, this method returns a 200-series response code and a new [accessP
5454

5555
#### Request
5656

57-
The following example shows a request adding a SharePoint Online site role to an access package's list of resource roles. The access package resource for the site must already have been added to the access package catalog containing this access package.
57+
The following example shows a request adding a SharePoint Online site role to an access package's list of resource roles. The access package resource for the site must already have been added to the access package catalog containing this access package.
5858

59-
The request contains an [accessPackageResourceRole](../resources/accesspackageresourcerole.md) object. Each type of resource defines the format of the originId field in a resource role. For a SharePoint Online site, the originId will be the sequence number of the role in the site. The resource role can be obtained from a request to [retrieve the roles of a resource for a SharePoint Online site collection](accesspackagecatalog-list-resourceroles.md#example-2-retrieving-the-roles-of-a-resource-for-a-sharepoint-online-site-collection).
59+
The request contains an [accessPackageResourceRole](../resources/accesspackageresourcerole.md) object. Each type of resource defines the format of the originId field in a resource role. For a SharePoint Online site, the originId will be the sequence number of the role in the site. The resource role can be obtained from a request to [retrieve the roles of a resource for a SharePoint Online site collection](accesspackagecatalog-list-resourceroles.md#example-2-retrieving-the-roles-of-a-resource-for-a-sharepoint-online-site-collection).
6060

6161
# [HTTP](#tab/http)
6262
<!-- {
@@ -148,7 +148,7 @@ Content-type: application/json
148148

149149
#### Request
150150

151-
The following example shows a request adding an application's role to an access package's list of resource roles. The access package resource for the application must already have been added to the access package catalog containing this access package. The `role`, `resource` and `scope` can be obtained by a [list of the resources of a catalog](accesspackagecatalog-list-resources.md).
151+
The following example shows a request adding an application's role to an access package's list of resource roles. The access package resource for the application must already have been added to the access package catalog containing this access package. The `role`, `resource`, and `scope` can be obtained by a [list of the resources of a catalog](accesspackagecatalog-list-resources.md).
152152

153153
# [HTTP](#tab/http)
154154
<!-- {
@@ -242,7 +242,7 @@ Content-type: application/json
242242

243243
#### Request
244244

245-
The following example shows a request adding membership of a group to an access package's list of resource roles. The access package resource for the group must already have been added to the access package catalog containing this access package. The `resource` and `scope` can be obtained by a [list of the resources of a catalog](accesspackagecatalog-list-resources.md). The `role` can be obtained by a [list of the roles of the resource in the catalog](accesspackagecatalog-list-resourceroles.md). If the `role` returned from the list of the roles has a zero ID, then do not include an `id` in the `accessPackageResourceRole`.
245+
The following example shows a request adding membership of a group to an access package's list of resource roles. The access package resource for the group must already have been added to the access package catalog containing this access package. The `resource` and `scope` can be obtained by a [list of the resources of a catalog](accesspackagecatalog-list-resources.md). The `role` can be obtained by a [list of the roles of the resource in the catalog](accesspackagecatalog-list-resourceroles.md). If the `role` returned from the list of the roles has a zero ID, then don't include an `id` in the `accessPackageResourceRole`.
246246

247247
# [HTTP](#tab/http)
248248
<!-- {

0 commit comments

Comments
 (0)