POST https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackages/3089f957-4bfe-405d-96c0-9a7ef30c01d6/moveToCatalog
Content-Type: application/json
{
"catalogId": "3301434b-99bd-46be-923b-d762c30c8e8b"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AccessPackages.Item.MoveToCatalog;
var requestBody = new MoveToCatalogPostRequestBody
{
CatalogId = "3301434b-99bd-46be-923b-d762c30c8e8b",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.IdentityGovernance.EntitlementManagement.AccessPackages["{accessPackage-id}"].MoveToCatalog.PostAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphidentitygovernance "github.com/microsoftgraph/msgraph-beta-sdk-go/identitygovernance"
//other-imports
)
requestBody := graphidentitygovernance.NewMoveToCatalogPostRequestBody()
catalogId := "3301434b-99bd-46be-923b-d762c30c8e8b"
requestBody.SetCatalogId(&catalogId)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.IdentityGovernance().EntitlementManagement().AccessPackages().ByAccessPackageId("accessPackage-id").MoveToCatalog().Post(context.Background(), requestBody, nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.beta.identitygovernance.entitlementmanagement.accesspackages.item.movetocatalog.MoveToCatalogPostRequestBody moveToCatalogPostRequestBody = new com.microsoft.graph.beta.identitygovernance.entitlementmanagement.accesspackages.item.movetocatalog.MoveToCatalogPostRequestBody();
moveToCatalogPostRequestBody.setCatalogId("3301434b-99bd-46be-923b-d762c30c8e8b");
graphClient.identityGovernance().entitlementManagement().accessPackages().byAccessPackageId("{accessPackage-id}").moveToCatalog().post(moveToCatalogPostRequestBody);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\IdentityGovernance\EntitlementManagement\AccessPackages\Item\MoveToCatalog\MoveToCatalogPostRequestBody;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new MoveToCatalogPostRequestBody();
$requestBody->setCatalogId('3301434b-99bd-46be-923b-d762c30c8e8b');
$graphServiceClient->identityGovernance()->entitlementManagement()->accessPackages()->byAccessPackageId('accessPackage-id')->moveToCatalog()->post($requestBody)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.identitygovernance.entitlementmanagement.accesspackages.item.move_to_catalog.move_to_catalog_post_request_body import MoveToCatalogPostRequestBody
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = MoveToCatalogPostRequestBody(
catalog_id = "3301434b-99bd-46be-923b-d762c30c8e8b",
)
await graph_client.identity_governance.entitlement_management.access_packages.by_access_package_id('accessPackage-id').move_to_catalog.post(request_body)