Update a Project Security Policy
post
/ic/api/integration/v1/projects/{projectId}/mcp/policies/security/{id}
Updates a project security policy. Set the X-HTTP-Method-Override header to PATCH.
Request
Path Parameters
-
id(required): string
Resource code, optionally followed by |01.00.0000. Omitted versions default to 01.00.0000; other versions are rejected.Example:
TOOLS_POLICY -
projectId(required): string
Project identifierExample:
MCP_PROJECT
Query Parameters
-
integrationInstance(required): string
This is the name of the service instance. You can get this value from the About page where it is specified in the Service instance field.Example:
example-instance
Header Parameters
-
X-HTTP-Method-Override(required): string
Set to PATCH to update the resource using this POST operation.Example:
PATCH
Supported Media Types
- application/json; charset=utf-8
Root Schema : schema
Type:
objectMCP policy details, including scope and type-specific configuration.
Show Source
-
code: string
Resource code.
-
config: object
config
Additional Properties Allowed:
truePolicy-type-specific configuration. Its required fields depend on the policy type. -
created: string
(date-time)
Time the resource was created.
-
createdBy: string
User who created the resource.
-
description: string
Description of the resource.
-
iconclass: string
Icon CSS class for displaying this policy or template.
-
id: string
Resource identifier.
-
lastUpdated: string
(date-time)
Time the resource was last updated.
-
lastUpdatedBy: string
User who last updated the resource.
-
links: array
links
Links to related resources.
-
name: string
Display name of the resource.
-
policyType: string
Policy type identifier.
-
processingTime: number
(float)
Server-reported processing time.
-
projectCode: string
Optional project code accepted on create or update. It must match the project in the request path; if omitted, the current project is used.
-
projectId: string
Project identifier.
-
projectName: string
Project display name.
-
scope:
scope
Resource scope to which the MCP policy applies.
-
status: string
Allowed Values:
[ "INPROGRESS", "CONFIGURED" ]Current resource state. -
version: string
Resource version. The release accepts only 01.00.0000 on writes and uses it when the version is omitted.
Nested Schema : config
Type:
objectAdditional Properties Allowed:
truePolicy-type-specific configuration. Its required fields depend on the policy type.
Nested Schema : links
Type:
arrayLinks to related resources.
Show Source
-
Array of:
object MCP2610_Link
A link to a related REST resource.
Nested Schema : scope
Resource scope to which the MCP policy applies.
Match All
Resource scope to which the MCP policy applies.
Show Source
-
object
PolicyScopeRs
Resource scope to which the MCP policy applies.
Nested Schema : MCP2610_Link
Type:
objectA link to a related REST resource.
Show Source
-
href: string
URL of the linked resource.
-
mediaType: string
Media type of the linked resource.
-
rel: string
Relationship of the linked resource.
Nested Schema : PolicyScopeRs
Type:
objectResource scope to which the MCP policy applies.
Show Source
-
code: string
Resource code.
-
level: string
Scope level.
-
version: string
Version of the referenced resource, defaulting to 01.00.0000 where a version is used.
Response
Supported Media Types
- application/vnd.oracle.model+json;type=singular
- application/json; charset=utf-8
200 Response
Successful operation
Root Schema : schema
Type:
objectMCP policy details, including scope and type-specific configuration.
Show Source
-
code: string
Resource code.
-
config: object
config
Additional Properties Allowed:
truePolicy-type-specific configuration. Its required fields depend on the policy type. -
created: string
(date-time)
Time the resource was created.
-
createdBy: string
User who created the resource.
-
description: string
Description of the resource.
-
iconclass: string
Icon CSS class for displaying this policy or template.
-
id: string
Resource identifier.
-
lastUpdated: string
(date-time)
Time the resource was last updated.
-
lastUpdatedBy: string
User who last updated the resource.
-
links: array
links
Links to related resources.
-
name: string
Display name of the resource.
-
policyType: string
Policy type identifier.
-
processingTime: number
(float)
Server-reported processing time.
-
projectCode: string
Optional project code accepted on create or update. It must match the project in the request path; if omitted, the current project is used.
-
projectId: string
Project identifier.
-
projectName: string
Project display name.
-
scope:
scope
Resource scope to which the MCP policy applies.
-
status: string
Allowed Values:
[ "INPROGRESS", "CONFIGURED" ]Current resource state. -
version: string
Resource version. The release accepts only 01.00.0000 on writes and uses it when the version is omitted.
Nested Schema : config
Type:
objectAdditional Properties Allowed:
truePolicy-type-specific configuration. Its required fields depend on the policy type.
Nested Schema : links
Type:
arrayLinks to related resources.
Show Source
-
Array of:
object MCP2610_Link
A link to a related REST resource.
Nested Schema : scope
Resource scope to which the MCP policy applies.
Match All
Resource scope to which the MCP policy applies.
Show Source
-
object
PolicyScopeRs
Resource scope to which the MCP policy applies.
Nested Schema : MCP2610_Link
Type:
objectA link to a related REST resource.
Show Source
-
href: string
URL of the linked resource.
-
mediaType: string
Media type of the linked resource.
-
rel: string
Relationship of the linked resource.
Nested Schema : PolicyScopeRs
Type:
objectResource scope to which the MCP policy applies.
Show Source
-
code: string
Resource code.
-
level: string
Scope level.
-
version: string
Version of the referenced resource, defaulting to 01.00.0000 where a version is used.
400 Response
Malformed parameters
401 Response
Unauthorized or insufficient design-time permissions
404 Response
Project or resource not found, or the MCP feature is not available
500 Response
Server error
Examples
The following example shows how to update a project security policy by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.
Example: Update a Project Security Policy
curl --request POST --include \
--url "${BASE_URL}/ic/api/integration/v1/projects/${PROJECT_ID}/mcp/policies/security/${SECURITY_POLICY_ID}?integrationInstance=${INTEGRATION_INSTANCE}" \
--header "Authorization: Bearer ${ACCESS_TOKEN}" \
--header "Accept: application/json" \
--header "X-HTTP-Method-Override: PATCH" \
--header "Content-Type: application/json; charset=utf-8" \
--data-raw '{
"name": "Tools Policy Updated"
}'