Skip to content

Commit

Permalink
Use v2 api for direct layer imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 6, 2024
1 parent 843113f commit 6c51d75
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions felt/core/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,14 @@ def url_import_to_map(self,
Prepares a layer upload
"""
request = self._build_request(
self.URL_IMPORT_ENDPOINT.format(map_id),
{'Content-Type': 'application/json'}
self.UPLOAD_V2_ENDPOINT.format(map_id),
{'Content-Type': 'application/json'},
version=2
)

request_params = {
'name': name,
'layer_url': layer_url
'import_url': layer_url
}

json_data = json.dumps(request_params)
Expand Down

0 comments on commit 6c51d75

Please sign in to comment.