Assign a request to user

post

/epm/rest/v1/requests/assignRequest

Request

Body ()
AssignRequestToUserCommandJson
Root Schema : Parameters for assigning a request
Type: object
Show Source
Back to Top

Response

Supported Media Types

201 Response

Request Assigned
Headers
Body ()
Root Schema : Request
Type: object
A Request models changes to apply to a View
Show Source
Nested Schema : approvalUsers
Type: array
Read Only: true
Show Source
Nested Schema : User
Type: object
Show Source
Nested Schema : commitUsers
Type: array
Read Only: true
Show Source
Nested Schema : IdNameDescription
Type: object
Show Source
Nested Schema : inviteeUsers
Type: array
Read Only: true
Show Source
Nested Schema : subscriptions
Type: array
Read Only: true
Show Source
Nested Schema : validTransitionActions
Type: array
Read Only: true
Show Source
  • Allowed Values: [ "SUBMIT", "APPROVE", "PUSHBACK", "REJECT", "WITHDRAW", "RECALL", "COMMIT", "CLOSE" ]
Nested Schema : artifactAssignments
Type: array
Show Source
Nested Schema : associatedRoles
Type: array
Show Source
Nested Schema : emailAddresses
Type: array
Show Source
Nested Schema : Preferences
Type: object
Show Source
Nested Schema : ArtifactAssignment
Type: object
Show Source
Nested Schema : Artifact
Type: object
Show Source
Nested Schema : Role
Type: object
Show Source
Nested Schema : TimeZone
Type: object
Show Source

400 Response

Error in body

401 Response

Unauthorized to assign requests

404 Response

Request not found
Back to Top

Examples

The following example shows how to assign a request to a user

curl --user epm_cloud_user -X POST -H 'Content-Type: application/json' -d
@example_request_payload.json https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/assignRequest

Example of Request Body

The following shows an example of the request body in JSON format.

{
    "requestNumber": 4137,
    "userName": "barry",
    "comment": "Assigning to Barry to complete and submit the request",
}

Example of Response Body

The following shows an example of the response body in JSON format.

{
    {
        "id": "9b578f8d-b7ae-4a43-a2f0-47b72e389363",
        "title": "Request 4137",
        "description": "Request for Departments created by Administrator .",
        "origin": "INTERACTIVE",
        "status": "DRAFT",
        "stage": "SUBMIT",
        "requestNumber": 4137,
        "timeCreated": "2022-11-28T22:50:08.912Z",
        "timeModified": "2022-11-28T22:50:36.946Z",
        "createdBy": "Administrator ",
        "modifiedBy": "Administrator ",
        "assignedTo": "Barry Dylan",
        "viewId": "bf218685-6038-48f2-9538-748bd97bc63d",
        "viewName": "Departments",
        "hasViewAccess": false,
        "links": [
            {
                "rel": "addComment",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/comments",
                "method": "POST"
            },
            {
                "rel": "addAttachment",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/attachments",
                "method": "POST"
            },
            {
                "rel": "self",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363"
            },
            {
                "rel": "comments",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/comments"
            },
            {
                "rel": "history",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/history"
            },
            {
                "rel": "view",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/views/bf218685-6038-48f2-9538-748bd97bc63d"
            },
            {
                "rel": "items",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/items"
            },
            {
                "rel": "validAssignees",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/validAssignee"
            },
            {
                "rel": "parseResults",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/parseResults",
                "method": "POST"
            },
            {
                "rel": "attachments",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/attachments"
            },
            {
                "rel": "export",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/export",
                "method": "POST"
            },
            {
                "rel": "approvals",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/policiesByStage/approve"
            },
            {
                "rel": "commits",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/policiesByStage/approve"
            },
            {
                "rel": "copyNodes",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/copyNodes",
                "method": "POST"
            },
            {
                "rel": "copyNode",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/copyNode",
                "method": "POST"
            },
            {
                "rel": "addNode",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/edits/{nodeId}/addNode",
                "templated": true,
                "method": "POST"
            },
            {
                "rel": "insertNode",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/edits/{nodeId}/insertNode",
                "templated": true,
                "method": "POST"
            },
            {
                "rel": "deleteNode",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/edits/{nodeId}/deleteNode",
                "templated": true,
                "method": "POST"
            },
            {
                "rel": "updateNodeProp",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/edits/{nodeId}/updateNodeProp",
                "templated": true,
                "method": "POST"
            },
            {
                "rel": "clearNodeProp",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/edits/{nodeId}/clearNodeProp",
                "templated": true,
                "method": "POST"
            },
            {
                "rel": "renameNode",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/edits/{nodeId}/renameNode",
                "templated": true,
                "method": "POST"
            },
            {
                "rel": "moveNode",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/edits/{nodeId}/moveNode",
                "templated": true,
                "method": "POST"
            },
            {
                "rel": "removeNode",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/edits/{nodeId}/removeNode",
                "templated": true,
                "method": "POST"
            },
            {
                "rel": "reorderNode",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/edits/{nodeId}/reorderNode",
                "templated": true,
                "method": "POST"
            },
            {
                "rel": "collaborationInvitees",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/collaborationInvitees"
            },
            {
                "rel": "participants",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/requestParticipants"
            },
            {
                "rel": "transactionSummaryByNode",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/requestTransactionSummary"
            },
            {
                "rel": "lineage",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/9b578f8d-b7ae-4a43-a2f0-47b72e389363/lineage"
            }
        ],
        "consolidationRequestNumber": 0,
        "validTransitionActions": [
            "SUBMIT"
        ],
        "viewStatus": "ACTIVE",
        "ageInDays": 0,
        "createdByUser": {
            "id": "d0b44daf-502b-4c27-9edb-3ac4bd7d1aee",
            "userName": "epm_default_cloud_admin",
            "fullName": "Administrator ",
            "firstName": "Administrator",
            "lastName": "",
            "emailAddresses": [],
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/users/d0b44daf-502b-4c27-9edb-3ac4bd7d1aee"
                }
            ],
            "nameInitials": "A",
            "dataManagerOnAny": false
        },
        "modifiedByUser": {
            "id": "d0b44daf-502b-4c27-9edb-3ac4bd7d1aee",
            "userName": "epm_default_cloud_admin",
            "fullName": "Administrator ",
            "firstName": "Administrator",
            "lastName": "",
            "emailAddresses": [],
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/users/d0b44daf-502b-4c27-9edb-3ac4bd7d1aee"
                }
            ],
            "nameInitials": "A",
            "dataManagerOnAny": false
        },
        "assignedToUser": {
            "id": "94dc32d0-47ff-43c1-b119-d2141c32dd54",
            "userName": "barry",
            "fullName": "Barry Dylan",
            "firstName": "Barry",
            "lastName": "Dylan",
            "emailAddresses": [],
            "links": [
                {
                    "rel": "self",
                    "href": "http://localhost:8080/dmcs/ui-rest/v1/users/94dc32d0-47ff-43c1-b119-d2141c32dd54"
                },
                {
                    "rel": "profilePicture",
                    "href": "http://localhost:8080/dmcs/ui-rest/v1/users/94dc32d0-47ff-43c1-b119-d2141c32dd54/profilePicture",
                    "method": "GET"
                }
            ],
            "nameInitials": "BD",
            "dataManagerOnAny": false
        },
        "subscriptions": [],
        "autoSubmitted": false
    }
}
Back to Top