Create a user group

post

/km/api/v1/userGroups

Creates an user group.

Request

Supported Media Types
Body ()
The object to be created.
Root Schema : UserGroup
Type: object
Title: UserGroup
Show Source
Nested Schema : localizedAttributes
Type: array
List of LocalizedAttributes of this UserGroup in various Locales
Show Source
Nested Schema : LocalizedAttributes
Type: object
Title: LocalizedAttributes
Show Source
Back to Top

Response

Supported Media Types

201 Response

Created.
Body ()
Root Schema : UserGroup
Type: object
Title: UserGroup
Show Source
Nested Schema : localizedAttributes
Type: array
List of LocalizedAttributes of this UserGroup in various Locales
Show Source
Nested Schema : LocalizedAttributes
Type: object
Title: LocalizedAttributes
Show Source
Back to Top

Examples

The following example shows how to create an User Group object in the Oracle Knowledge repository by submitting a post request on the REST resource using cURL.

curl -X POST "https://<IM_REST_API_HOST>/km/api/latest/userGroups" -u "<username:password>" -H "Accept: application/json" -H "Content-Type: application/json" -d "@<FilePath/RequestBody.json>"

Example of Request Body

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

{
	"recordId": "5D08D6C6E47E4B309D4651EAB11A5224",
	"referenceKey": "PAYROLL",
	"name": "Payroll Agents",
	"dateAdded": "2019-09-23T20:32:19+0000",
    "dateModified": "2019-09-23T20:32:19+0000",
	"objectId": "030",
	"stripeCd": "ORA_SVC_HCM",
	"description": "Payroll Agent User Group updated using the REST API",
	"localizedAttributes": [
		{
			"localeId": "en_US",
			"name": "Payroll Agents"
		},
		{
			"localeId": "ar_AE",
			"name": "<name in Arabic>"
		},
		{
			"localeId": "de_DE",
			"name": "Gehaltsabrechnungsagenten"
		},
		{
			"localeId": "es_ES",
			"name": "<name in Spanish>"
		},
		{
			"localeId": "fr_FR",
			"name": "agents de paie"
		},
		{
			"localeId": "ja_JP",
			"name": "<name in Japanese>"
		},
		{
			"localeId": "ko_KR",
			"name": "<name in Korean>"
		},
		{
			"localeId": "sv_SE",
			"name": "<name in Swedish>"
		},
		{
			"localeId": "zh_CN",
			"name": "<name in Chinese>"
		}
		]
}

Example of Response Body

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

{
    "recordId": "7E664B42F8F14A90AB68EF55C1A3AEB9",
    "referenceKey": "PAYROLL",
    "name": "Payroll Agents",
    "links": [
        {
            "rel": "canonical",
            "href": "https://<IM_REST_API_HOST>/km/api/latest/userGroups/7E664B42F8F14A90AB68EF55C1A3AEB9",
            "mediaType": "application/json, application/xml",
            "method": "GET"
        },
        {
            "rel": "collection",
            "href": "https://<IM_REST_API_HOST>/km/api/latest/userGroups",
            "mediaType": "application/json, application/xml",
            "method": "GET",
            "profile": "https://<IM_REST_API_HOST>/km/api/latest/metadata-catalog/userGroups"
        }
    ],
    "dateAdded": "2019-09-23T19:47:09+0000",
    "dateModified": "2019-09-23T19:47:09+0000",
    "objectId": "030",
    "description": "Payroll Agent User Group created using the REST API",
    "localizedAttributes": [
        {
            "localeId": "en_US",
            "name": "Payroll Agents",
            "description": "Payroll Agent User Group updated using the REST API"
        },
        {
            "localeId": "ar_AE",
            "name": "<name in Arabic>"
        },
        {
            "localeId": "de_DE",
            "name": "Gehaltsabrechnungsagenten"
        },
        {
            "localeId": "es_ES",
            "name": "<name in Spanish>"
        },
        {
            "localeId": "fr_FR",
            "name": "<name in French>"
        },
        {
            "localeId": "ja_JP",
            "name": "<name in Japanese>"
        },
        {
            "localeId": "ko_KR",
            "name": "<name in Korean>"
        },
        {
            "localeId": "sv_SE",
            "name": "<name in Swedish>"
        },
        {
            "localeId": "zh_CN",
            "name": "<name in Chinese>"
        }
    ],
    "stripeCd": "ORA_SVC_HCM"
}
Back to Top