Import selected local geoBoundaries gbOpen features into an existing or new geo zone set.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/admin/geo-boundary-catalog/import"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"DatasetKey\": \"example\", \"FeatureIds\": [ \"example\" ], \"TargetZoneSetId\": \"example\", \"NewZoneSet\": { \"Name\": \"example\", \"Key\": \"example\", \"Description\": \"example\", \"Enabled\": true, \"ConflictMode\": 0, \"SortOrder\": 1 }, \"ChangeReason\": \"example\" }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/admin/geo-boundary-catalog/import';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"DatasetKey":"example","FeatureIds":["example"],"TargetZoneSetId":"example","NewZoneSet":{"Name":"example","Key":"example","Description":"example","Enabled":true,"ConflictMode":0,"SortOrder":1},"ChangeReason":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/workspace/admin/geo-boundary-catalog/import \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "DatasetKey": "example", "FeatureIds": [ "example" ], "TargetZoneSetId": "example", "NewZoneSet": { "Name": "example", "Key": "example", "Description": "example", "Enabled": true, "ConflictMode": 0, "SortOrder": 1 }, "ChangeReason": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Body
Section titled “Request Body”Request payload for importing selected local administrative-boundary features.
object
Request payload for creating a geo zone set.
object
Request payload for importing selected local administrative-boundary features.
object
Request payload for creating a geo zone set.
object
Request payload for importing selected local administrative-boundary features.
object
Request payload for creating a geo zone set.
object
Responses
Section titled “Responses”OK
object
Result payload for an administrative-boundary catalog import.
object
Imported geo zone produced from one local administrative-boundary feature.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Result payload for an administrative-boundary catalog import.
object
Imported geo zone produced from one local administrative-boundary feature.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Result payload for an administrative-boundary catalog import.
object
Imported geo zone produced from one local administrative-boundary feature.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}