Create a device settings profile
POST
/accounts/{account_id}/devices/policy https://api.cloudflare.com/client/v4
Creates a device settings profile to be applied to certain devices matching the criteria.
Parameters
path Path Parameters
| Name | Type |
|---|---|
account_id
required
| type TeamsDevicesIdentifier = unknown |
Request Body
application/json
required
{
allow_mode_switch?:TeamsDevicesAllowModeSwitch ;
allow_updates?:TeamsDevicesAllowUpdates ;
allowed_to_leave?:TeamsDevicesAllowedToLeave ;
auto_connect?:TeamsDevicesAutoConnect ;
captive_portal?:TeamsDevicesCaptivePortal ;
description?:TeamsDevicesSchemasDescription ;
disable_auto_fallback?:TeamsDevicesDisableAutoFallback ;
enabled?: boolean;
exclude?:TeamsDevicesExcludeRequest ;
exclude_office_ips?:TeamsDevicesExcludeOfficeIps ;
include?:TeamsDevicesIncludeRequest ;
lan_allow_minutes?:TeamsDevicesLanAllowMinutes ;
lan_allow_subnet_size?:TeamsDevicesLanAllowSubnetSize ;
match:TeamsDevicesSchemasMatch ;
name: string;
precedence:TeamsDevicesPrecedence ;
register_interface_ip_with_dns?:TeamsDevicesRegisterInterfaceIpWithDns ;
sccm_vpn_boundary_support?:TeamsDevicesSccmVpnBoundarySupport ;
service_mode_v2?:TeamsDevicesServiceModeV2 ;
support_url?:TeamsDevicesSupportUrl ;
switch_locked?:TeamsDevicesSwitchLocked ;
tunnel_protocol?:TeamsDevicesTunnelProtocol ;
}
allow_mode_switch?:
allow_updates?:
allowed_to_leave?:
auto_connect?:
captive_portal?:
description?:
disable_auto_fallback?:
enabled?: boolean;
exclude?:
exclude_office_ips?:
include?:
lan_allow_minutes?:
lan_allow_subnet_size?:
match:
name: string;
precedence:
register_interface_ip_with_dns?:
sccm_vpn_boundary_support?:
service_mode_v2?:
support_url?:
switch_locked?:
tunnel_protocol?:
}
Responses
200 application/json
Create a device settings profile response.
type TeamsDevicesDeviceSettingsResponse = type TeamsDevicesApiResponseSingle = never & { result?: TeamsDevicesDeviceSettingsPolicy ; }
Client Errors
4XX application/json
Create a device settings profile response failure.
type TeamsDevicesDeviceSettingsResponse = type TeamsDevicesApiResponseSingle = never & { result?: TeamsDevicesDeviceSettingsPolicy ; } & interface TeamsDevicesApiResponseCommonFailure {
errors:TeamsDevicesMessages ;
messages:TeamsDevicesMessages ;
result: null;
success: false;
}
errors:
messages:
result: null;
success: false;
}