Create a Workspace
Create a workspace.
The locationId
, workspaceLocationId
, floorId
, indoorNavigation
, capacity
, type
, notes
and hotdeskingStatus
parameters are optional, and omitting them will result in the creation of a workspace without these values set, or set to their default. A locationId
must be provided when the floorId
is set. Calendar and calling can also be set for a new workspace. Omitting them will default to free calling and no calendaring. The orgId
parameter can only be used by admin users of another organization (such as partners).
Information for Webex Calling fields may be found here: locations, available numbers and licenses.
The
locationId
andsupportedDevices
fields cannot be changed once configured.When creating a
webexCalling
workspace, alocationId
and either aphoneNumber
orextension
or both is required. Furthermore, it is possible to set thelicenses
field with a list of Webex Calling license IDs, if desired. If multiple license IDs are provided, the oldest suitable one will be applied. If no licenses are supplied, the oldest suitable one from the active subscriptions will be automaticaly applied.
Body Parameters
A friendly name for the workspace.
OrgId
associated with the workspace. Only admin users of another organization (such as partners) may use this parameter.
Location associated with the workspace. Must be provided when the floorId
is set.
Legacy workspace location ID associated with the workspace. Prefer locationId
.
Floor associated with the workspace.
How many people the workspace is suitable for. If set, must be 0 or higher.
The type that best describes the workspace.
No workspace type set.
High concentration.
Brainstorm/collaboration.
Dedicated meeting space.
Unstructured agile.
Individual.
Unspecified.
The sipAddress
field can only be provided when calling type is thirdPartySipCalling
.
Calling.
The calling type that is supported on the workspace.
Free Calling (Default).
Hybrid Calling.
Webex Calling.
Webex Edge For Devices.
Third-party SIP URI.
No Calling.
The webexCalling
object only applies when calling type is webexCalling
.
End user phone number.
End user extension.
Calling location ID.
A list of Webex Calling License IDs. If multiple license IDs are provided, the oldest suitable one will be applied.
Workspace calendar configuration requires a type
(microsoft
, google
, or none
), an emailAddress
, and a resourceGroupId
. The default is none
.
Workspace email address. Will not be set when the calendar type is none
.
The ResourceGroup
ID is associated with the workspace and is only applicable for on-premise MICROSOFT calendar.
Notes associated to the workspace.
Hot desking status of the workspace.
Workspace supports hotdesking.
Workspace does not support hotdesking.
To enable device hosted meetings, set a Webex siteUrl
and the enabled
flag to true
.
Set to true
to enable or false
to disable.
The Webex site for device hosting meetings.
The supported devices for the workspace. Default is collaborationDevices
.
Workspace supports collaboration devices.
Workspace supports MPP phones.
Indoor navigation configuration.
URL of a map locating the workspace.
Response Properties
Unique identifier for the Workspace.
OrgId
associated with the workspace.
Location associated with the workspace (ID to use for the /locations API).
Legacy workspace location ID associated with the workspace. Prefer locationId
.
Floor associated with the workspace.
A friendly name for the workspace.
How many people the workspace is suitable for.
The workspace type.
No workspace type set.
High concentration.
Brainstorm/collaboration.
Dedicated meeting space.
Unstructured agile.
Individual.
Unspecified.
SipUrl
to call all the devices associated with the workspace.
The date and time that the workspace was registered, in ISO8601 format.
Calling type.
Calling.
Free Calling.
Hybrid Calling.
Webex Calling.
Webex Edge For Devices.
Third-party SIP URI.
No Calling.
The hybridCalling
object only applies when calling type is hybridCalling
.
End user email address in Cisco Unified CM.
The webexCalling
object only applies when calling type is webexCalling
.
The Webex Calling license associated with this workspace.
Calendar type. Calendar of type none
does not include an emailAddress
field.
No calendar.
Google Calendar.
Microsoft Exchange or Office 365.
Workspace email address. Will not be set when the calendar type is none
.
Notes associated to the workspace.
Hot desking status of the workspace.
Workspace supports hotdesking.
Workspace does not support hotdesking.
The supported devices for the workspace. Default is collaborationDevices
.
Workspace supports collaboration devices.
Workspace supports MPP phones.
Calendar type. Calendar of type none
does not include an emailAddress
field.
No calendar.
Google Calendar.
Microsoft Exchange or Office 365.
Workspace email address. Will not be set when the calendar type is none
.
Device hosted meetings configuration.
true
if enabled or false
otherwise.
The Webex site for the device hosting meetings.
The device platform.
Cisco.
Microsoft Teams Room.
Indoor navigation configuration.
URL of a map locating the workspace.
Response Codes
The list below describes the common success and error responses you should expect from the API.
Code | Status | Description |
---|---|---|
200 | OK | Successful request with body content. |
201 | Created | The request has succeeded and has led to the creation of a resource. |
202 | Accepted | The request has been accepted for processing. |
204 | No Content | Successful request without body content. |
400 | Bad Request | The request was invalid or cannot be otherwise served. An accompanying error message will explain further. |
401 | Unauthorized | Authentication credentials were missing or incorrect. |
403 | Forbidden | The request is understood, but it has been refused or access is not allowed. |
404 | Not Found | The URI requested is invalid or the resource requested, such as a user, does not exist. Also returned when the requested format is not supported by the requested method. |
405 | Method Not Allowed | The request was made to a resource using an HTTP request method that is not supported. |
409 | Conflict | The request could not be processed because it conflicts with some established rule of the system. For example, a person may not be added to a room more than once. |
410 | Gone | The requested resource is no longer available. |
415 | Unsupported Media Type | The request was made to a resource without specifying a media type or used a media type that is not supported. |
423 | Locked | The requested resource is temporarily unavailable. A Retry-After header may be present that specifies how many seconds you need to wait before attempting the request again. |
428 | Precondition Required | File(s) cannot be scanned for malware and need to be force downloaded. |
429 | Too Many Requests | Too many requests have been sent in a given amount of time and the request has been rate limited. A Retry-After header should be present that specifies how many seconds you need to wait before a successful request can be made. |
500 | Internal Server Error | Something went wrong on the server. If the issue persists, feel free to contact the Webex Developer Support team. |
502 | Bad Gateway | The server received an invalid response from an upstream server while processing the request. Try again later. |
503 | Service Unavailable | Server is overloaded with requests. Try again later. |
504 | Gateway Timeout | An upstream server failed to respond on time. If your query uses max parameter, please try to reduce it. |
Header
Body
- displayNamestringRequiredA friendly name for the workspace.
- orgIdstring`OrgId` associated with the workspace. Only admin users of another organization (such as partners) may use this parameter.
- locationIdstringLocation associated with the workspace. Must be provided when the `floorId` is set.
- workspaceLocationIdstringLegacy workspace location ID associated with the workspace. Prefer `locationId`.
- floorIdstringFloor associated with the workspace.
- capacitynumberHow many people the workspace is suitable for. If set, must be 0 or higher.
- typeenumThe type that best describes the workspace.
- sipAddressstringThe `sipAddress` field can only be provided when calling type is `thirdPartySipCalling`.
- callingobjectCalling.
- calendarobjectWorkspace calendar configuration requires a `type` (`microsoft`, `google`, or `none`), an `emailAddress`, and a `resourceGroupId`. The default is `none`.
- notesstringNotes associated to the workspace.
- hotdeskingStatusenumHot desking status of the workspace.
- deviceHostedMeetingsobjectTo enable device hosted meetings, set a Webex `siteUrl` and the `enabled` flag to `true`.
- supportedDevicesenumThe supported devices for the workspace. Default is `collaborationDevices`.
- indoorNavigationobjectIndoor navigation configuration.
{ "displayName": "SFO-12 Capanina", "orgId": "Y2lzY29zcGFyazovL3VzL09SR0FOSVpBVElPTi8xZWI2NWZkZi05NjQzLTQxN2YtOTk3NC1hZDcyY2FlMGUxMGY", "locationId": "YL34GrT...", "workspaceLocationId": "YL34GrT...", "floorId": "Y2lzY29z...", "capacity": 5, "type": "notSet", "calling": { "type": "webexCalling", "webexCalling": { "phoneNumber": "+12145654032", "extension": "28278", "locationId": "Y2lzY29g4...", "licenses": [ "Y2lzY29g4...1", "Y2lzY29g4...2", "Y2lzY29g4...n" ] } }, "calendar": { "type": "microsoft", "emailAddress": "workspace@example.com", "resourceGroupId": "Y2lzY29zcGFyazovL3VybjpURUFNOk5vcndheS9SRVNPVVJDRV9HUk9VUC9jOGFiMDJhNC01NjI5LTRiNTctOGUyNy03ZDZkZjJlN2YzNzA=" }, "notes": "this is a note", "hotdeskingStatus": "on", "deviceHostedMeetings": { "enabled": true, "siteUrl": "'example.webex.com'" }, "supportedDevices": "collaborationDevices", "indoorNavigation": {} }
{ "id": "Y2lzY29zcGFyazovL3VzL1BMQUNFUy81MTAxQjA3Qi00RjhGLTRFRjctQjU2NS1EQjE5QzdCNzIzRjc", "orgId": "Y2lzY29zcGFyazovL3VzL09SR0FOSVpBVElPTi8xZWI2NWZkZi05NjQzLTQxN2YtOTk3NC1hZDcyY2FlMGUxMGY", "locationId": "YL34GrT...", "workspaceLocationId": "YL34GrT...", "floorId": "Y2lzY29z...", "displayName": "SFO-12 Capanina", "capacity": 5, "sipAddress": "test_workspace_1@trialorg.room.ciscospark.com", "created": "2016-04-21T17:00:00.000Z", "calling": { "type": "webexCalling", "webexCalling": { "licenses": [ "Y2lzY29zcGFyazovL3VzL0xJQ0VOU0UvMmQzMzIyZDItYTAzNS00YmEzLWI3ZjYtNDc1ODM3Y2UzOTVhOkJDQ0FfNDZlM2YxYWQtZGJhYi00YmQ0LTg3YTAtOWExZmVhNzMxN2Jm" ] } }, "calendar": { "type": "microsoft", "emailAddress": "workspace@example.com" }, "notes": "this is a note", "supportedDevices": "collaborationDevices", "indoorNavigation": { "url": "https://example.com" } }