Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 875 Bytes

File metadata and controls

40 lines (34 loc) · 875 Bytes
description Automatically generated file. DO NOT MODIFY
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);