cancel
Showing results for 
Search instead for 
Did you mean: 

Upload File With Rest API for a folder in Specific Domain

Felipe_Lima
Champ in-the-making
Champ in-the-making

Hello,

I Have a problem, I have 2 servers available, 1 - default 2 - arizona I am trying to make a upload with Rest API, when I do the upload in directory

nuxeo_url + '/api/v1/path/default-domain/workspaces' - success

but when I do the upload in directory

nuxeo_url + ' /api/v1/path/arizona/files' - failed

Inside of Server arizona , I have this structure arizona -- > default-domain -- > files

I need to include the file of upload inside do directory -->files

What should I use correct url ?

Tks

1 ACCEPTED ANSWER

Bauke_Roo
Star Contributor
Star Contributor

Hi Felipe,

I just found this in the Nuxeo API doc You can use the following url to upload in a specific repository {nuxeo_url}/api/v1/repo/{repoId}/path/{docPath}

in your case it will be {nuxeo_url}/api/v1/repo/arizona/path/files

Kind regards, Bauke

View answer in original post

3 REPLIES 3

Bauke_Roo
Star Contributor
Star Contributor

I see what's going wrong. But I don't know which URL you should use. You have multiple repositories (servers). The current REST call you're trying to do will both go to the default repository (server).

Bauke_Roo
Star Contributor
Star Contributor

Hi Felipe,

I just found this in the Nuxeo API doc You can use the following url to upload in a specific repository {nuxeo_url}/api/v1/repo/{repoId}/path/{docPath}

in your case it will be {nuxeo_url}/api/v1/repo/arizona/path/files

Kind regards, Bauke

Thanks Bauke Roo, It worked!

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.