updateContentOrder method
Future<DynamiteResponse<ContextUpdateContentOrderResponseApplicationJson, void> >
updateContentOrder({
- required int contextId,
- required int pageId,
- required ContextUpdateContentOrderRequestApplicationJson $body,
- 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 totrue
.
Status codes:
- 200: content updated successfully
- 500
- 404: Not found
- 400: Invalid request
See:
- $updateContentOrder_Request for the request send by this method.
- $updateContentOrder_Serializer for a converter to parse the
Response
from an executed request.
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);
}