是否可以使用 PHP SOAP 客户端通过 SoftLayer API 作为特定用户添加票证响应?

Is it possible to add a ticket response as a specific user via the SoftLayer API using the PHP SOAP client?

我正在尝试使用 SoftLayer API(通过 PHP 客户端)向现有票证添加更新,作为特定我们主帐户下的用户(我们 API 用户的同胞)。

我想要实现的是,作为 API 用户,我调用 SoftLayer_Ticket::addUpdate,传递一个看起来类似于:

SoftLayer_Ticket_Update 对象
{
    editorID: user1_id_here,
    editorType: "USER",
    entry: 'My update here'
}

我有 user1 的 ID,但是当我在 SoftLayer_Ticket_Update 对象中传递它时,更新仍然作为 API 用户附加:

{
    createDate:"2016-05-17T08:24:50-07:00"
    editorId:api_users_id
    editorType:"USER"
    entry:"Another update for our glorious leader..."
    id:#########
    ticketId:########
}

工单更新代码片段:

    $slClient = \SoftLayer_client::getClient("Ticket", $ticketID);

    $ticketUpdateObj = new \stdClass();
    $ticketUpdateObj->entry = $update;
    $ticketUpdateObj->editorId = ######;
    $ticketUpdateObj->editor = ######;
    $ticketUpdateObj->editorType = "USER";

    $result = $slClient->addUpdate($ticketUpdateObj);
    ...
    (do other stuff here)

有什么方法可以用 SoftLayer API 做到这一点吗?还是问题源于授予 API 用户的权限,或者我试图将更新作为同级添加到 API 用户?如有任何帮助,我们将不胜感激!

我们的平台较旧,因此我们使用的是较旧版本的 SoftLayer PHP SOAP 客户端(猜测大约在 2010 年/2011 年初)。

提前致谢!

抱歉,这不可能,您不能设置 editorId,该值由系统使用更新工单的用户的 userID 设置。

此致