Update Source

Updates info regarding a Sound source. This can be used to set a Sound source as default, or change its volume.

Path parameters

sourcestringRequired
The source id.

Query parameters

updateMaskstringOptionalformat: "field-mask"
The fields to update.

Request

This endpoint expects an object.
volumeintegerRequired
Volume of the source, in percentage
isDefaultbooleanRequired
Whether this source is the default or not
namestringOptional

Resource name of an Sound source. Format: //system.v1.engine.core.machanirobotics.com/Sources/{source}

The {Sound_source} in the resource name is the id of the source.

Response

OK
volumeinteger
Volume of the source, in percentage
isDefaultboolean
Whether this source is the default or not
namestring

Resource name of an Sound source. Format: //system.v1.engine.core.machanirobotics.com/Sources/{source}

The {Sound_source} in the resource name is the id of the source.

displayNamestringRead-only
Display name of the source
stateintegerRead-only
The state of the source
deviceClassintegerRead-only
The class of the device the source belongs to
mutedbooleanRead-only
Whether the source is muted or not

Errors

400
Bad Request Error