Update a Workspace
Updates details for a workspace by ID.
Specify the workspace ID in the workspaceId
parameter in the URI. Include all details for the workspace that are present in a GET request for the workspace details. Not including the optional capacity
, type
or notes
fields will result in the fields no longer being defined for the workspace. A locationId
must be provided when the floorId
is set. The locationId
, workspaceLocationId
, floorId
, supportedDevices
, calendar
and calling
fields do not change when omitted from the update request.
Information for Webex Calling fields may be found here: locations and available numbers.
Updating the
calling
parameter is only supported if the existingcalling
type isfreeCalling
,none
,thirdPartySipCalling
orwebexCalling
.Updating the
calling
parameter tonone
,thirdPartySipCalling
orwebexCalling
is not supported if the workspace contains any devices.The
locationId
andsupportedDevices
fields cannot be changed once configured.When updating
webexCalling
information, alocationId
and either aphoneNumber
orextension
or both is required. Furthermore, thelicenses
field can be set with a list of Webex Calling license IDs, if desired. If multiple license IDs are provided, the oldest suitable one will be applied. If a previously applied license ID is omitted, it will be replaced with one from the list provided. If thelicenses
field is omitted, the current calling license will be retained.
URI Parameters
A unique identifier for the workspace.
Body Parameters
A friendly name for the workspace.
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.
An empty or null calendar
field will not cause any changes. Provide a type
(microsoft
, google
, or none
), an emailAddress
, and a resourceGroupId
. To remove a calendar, set the type
to none
; this does not require an emailAddress
or resourceGroupId
.
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.
The sipAddress
field can only be provided when calling type is thirdPartySipCalling
.
Calling types supported on update are freeCalling
, thirdPartySipCalling
, webexCalling
and none
.
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.
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.
Indoor navigation configuration.
URL of a map locating the workspace. Passing null
will remove the configuration.
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
- displayNamestringA friendly name for the workspace.
- 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.
- calendarobjectAn empty or null `calendar` field will not cause any changes. Provide a `type` (`microsoft`, `google`, or `none`), an `emailAddress`, and a `resourceGroupId`. To remove a calendar, set the `type` to `none`; this does not require an `emailAddress` or `resourceGroupId`.
- sipAddressstringThe `sipAddress` field can only be provided when calling type is `thirdPartySipCalling`.
- callingobjectCalling types supported on update are `freeCalling`, `thirdPartySipCalling`, `webexCalling` and `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`.
- indoorNavigationobjectIndoor navigation configuration.
{ "displayName": "SFO-12 Capanina", "locationId": "YL34GrT...", "workspaceLocationId": "YL34GrT...", "floorId": "Y2lzY29z...", "capacity": 5, "type": "focus", "calendar": { "type": "microsoft", "emailAddress": "workspace@example.com", "resourceGroupId": "Y2lzY29zcGFyazovL3VybjpURUFNOk5vcndheS9SRVNPVVJDRV9HUk9VUC9jOGFiMDJhNC01NjI5LTRiNTctOGUyNy03ZDZkZjJlN2YzNzA=" }, "calling": { "type": "webexCalling", "webexCalling": { "phoneNumber": "+12145654032", "extension": "28278", "locationId": "Y2lzY29g4...", "licenses": [ "Y2lzY29g4...1", "Y2lzY29g4...2", "Y2lzY29g4...n" ] } }, "notes": "this is a note", "hotdeskingStatus": "on", "deviceHostedMeetings": { "enabled": true, "siteUrl": "'example.webex.com'" }, "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": [ "Y2lzY29z..." ] } }, "calendar": { "type": "microsoft", "emailAddress": "workspace@example.com" }, "notes": "this is a note", "supportedDevices": "collaborationDevices", "devicePlatform": "cisco", "indoorNavigation": { "url": "https://example.com" } }