跳到主要内容

getPublicSettings

BooleanWrapper getPublicSettings(id)

GET /api/2.0/files/roomtemplate/{id}/public

Get room template public access

Reports whether the room template addressed by id is shared with everyone or is reachable only by the accounts it was explicitly shared with. True means the Everyone group holds read access, so any member allowed to create rooms can build one from the template with POST api/2.0/files/rooms/fromtemplate; false means only the owner and the named recipients can. The identifier has to belong to a room template — take it from templateId of GET api/2.0/files/roomtemplate/status, or from the folder list of GET api/2.0/files/rooms called with searchArea set to 4 — while an ordinary room, a deleted template or an unknown value is answered as missing. The caller needs read access to the template, so somebody else's private template is refused even for a portal administrator, and members who cannot reach the Templates section at all are refused whatever the template's state. The call only reads state; use PUT api/2.0/files/roomtemplate/public to change it.

Parameters​

NameInTypeDescriptionNotes
idpathInteger (int32)The identifier of the room template. Take it from templateId of GET api/2.0/files/roomtemplate/status, or from the folder list of GET api/2.0/files/rooms called with searchArea set to 4; an identifier of an ordinary room is not accepted.[required] [example: 1234] [min: 1] [max: 2147483647]

Responses​

Status codeDescriptionTypeResponse headers
200True when the template is shared with everyone, false when only its owner and the accounts it was shared with can reach itBooleanWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
400A parameter has the wrong type, or id is less than 1--
403The caller has no read access to the template--
404id does not identify a room template--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

BooleanWrapper

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json