Api event io validate project name
Jump to navigation
Jump to search
API Endpoint: api/event/io/validate_project_name/
Description: Validate that a given string would be a valid Project file name. Returns an empty string if the Project name is valid and not in use. Otherwise it returns the reason why it is not valid.
| Index | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (String) | Project Name |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | String (String) |
| 300-600 | Codes Overview |
Example POST
Curl example POST
curl 'https://engine.tygron.com/api/event/io/validate_project_name/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>' -d '"Project Name"'JavaScript example POST
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>" },
body: '"Project Name"'
};
fetch("https://engine.tygron.com/api/event/io/validate_project_name/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));