Create template

This endpoint is used to create a knowledge base template.

Leave Feedback

URL

POST https://api.opsramp.com/api/v2//tenants/{tenantId}/kb/template

Sample URLs

https://api.opsramp.com//api/v2//tenants/client_11/kb/template

Parameters

All fields are mandatory:

FieldData TypeDescription
categoryStringName of the knowledge base category.
subjectStringDefines the subject of the knowledge base category.
contentStringDefines the content of the category.

Status code

200 OK

Sample request

{
    "subject": "New Template Created",
    "content": "New Template Content Changes",
    "category": {
        "id": "KB0000000002",
        "name": "Client"
    },
    "state": "PUBLISHED"
}

Sample response

{
    "id": "KB0000000042",
    "subject": "New Template Created",
    "content": "New Template Content Changes",
    "createdTime": "2019-05-14T08:45:49+0000",
    "updatedTime": "2019-05-14T08:45:49+0000",
    "createdBy": {
        "id": "USR0000000002",
        "loginName": "opsramp_api_user",
        "lastName": " ",
        "firstName": "OpsRamp API User",
        "email": "lakshmi.balla@opsramp.com"
    },
    "updatedBy": {
        "id": "USR0000000002",
        "loginName": "opsramp_api_user",
        "lastName": " ",
        "firstName": "OpsRamp API User",
        "email": "lakshmi.balla@opsramp.com"
    },
    "shared": false,
    "category": {
        "id": "KB0000000002",
        "name": "Client",
        "description": "Client",
        "path": "Client",
        "state": "ACTIVE"
    },
    "state": "PUBLISHED"
}