修改请求共享信息

修改请求共享信息

API调用URL地址

http://<serverName>:<portNumber>/api/v3/requests/1/share

其中{request_id}为需要修改共享信息的请求ID

示例:http://192.168.0.163:8080/api/v3/requests/1/share

请求参数

方法:PUT

请求参数:

参数名

值

位置

input_data

<JSON_String>

body

authtoken

<API Key>

header


输入示例

input_data格式:

{
    "share":{
        "technicians":[
            {
                "id":10
            }
        ],
        "users":[
            {
                "id":301
            }
        ],
        "departments":[
            {
                "id":3
            }
        ],
        "groups":[
            {
                "id":2
            }
        ],
        "technician_comments":"sharefromAPI",
        "user_comments":"share"
    }

} 


字段与页面中值的对应关系如下:



响应示例

 {

    "response_status": {

        "messages": [

            {

                "type": "success",

                "message": "共享明细 更新成功",

                "status_code": "200"

            }

        ],

        "id": "1",

        "status": "success"

    },

    "share": {

        "user_comments": "share",

        "technicians": [

            {

                "email_id": null,

                "name": "Jeniffer Doe",

                "is_vipuser": false,

                "id": "10"

            }

        ],

        "groups": [

            {

                "name": "Network",

                "id": "2"

            }

        ],

        "sites": [],

        "departments": [

            {

                "name": "Sales",

                "id": "3"

            }

        ],

        "user_scope": [

            "requester"

        ],

        "users": [

            {

                "email_id": null,

                "name": "guest2",

                "is_vipuser": false,

                "id": "301"

            }

        ],

        "technician_comments": "sharefromAPI"

    }