Modes
Delete a Mode
Changed onDelete a Mode if no automations are affected. Otherwise, return the list of affected automations in a 409 response. When making a request with a valid requestId query parameter, the Mode will be deleted.
delete/locations/{locationId}/modes/{modeId}
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesw:locations:*
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
requestIdstring
The requestId received from the 409 conflict response when first making the request to delete a Mode. The presence of this query parameter, once validated, will trigger the deletion of the Mode.
Response
An empty object response.
Delete Mode Response required
An empty object response.
Example response
{}Changes
- info
endpoint added
- info