Request
Basic information
| Field | Value |
|---|---|
| HTTP URL | https://api.dingtalk.io/v1.0/rooms/devices/screens/templates/{templateId} |
| HTTP Method | GET |
| Supported app types | appType-Internal app appType-Third-party enterprise app |
| Required permissions | permission-Rooms.DeviceTemplate.Read-Read permission for custom screens of DingTalk Meeting Rooms |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
| x-acs-dingtalk-access-token | String | Yes | The API credential. Obtain it by calling the Get user token API. When you call the Get user token API, the code parameter must be obtained from a constructed link whose scope includes the user ID and organization ID, that is, scope=openid corpid. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| templateId | Long | Yes | The template ID. Obtain it by calling the Query custom screen template list API. |
Request example
HTTPResponse
Response body
| Name | Type | Description |
|---|---|---|
| result | Object | The response result. |
| deviceCustomTemplate | Object | The template content. |
| templateId | Long | The template ID. |
| corpId | String | The organization ID that the template belongs to. |
| logo | String | The template logo. |
| orgName | String | The organization name of the template. |
| customDoc | String | The custom text content of the template. |
| bgUrl | String | The custom background URL of the template. |
| bgImageList | Array of String | The image mediaId. |
| instruction | Boolean | Whether to display the user guide. Valid values: - true: display - false: do not display |
| bgType | Integer | The custom background type of the template. Valid values: - 1: image - 2: URL |
| isPicTop | Integer | Whether to display the home information bar. Valid values: - 0: display - 1: do not display |
| templateName | String | The template name. |
| confType | Integer | The template type. Valid values: - 1: default template - 2: custom template |
| showCalendarTitle | Boolean | Whether to display the event title on the event card. Valid values: - true: display - false: do not display |
| hideServerCodeWhenProjecting | Boolean | Whether to hide the cast code during casting. Valid values: - true: hide - false: do not hide |
| confSubType | Integer | The template subtype. Valid values: - 1: default subtype |
| desensitizeUserName | Boolean | Whether to mask the organizer name on the event card. Valid values: - true: mask - false: do not mask |
| picturePlayInterval | Integer | The carousel interval for custom background images, in seconds. |
| showCalendarCard | Boolean | Whether to display the event card. Valid values: - true: display - false: do not display |
| showFunctionCard | Boolean | Whether to display the function card. Valid values: - true: display - false: do not display |
| deviceUnionIds | Array of String | The device unionId. |
| groupIds | Array of Long | The group ID. |
| roomIds | Array of String | The room ID. |
Response body example
Error codes
If an error occurs when you call this API, look up the error message in the Global error codes document for solutions.| HttpCode | Error code | Error message | Description |
|---|---|---|---|
| 400 | param.error | Param Error | Parameter error |
| 400 | no.permission | No Permission | No permission |
| 400 | template.not.found | Template Not Found | Template not found |
| 500 | system.error | System Error | System error |