updateContentOrder method

Future<DynamiteResponse<ContextUpdateContentOrderResponseApplicationJson, void>> updateContentOrder({
  1. required int contextId,
  2. required int pageId,
  3. required ContextUpdateContentOrderRequestApplicationJson $body,
  4. bool? oCSAPIRequest,
})

api v2 Update the order on a page of a context.

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Parameters:

  • contextId ID of the context.
  • pageId ID of the page.
  • oCSAPIRequest Required to be true for the API request to pass. Defaults to true.

Status codes:

  • 200: content updated successfully
  • 500
  • 404: Not found
  • 400: Invalid request

See:

Implementation

Future<_i1.DynamiteResponse<ContextUpdateContentOrderResponseApplicationJson, void>> updateContentOrder({
  required int contextId,
  required int pageId,
  required ContextUpdateContentOrderRequestApplicationJson $body,
  bool? oCSAPIRequest,
}) async {
  final _request = $updateContentOrder_Request(
    contextId: contextId,
    pageId: pageId,
    oCSAPIRequest: oCSAPIRequest,
    $body: $body,
  );
  final _streamedResponse = await _rootClient.httpClient.send(_request);
  final _response = await _i3.Response.fromStream(_streamedResponse);

  final _serializer = $updateContentOrder_Serializer();
  return _i1.ResponseConverter<ContextUpdateContentOrderResponseApplicationJson, void>(_serializer)
      .convert(_response);
}