Api event io set project permission
API Endpoint: api/event/io/set_project_permission/
Description: Set an access permission of a specified type for a Project.
| Index | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (String) | Project Name | |
| 1 | REQUIRED | (Enumeration) | Permission type: OWNER, DOMAIN, SUPPORT | DOMAIN, OWNER or SUPPORT |
| 2 | REQUIRED | (Enumeration) | Permission: NONE, READ, WRITE | NONE, READ or WRITE |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | Boolean (Content was updated) |
| 300-600 | Codes Overview |
Example POST
Curl example POST
curl 'https://engine.tygron.com/api/event/io/set_project_permission/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>=' -d '[ "Project Name", "OWNER", "NONE" ]'JavaScript example POST
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>=" },
body: '[ "Project Name", "OWNER", "NONE" ]'
};
fetch("https://engine.tygron.com/api/event/io/set_project_permission/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));