Offices: DeleteOffice

This method deletes an office from a Rooms account.

Request

HTTP request

DELETE /restapi/v2/accounts/{accountId}/offices/{officeId}

Parameters

Parameter NameValueDescription
Path Parameters
officeIdinteger

(Required) The id of the office.

accountIdstring

(Required) The globally unique identifier (GUID) for the account.

Responses

CodeDescriptionReference
204

Office successfully deleted.

400

Bad request. See ErrorCode and Message for details

ApiError
401

Not authorized to make this request.

ApiError

SDK Method

Offices::DeleteOffice

Definitions

ApiError

This object describes errors that occur. It is valid only for responses and ignored in requests.

errorCodestring

The code associated with the error condition.

messagestring

A brief message describing the error condition.

}} />