createGalleryFilePosition method

Future<GalleryFilePosition> createGalleryFilePosition(
  1. int galleryId,
  2. int position,
  3. int fileId
)

Creates a new gallery file position

Implementation

Future<GalleryFilePosition> createGalleryFilePosition(int galleryId, int position, int fileId) async {
  final response = await _post('/api/media/gallery/$galleryId/file', data: {'position': position, 'file': fileId});

  return GalleryFilePosition.fromJson(response.data);
}