createShareSetting

post

/ccstore/v1/shareSettings

Create Share Setting. This operation is used to create a share setting for a resource. Each share setting must be unique to the resource being shared in terms of the account context.

Request

Supported Media Types
Body ()
Root Schema : createShareSetting_request
Type: object
Show Source
Example:
{
    "organizationSharingEnabled":false,
    "relativeTo":"gl100001",
    "sharedResourceType":"purchaseList",
    "defaultEditEnabled":false,
    "account":{
        "id":"or-100001"
    }
}
Nested Schema : account
Type: object
Account for in which the sharing should be valid.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : createShareSetting_response
Type: object
Show Source
Nested Schema : account
Type: object
Account for in which the sharing should be valid.
Show Source
Nested Schema : owner
Type: object
The user who created this share setting.
Show Source
Nested Schema : sharedEmailConfigs
Type: array
Email configurations of the recipients with whom sharing is done using individual email addresses.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "owner":{
        "firstName":"Leota",
        "lastName":"Dilliard",
        "id":"bb-100006",
        "email":"leota@example.com"
    },
    "organizationSharingEnabled":false,
    "relativeTo":"gl100001",
    "sharedEmailConfigs":[
    ],
    "sharedResourceType":"purchaseList",
    "id":"100001",
    "defaultEditEnabled":false,
    "account":{
        "name":"National Discount Auto Parts",
        "id":"or-100001"
    }
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |00001000|The user is not authenticated.| |100001|Invalid Organization ID| |64518|Invalid input.| |64100|Purchase list does not exist or you do not have access to it.| |64516|In order to update account-specific properties like "organizationSharingEnabled" and "defaultEditEnabled", you need to provide account information.| |22007|The profile id given does not belong to the organization associated with the logged in user| |22007|The profile id given does not belong to the organization associated with the logged in user| |64130|You already have share setting for account.
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top