Create Dataset
POST
https://api.woosmap.com/datasets
Creates a dataset.
Rate limit: 1/1s
Ratelimit: 1/1s
Authorization
private_key
apiKey query
X-Api-Key
apiKey header
Request Body
Response
Successful Response
id
string (uuid) required
name
string required
url
string
reimport_key
string
created_at
string (date-time) required
updated_at
string required
scheduled_for_deletion_after
string
Errors
401
Unable to locate credentials.
application/json
detail
string required
402
Out of free quota.
application/json
detail
string required
403
Credentials found, but not matching.
application/json
detail
string required
422
Validation Error
429
Rate limit reached
application/json
details
string required
curl -L 'https://api.woosmap.com/datasets/?private_key=YOUR_PRIVATE_API_KEY' \
-H 'content-type: application/json' \
-d '{
"name": "string",
"url": "http://example.com",
"schema_mapping": [
{
"schema_key": "title",
"data_key": "string"
}
]
}'
const myHeaders = new Headers();
myHeaders.append("content-type", "application/json");
const raw = JSON.stringify({
"name": "string",
"url": "http://example.com",
"schema_mapping": [
{
"schema_key": "title",
"data_key": "string"
}
]
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://api.woosmap.com/datasets/?private_key=YOUR_PRIVATE_API_KEY", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
import requests
import json
url = "https://api.woosmap.com/datasets/?private_key=YOUR_PRIVATE_API_KEY"
payload = json.dumps({
"name": "string",
"url": "http://example.com",
"schema_mapping": [
{
"schema_key": "title",
"data_key": "string"
}
]
})
headers = {
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)