# BITES rest api options

**URL:** <https://community.stardog.com/t/bites-rest-api-options/2086>\
**Category:** Support\
**Created:** [November 12, 2019, 3:28pm UTC](https://community.stardog.com/t/bites-rest-api-options/2086 "2019-11-12T15:28:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [November 12, 2019, 3:28pm UTC](https://community.stardog.com/t/bites-rest-api-options/2086/1 "2019-11-12T15:28:09Z")

</div>

I was looking at the rest api for bites and was a little confused by the following. Probably just a missing comma.

> Accepts a multipart/form-data request with a part specifying a name of "upload" a fileName specifying the desired file name in the doc store.

So it accepts a single parameter named "upload" that specifies the path to the file that will also be used as the name of the file? I'm guessing this is equivalent to the following command.

`stardog doc put myDb myDoc.pdf`

Is there an option to rename the document like the stardog command

`stardog doc put myDb --name myNewName.pdf myDoc.pdf`

I was also wondering if there was a way to specify the extractors to use. I'm guessing there is but it looks like the apiary documentation shows "v5". I'm not sure if that is reflecting Stardog version 5 or if the apiary docs are versioned separately.

---

<div class="post-metadata">

**Author:** ![jess](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jess/32/10_2.png) [@jess](https://community.stardog.com/u/jess)\
**Post date:** [November 12, 2019, 3:36pm UTC](https://community.stardog.com/t/bites-rest-api-options/2086/2 "2019-11-12T15:36:57Z")

</div>

The filename is taken from the file part of the multipart request. This is how it is implemented in `doc put --name`.

You can specify the extractors using the `rdfExtractors` and `textExtractors` in the form part of the request.

We'll get the docs updated to reflect this.

Jess

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [November 26, 2019, 3:43pm UTC](https://community.stardog.com/t/bites-rest-api-options/2086/3 "2019-11-26T15:43:09Z")

</div>

Closed on November 26, 2019, 3:43pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
