Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 538 Bytes

create-administrativeunit-from-administrativeunits-javascript-snippets.md

File metadata and controls

25 lines (19 loc) · 538 Bytes
description
Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const administrativeUnit = {
    displayName: 'Seattle District Technical Schools',
    description: 'Seattle district technical schools administration',
    membershipType: 'Dynamic',
    membershipRule: '(user.country -eq \"United States\")',
    membershipRuleProcessingState: 'On'
};

await client.api('/administrativeUnits')
	.version('beta')
	.post(administrativeUnit);