Get template list
GET/wiki/templates
History
Version | Changes |
---|---|
v6.12.0 | Added in: v6.12.0 |
Get template list.
Request
Query Parameters
The team ID
User ID, this parameter can only be passed when calling as an Oauth bot. It is used to perform operations as the specified user
Possible values: [space
, team
, system
]
Context Type.
Context ID.
The start index of the list
The limit of the list, maximum 200
Responses
- 200
- 401
- 403
- 404
- 500
Request is successful.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object
templates
object[]
The template ID
The template title
The context type
The context ID
The reference type
The reference ID
The sub reference type
The createdTime of template
The updatedTime of template
The total number of templates
The start index of the list
The number of templates in the list
The result of this request.
The error code of this request.
Error message for this request.
Error meta data for this request.
{
"data": {
"templates": [
{
"id": "string",
"title": "string",
"contextType": "string",
"contextID": "string",
"refType": "string",
"refID": "string",
"subRefType": "string",
"createdTime": 0,
"updatedTime": 0
}
],
"total": 0,
"start": 0,
"count": 0
},
"result": "string",
"errorCode": "string",
"errorMsg": "string",
"errorData": {}
}
Returned if the authentication credentials are incorrect or missing.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
Returns if the scope check fails.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
Returned if the resource object was not found.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
Internal Server Error.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}