updateProjectRegions method

Future<Object?> updateProjectRegions({
  1. Object? projectId,
  2. Map<String, Object?>? query,
  3. Object? body,
  4. Map<String, String>? headers,
  5. String? region,
})

PATCH /{version}/account/projects/{projectId}/settings/regions

Updates the project's regions. The body may contain primaryRegion (a region code, e.g. "nb-eu-germany") and/or additionalRegions (a list of region codes). The response is empty.

Implementation

Future<Object?> updateProjectRegions(
    {Object? projectId,
    Map<String, Object?>? query,
    Object? body,
    Map<String, String>? headers,
    String? region}) {
  return transport.send(
    route: '/{version}/account/projects/{projectId}/settings/regions',
    method: 'PATCH',
    query: query,
    body: body,
    headers: headers,
    pathParams: <String, Object?>{'projectId': projectId},
    region: region,
  );
}