makeFilePublic method

Future<Object?> makeFilePublic({
  1. Map<String, Object?>? query,
  2. Object? body,
  3. Map<String, String>? headers,
})

POST /{version}/files/item/public

Makes one file readable by anyone holding its link. Answers with the nbpf_… public id; the link itself arrives on the file's publicUrl the next time you read the file. Send filesIntegrationId and path in body.

Implementation

Future<Object?> makeFilePublic(
    {Map<String, Object?>? query,
    Object? body,
    Map<String, String>? headers}) {
  return transport.send(
    route: '/{version}/files/item/public',
    method: 'POST',
    query: query,
    body: body,
    headers: headers,
    pathParams: null,
  );
}