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 Ownership to an Information Message

    Use this API to assign an information message to a user for ownership.

    URI

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

    URI Parameters

    Parameter

    Type

    Required

    Description

    id

    Integer

    Yes

    ID of the information message for which an owner is to be assigned

    Consumes

    • application/vnd.juniper.servicenow.information-management.informationMessage. assignOwnership+xml;version=1
    • application/vnd.juniper.servicenow.information-management.informationMessage. assignOwnership+json;version=1

    Request Elements

    Element

    Type

    Description

    userLoginId

    String

    Junos Space login iD of the user to whom the information message is to be assigned for ownership

    isEmailMessageToAssignedOwner

    Boolean

    Flag to specify if the message is mailed to the user assigned for ownership

    Possible values:

    • true—Message is mailed to user
    • false—Message is not mailed to user

    Produces

    • application/vnd.juniper.servicenow.information-management.servicenowmsg+xml;version=1
    • application/vnd.juniper.servicenow.information-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>Message assigned successfully</msg>
    </ serviceNowMsg>
    

    Sample JSON Output

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

    Modified: 2016-08-10