Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 751 Bytes

File metadata and controls

38 lines (32 loc) · 751 Bytes
description Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const workPosition = {
  detail: {
    company: {
      displayName: 'Adventureworks Ltd.',
      department: 'Consulting',
      officeLocation: 'AW23/344',
      address: {
        type: 'business',
        street: '123 Patriachy Ponds',
        city: 'Moscow',
        countryOrRegion: 'Russian Federation',
        postalCode: 'RU-34621'
      },
      webUrl: 'https://www.adventureworks.com'
    },
    jobTitle: 'Senior Product Branding Manager II',
    role: 'consulting'
  },
  isCurrent: true
};

await client.api('/me/profile/positions')
	.version('beta')
	.post(workPosition);