Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Assign an Owner to an incident

    Use this API to assign a user to an incident for ownership.

    URI

    https://[host]/api/juniper/servicenow/incident-management/incidents/{id}/ assignOwnership (HTTP method = PUT)

    URI Parameters

    Parameter

    Type

    Required

    Description

    id

    Integer

    Yes

    ID of the incident to which an owner is to be assigned

    Consumes

    • application/vnd.juniper.servicenow.incident-management.incident.assignOwnership +xml;version=1;charset=UTF-8
    • application/vnd.juniper.servicenow.incident-management.incident.assignOwnership +json;version=1;charset=UTF-8

    Request Elements

    Element

    Type

    Description

    userLoginId

    String

    Service Now login ID of a user to whom the incident is to be assigned for ownership

    isEmailMessageToAssignedUser

    Boolean

    Flag to indicate if the incident is assigned to a user

    Possible values:

    • true—Incident is assigned to a user
    • false—Incident is not assigned to a user

    Produces

    • application/vnd.juniper.servicenow.incident-management.servicenowmsg +xml;version=1
    • application/vnd.juniper.servicenow.incident-management.servicenowmsg +json;version=1

    Response Elements

    Element

    Type

    Description

    msg

    String

    Status message of the assign ownership job

    Sample Input

    Sample XML Input

    <assignOwnership>
    <userLoginId>super</userLoginId>
    <isEmailMessageToAssignedOwner>true</isEmailMessageToAssignedOwner>
    </assignOwnership>
    

    Sample JSON Input

    {
      "assignOwnership": {
        "userLoginId": "super",
        "isEmailMessageToAssignedOwner": "true"
      }
    }
    

    Sample Output

    Sample XML Output

    <serviceNowMsg>
    	<msg>Incident assigned successfully</msg>
    </ serviceNowMsg>
    

    Sample JSON Output

    {
      "serviceNowMsg": { "msg": "Incident assigned successfully" }
    }
    

    Modified: 2016-08-11