curl --request PATCH \
--url https://api.projectdiscovery.io/v2/template/user/upload \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"templates": [
{
"dir": "<string>",
"filename": "<string>",
"template_id": "<string>"
}
]
}'
{
"success_count": 123,
"failure_count": 123,
"successful_items": [
{
"dir": "<string>",
"filename": "<string>",
"template_id": "<string>",
"uri": "<string>"
}
],
"failed_items": [
{
"dir": "<string>",
"filename": "<string>",
"template_id": "<string>",
"error": "<string>"
}
]
}
Bulk Updat Private/User Templates (Max 10,000)
curl --request PATCH \
--url https://api.projectdiscovery.io/v2/template/user/upload \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"templates": [
{
"dir": "<string>",
"filename": "<string>",
"template_id": "<string>"
}
]
}'
{
"success_count": 123,
"failure_count": 123,
"successful_items": [
{
"dir": "<string>",
"filename": "<string>",
"template_id": "<string>",
"uri": "<string>"
}
],
"failed_items": [
{
"dir": "<string>",
"filename": "<string>",
"template_id": "<string>",
"error": "<string>"
}
]
}
OK
The response is of type object
.
Was this page helpful?