updateShareSetting
put
/ccstore/v1/shareSettings/{id}
Update Share Setting. This operation is used to update properties of a share setting.
The account, sharedResourceType and relativeTo cannot be updated after creation of the share setting.
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
The ID of the Share Setting to be updated.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Example Response (application/json)
{
"owner":{
"firstName":"Leota",
"lastName":"Dilliard",
"id":"bb-100006",
"email":"leota@example.com"
},
"organizationSharingEnabled":true,
"relativeTo":"gl100001",
"sharedEmailConfigs":[
],
"sharedResourceType":"purchaseList",
"id":"100001",
"defaultEditEnabled":true,
"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.|
|22007|The profile id given does not belong to the organization associated with the logged in user|
|64100|Purchase list does not exist or you do not have access to it.|
|64505|Share setting does not exist or you do not have access to it.|
|64518|Invalid input.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code