POST https://graph.microsoft.com/beta/me/profile/projects
Content-type: application/json
{
"categories": [
"Branding"
],
"client": {
"displayName": "Contoso Ltd.",
"department": "Corporate Marketing",
"webUrl": "https://www.contoso.com"
},
"displayName": "Contoso Re-branding Project",
"detail": {
"company": {
"displayName": "Adventureworks Inc.",
"department": "Consulting",
"webUrl": "https://adventureworks.com"
},
"description": "Rebranding of Contoso Ltd.",
"jobTitle": "Lead PM Rebranding",
"role": "project management",
"summary": "A 6 month project to help Contoso rebrand after they were divested from a parent organization."
}
}
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var projectParticipation = new ProjectParticipation
{
Categories = new List<String>()
{
"Branding"
},
Client = new CompanyDetail
{
DisplayName = "Contoso Ltd.",
Department = "Corporate Marketing",
WebUrl = "https://www.contoso.com"
},
DisplayName = "Contoso Re-branding Project",
Detail = new PositionDetail
{
Company = new CompanyDetail
{
DisplayName = "Adventureworks Inc.",
Department = "Consulting",
WebUrl = "https://adventureworks.com"
},
Description = "Rebranding of Contoso Ltd.",
JobTitle = "Lead PM Rebranding",
Role = "project management",
Summary = "A 6 month project to help Contoso rebrand after they were divested from a parent organization."
}
};
await graphClient.Me.Profile.Projects
.Request()
.AddAsync(projectParticipation);
重要
Microsoft Graph SDK では、既定で v1.0 バージョンの API が使用され、ベータ 版で使用できるすべての種類、プロパティ、API はサポートされていません。 SDK を使用してベータ API にアクセスする方法の詳細については、「Microsoft Graph SDK とベータ API を使用する」を参照してください。
const options = {
authProvider,
};
const client = Client.init(options);
const projectParticipation = {
categories: [
'Branding'
],
client: {
displayName: 'Contoso Ltd.',
department: 'Corporate Marketing',
webUrl: 'https://www.contoso.com'
},
displayName: 'Contoso Re-branding Project',
detail: {
company: {
displayName: 'Adventureworks Inc.',
department: 'Consulting',
webUrl: 'https://adventureworks.com'
},
description: 'Rebranding of Contoso Ltd.',
jobTitle: 'Lead PM Rebranding',
role: 'project management',
summary: 'A 6 month project to help Contoso rebrand after they were divested from a parent organization.'
}
};
await client.api('/me/profile/projects')
.version('beta')
.post(projectParticipation);
重要
Microsoft Graph SDK では、既定で v1.0 バージョンの API が使用され、ベータ 版で使用できるすべての種類、プロパティ、API はサポートされていません。 SDK を使用してベータ API にアクセスする方法の詳細については、「Microsoft Graph SDK とベータ API を使用する」を参照してください。
Microsoft Graph SDK では、既定で v1.0 バージョンの API が使用され、ベータ 版で使用できるすべての種類、プロパティ、API はサポートされていません。 SDK を使用してベータ API にアクセスする方法の詳細については、「Microsoft Graph SDK とベータ API を使用する」を参照してください。
GraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
ProjectParticipation projectParticipation = new ProjectParticipation();
LinkedList<String> categoriesList = new LinkedList<String>();
categoriesList.add("Branding");
projectParticipation.categories = categoriesList;
CompanyDetail client = new CompanyDetail();
client.displayName = "Contoso Ltd.";
client.department = "Corporate Marketing";
client.webUrl = "https://www.contoso.com";
projectParticipation.client = client;
projectParticipation.displayName = "Contoso Re-branding Project";
PositionDetail detail = new PositionDetail();
CompanyDetail company = new CompanyDetail();
company.displayName = "Adventureworks Inc.";
company.department = "Consulting";
company.webUrl = "https://adventureworks.com";
detail.company = company;
detail.description = "Rebranding of Contoso Ltd.";
detail.jobTitle = "Lead PM Rebranding";
detail.role = "project management";
detail.summary = "A 6 month project to help Contoso rebrand after they were divested from a parent organization.";
projectParticipation.detail = detail;
graphClient.me().profile().projects()
.buildRequest()
.post(projectParticipation);
重要
Microsoft Graph SDK では、既定で v1.0 バージョンの API が使用され、ベータ 版で使用できるすべての種類、プロパティ、API はサポートされていません。 SDK を使用してベータ API にアクセスする方法の詳細については、「Microsoft Graph SDK とベータ API を使用する」を参照してください。
//THE GO SDK IS IN PREVIEW. NON-PRODUCTION USE ONLY
graphClient := msgraphsdk.NewGraphServiceClient(requestAdapter)
requestBody := msgraphsdk.NewProjectParticipation()
requestBody.SetCategories( []String {
"Branding",
}
client := msgraphsdk.NewCompanyDetail()
requestBody.SetClient(client)
displayName := "Contoso Ltd."
client.SetDisplayName(&displayName)
department := "Corporate Marketing"
client.SetDepartment(&department)
webUrl := "https://www.contoso.com"
client.SetWebUrl(&webUrl)
displayName := "Contoso Re-branding Project"
requestBody.SetDisplayName(&displayName)
detail := msgraphsdk.NewPositionDetail()
requestBody.SetDetail(detail)
company := msgraphsdk.NewCompanyDetail()
detail.SetCompany(company)
displayName := "Adventureworks Inc."
company.SetDisplayName(&displayName)
department := "Consulting"
company.SetDepartment(&department)
webUrl := "https://adventureworks.com"
company.SetWebUrl(&webUrl)
description := "Rebranding of Contoso Ltd."
detail.SetDescription(&description)
jobTitle := "Lead PM Rebranding"
detail.SetJobTitle(&jobTitle)
role := "project management"
detail.SetRole(&role)
summary := "A 6 month project to help Contoso rebrand after they were divested from a parent organization."
detail.SetSummary(&summary)
result, err := graphClient.Me().Profile().Projects().Post(requestBody)
重要
Microsoft Graph SDK では、既定で v1.0 バージョンの API が使用され、ベータ 版で使用できるすべての種類、プロパティ、API はサポートされていません。 SDK を使用してベータ API にアクセスする方法の詳細については、「Microsoft Graph SDK とベータ API を使用する」を参照してください。
Import-Module Microsoft.Graph.People
$params = @{
Categories = @(
"Branding"
)
Client = @{
DisplayName = "Contoso Ltd."
Department = "Corporate Marketing"
WebUrl = "https://www.contoso.com"
}
DisplayName = "Contoso Re-branding Project"
Detail = @{
Company = @{
DisplayName = "Adventureworks Inc."
Department = "Consulting"
WebUrl = "https://adventureworks.com"
}
Description = "Rebranding of Contoso Ltd."
JobTitle = "Lead PM Rebranding"
Role = "project management"
Summary = "A 6 month project to help Contoso rebrand after they were divested from a parent organization."
}
}
# A UPN can also be used as -UserId.
New-MgUserProfileProject -UserId $userId -BodyParameter $params
重要
Microsoft Graph SDK では、既定で v1.0 バージョンの API が使用され、ベータ 版で使用できるすべての種類、プロパティ、API はサポートされていません。 SDK を使用してベータ API にアクセスする方法の詳細については、「Microsoft Graph SDK とベータ API を使用する」を参照してください。