POST /v1/policy-templates/{template_id}:fork
PolicyService_ForkPolicyTemplate
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
template_idpath · string · required
Request body
codestringdescriptionstringnamestringslot_bindings_jsonstringtarget_kindstringtemplate_idstring
cURL
curl --request POST 'https://nexus-api.rainlib.com/v1/policy-templates/{template_id}:fork' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"code": "<value>",
"description": "<value>",
"name": "<value>",
"slot_bindings_json": "<value>",
"target_kind": "<value>"
}'Response contract
200 · OK
codestringcreated_atstringdefinition_snapshot_jsonstringdescriptionstringenvironment_idstringidstringnamestringslot_bindings_jsonstringstatusstringtarget_hrefstringtarget_idstringtarget_kindstringtemplate_idstringtemplate_versioninteger · int32updated_atstringversionstring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.