Create a CLI Device
Each user can self-service create and manage their own CLI device if they have access.cli permission.
If the user device cannot pass device trust checks or does not have permission, then an administrator with
workspace.device.create can manually create a device for the user.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
CreateWorkspaceDeviceRequestData
^wsusr_[0-9a-hjkmnp-tv-z]{26}$"wsusr_01hq8xyzabc123def456ghi789"
The path to the Composer installation on the client.
If it starts with /Users/, the username portion of the path is masked for privacy. The only exposed
data is in the os_hostname which is used for device trust verification by some organizations
255"/Users/masked/Library/Application Support/Herd/bin//composer"
"x.y.z"
55"x.y.z"
The path to the PHP installation on the client.
If it starts with /Users/, the username portion of the path is masked for privacy. The only exposed
data is in the os_hostname which is used for device trust verification by some organizations
255"/Users/masked/Library/Application Support/Herd/bin//php"
"x.y.z"
"1.2.3.4"
55"Apple M1 Pro"
256"dmurphy-laptop"
macOS 55"macOS"
8 - 14"A1B2C3D4E5F6G7"
"A1B2C3D4-E5F6-G7H8-I9J0-K1L2M3N4O5P6"
"x.y.z"
Response
WorkspaceDeviceDetailedResponseData
"wsdev_01hq8xyzabc123def456ghi789"
"/opt/homebrew/bin/composer"
"x.y.z"
"x.y.z"
"/opt/homebrew/bin/php"
"x.y.z"
"1.2.3.4"
"Apple M1 Pro"
"dmurphy-laptop"
"macOS"
"A1B2C3D4E5F6G7"
"A1B2C3D4-E5F6-G7H8-I9J0-K1L2M3N4O5P6"
"x.y.z"
Count of related records
The timestamps for the workspace device record
Included related resources for the workspace device record
API hyperlinks related to the workspace device record