Skip to content

Troubles with API for bulk uploads to update building attributes #1196

Answered by traveller195
traveller195 asked this question in Q&A
Discussion options

You must be logged in to vote

so, I got the solution:

I was wrong when a wrote that POST requests (with read-access) could be out of work because of upgrade from http to https --> because all saved edits by the users are POST requests, as well. Not only bulk uploads...

thats why, I analyzed those successful requests made by the frontend within the developer tools of the browser.

so, I found out that the JSON structure for the POST request is different, indeed. It is divided into 'attributes' and 'user_attributes' and fits so the structure of the datafields of the API.

the second change I made is to include a /login API request first in a session.

Both changes together worked now for me, so I am really happy to updat…

Replies: 5 comments 5 replies

Comment options

traveller195
Jun 28, 2023
Collaborator Author

You must be logged in to vote
1 reply
@traveller195
Comment options

traveller195 Jun 28, 2023
Collaborator Author

Comment options

traveller195
Jun 28, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

traveller195
Jun 29, 2023
Collaborator Author

You must be logged in to vote
1 reply
@traveller195
Comment options

traveller195 Jun 29, 2023
Collaborator Author

Comment options

You must be logged in to vote
3 replies
@traveller195
Comment options

traveller195 Jun 29, 2023
Collaborator Author

@polly64
Comment options

@traveller195
Comment options

traveller195 Jun 29, 2023
Collaborator Author

Comment options

traveller195
Jun 29, 2023
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by traveller195
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants