# Create a replication rule Create a replication rule Endpoint: POST /har/api/v1/replication/rules Version: 1.0 Security: x-api-key ## Query parameters: - `space_ref` (string) Reference to the scope in which the registry exists. Format depends on the scope: - : - : - : The suffix is used internally to route scoped requests. It must be included in the URL. ## Request fields (application/json): - `allowedPatterns` (array, required) - `blockedPatterns` (array, required) - `destination` (any, required) - `destinationType` (string, required) Enum: "Local", "Jfrog", "GCP" - `source` (any, required) - `sourceType` (string, required) Enum: "Local", "Jfrog", "GCP" ## Response 200 fields (application/json): - `data` (object, required) - `data.allowedPatterns` (array, required) - `data.blockedPatterns` (array, required) - `data.createdAt` (string, required) - `data.destination` (any, required) - `data.destinationType` (string, required) Enum: "Local", "Jfrog", "GCP" - `data.identifier` (string, required) - `data.modifiedAt` (string, required) - `data.parentRef` (string, required) - `data.source` (any, required) - `data.sourceType` (string, required) Enum: "Local", "Jfrog", "GCP" - `status` (string, required) Indicates if the request was successful or not Enum: "SUCCESS", "FAILURE", "ERROR" ## Response 400 fields (application/json): - `code` (string, required) The http error code Example: "404" - `details` (object) Additional details about the error - `message` (string, required) The reason the request failed ## Response 401 fields (application/json): - `code` (string, required) The http error code Example: "404" - `details` (object) Additional details about the error - `message` (string, required) The reason the request failed ## Response 403 fields (application/json): - `code` (string, required) The http error code Example: "404" - `details` (object) Additional details about the error - `message` (string, required) The reason the request failed ## Response 404 fields (application/json): - `code` (string, required) The http error code Example: "404" - `details` (object) Additional details about the error - `message` (string, required) The reason the request failed ## Response 500 fields (application/json): - `code` (string, required) The http error code Example: "404" - `details` (object) Additional details about the error - `message` (string, required) The reason the request failed