macroSet method

Future<Map<String, dynamic>> macroSet(
  1. String id,
  2. Map postBody
)
inherited

macroSet -> /v1/macro/{id}

Sets the details of the specified macro. The UUID and index in the request body are ignored. They are not updated.

PARAMETERS

id (required) : The ID of the macro, either UUID, name, or index.

  • Example (by_uuid): 3C39C433-5C18-4F51-B357-55BB870227C4
  • Example (by_name): Macro
  • Example (by_index): 3

postBody (required) : This is the data that must be sent with this request.

RESPONSE 200:

The request was processed successfully.

content-type: application/json

schema:

{
  "type": "object",
  "required": [
    "id",
    "color"
  ]
}

RESPONSE 400:

The request was not valid.

content-type: ``

Implementation

Future<Map<String, dynamic>> macroSet(String id, Map postBody) async {
  String url = '/v1/macro/$id';

  return await call('put', url, httpAccept: 'application/json');
}