Api session event editor netsetting set owner: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 13: Line 13:
|REQUIRED
|REQUIRED
|(Enumeration)
|(Enumeration)
|NetType
|[[Net Type]]
|ELECTRICITY, GAS, HEAT, INTERNET  or  SEWER
|ELECTRICITY, GAS, HEAT, INTERNET  or  SEWER
|-
|-

Revision as of 12:25, 6 May 2026

API Endpoint: editornetsetting/set_owner.

Description: Set Owner

Name Importance Type Description Values
0 REQUIRED (Enumeration) Net Type ELECTRICITY, GAS, HEAT, INTERNET or SEWER
1 REQUIRED (STAKEHOLDER Integer ID) Stakeholder

Response Codes

Response Code: Description
204 No Content
300-600 Codes Overview

Example POST

Curl example POST:

curl 'https://engine.tygron.com/api/session/event/editornetsetting/set_owner/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "ELECTRICITY", 1 ]'

JavaScript example POST:

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
 body: '[ "ELECTRICITY", 1 ]'
};
fetch("https://engine.tygron.com/api/session/event/editornetsetting/set_owner/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));