Api event io set project permission: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Server@tygron.com (talk | contribs)
Created page with "API Endpoint: api/event/io/set_project_permission/ Description: Set an access permission of a specified type for a Project. {|class=wikitable !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=== {|class=wikitable !..."
 
Server@tygron.com (talk | contribs)
No edit summary
Line 40: Line 40:
|}
|}
===Example POST===
===Example POST===
Curl example POST
<syntaxhighlight lang="text" copy>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" ]'
</syntaxhighlight>
JavaScript example POST
<syntaxhighlight lang="text" copy>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));
</syntaxhighlight>
{{article end|seealso=*[[Api event io]]
{{article end|seealso=*[[Api event io]]
}}
}}


[[Category:API]]
[[Category:API]]

Revision as of 15:10, 20 November 2026

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

See also