Api session event editor specialeffect add: Difference between revisions
Jump to navigation
Jump to search
Created page with "API Event to Add new Specialeffect {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |OPTIONAL |(Point with crs: EPSG:3857) |Location (optional) | |- |1 |OPTIONAL |(PARTICLE_EMITTER Integer ID) |Particle Emitter (optional) | |} ===Response Codes=== {|class=wikitable !Response Code: !Description |- |200 |Integer (Special Effect ID) |- |300-600 |Codes Overview |} ===Example POST=== Example POST: https://engine.tygron.com/api/session/event/editorspeci..." |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
API | API Endpoint: api/session/event/editorspecialeffect/add/ | ||
Description: Add new [[Special Effect]] | |||
{|class=wikitable | {|class=wikitable | ||
!Name | !Name | ||
| Line 31: | Line 34: | ||
|} | |} | ||
===Example POST=== | ===Example POST=== | ||
Curl example POST: | |||
<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/session/event/editorspecialeffect/add/?crs=3857' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "", "" ]' | |||
</syntaxhighlight> | |||
JavaScript example POST: | |||
<syntaxhighlight lang="text" copy>var options = { | |||
method: "POST", | |||
</ | headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" }, | ||
{{article end|seealso=*[[ | body: '[ "", "" ]' | ||
}; | |||
fetch("https://engine.tygron.com/api/session/event/editorspecialeffect/add/?crs=3857", options) | |||
.then(response => response.text()) | |||
.then(result => console.log(result)) | |||
.catch(error => console.log('error', error)); | |||
</syntaxhighlight> | |||
{{article end|seealso=*[[Api session event editor specialeffect]] | |||
*[[Api session items specialeffects]] | |||
}} | |||
[[Category:API]] | [[Category:API]] | ||
Latest revision as of 08:17, 15 May 2026
API Endpoint: api/session/event/editorspecialeffect/add/
Description: Add new Special Effect
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | OPTIONAL | (Point with crs: EPSG:3857) | Location (optional) | |
| 1 | OPTIONAL | (PARTICLE_EMITTER Integer ID) | Particle Emitter (optional) |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | Integer (Special Effect ID) |
| 300-600 | Codes Overview |
Example POST
Curl example POST:
curl 'https://engine.tygron.com/api/session/event/editorspecialeffect/add/?crs=3857' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "", "" ]'JavaScript example POST:
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '[ "", "" ]'
};
fetch("https://engine.tygron.com/api/session/event/editorspecialeffect/add/?crs=3857", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));