Set users

put

/rest/ofscCore/v1/resources/{resourceId}/users

This operation updates the list of users assigned to the specified resource.

Request

Path Parameters
Body ()
Root Schema : Resource Users
Type: object
Title: Resource Users
The list of users assigned to the resource.
Show Source
  • Items
    Title: Items
    The array of objects containing information about the users assigned to the resource.
Nested Schema : Items
Type: array
Title: Items
The array of objects containing information about the users assigned to the resource.
Show Source
Nested Schema : Resource User
Type: object
Title: Resource User
The user assigned to the resource.
Show Source
Back to Top

Response

Supported Media Types

200 Response

This section describes the 200 status response for this operation.
Body ()
Root Schema : Resource Users
Type: object
Title: Resource Users
The list of users assigned to the resource.
Show Source
  • Items
    Title: Items
    The array of objects containing information about the users assigned to the resource.
Nested Schema : Items
Type: array
Title: Items
The array of objects containing information about the users assigned to the resource.
Show Source
Nested Schema : Resource User
Type: object
Title: Resource User
The user assigned to the resource.
Show Source

Default Response

This section describes the default error response for this operation.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top

Examples

The following example shows how to set users for a resource by submitting a PUT request on the REST resource.

Example of Request Header

The following shows an example of the request header.

PUT /rest/ofscCore/v1/resources/testResourceUsersCruOOXEKHKTDP/users HTTP/1.0

Example of Request Body

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

{
        "items": [
            {
                "login": "de_engineer"
            },
            {
                "login": "ru_engineer"
            }
        ]
}

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK

Example of Response Body

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

{
        "items": [
            {
                "login": "de_engineer",
                "links": [
                    {
                        "rel": "canonical",
                        "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/users/de_engineer"
                    }
                ]
            },
            {
                "login": "ru_engineer",
                "links": [
                    {
                        "rel": "canonical",
                        "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/users/ru_engineer"
                    }
                ]
            }
        ]
    }
Back to Top