updateCustomAttribute function

Future<ApiResponse<CustomAttribute>> updateCustomAttribute(
  1. ExsitedClient client,
  2. Object customAttributeId,
  3. Object payload, {
  4. bool? raiseOnError,
  5. String? responseFormat,
})

PATCH /api/{api_version}/custom_attributes/{custom_attribute_id}

Implementation

Future<ApiResponse<CustomAttribute>> updateCustomAttribute(
  ExsitedClient client,
  Object customAttributeId,
  Object payload, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendPatchRequest(CustomAttributesUrls.customAttribute,
        pathParams: {'custom_attribute_id': customAttributeId},
        jsonBody: payload,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: CustomAttribute.fromMap);