---
updatedAt: 2026-05-14T14:32:15.000Z
agentTools:
  projectIndex: https://docs.oysterhr.com/v0.1/llms.txt
---

# Manage Restrictive Covenant Agreement

This endpoint allows you to configure Restrictive Covenant Agreement, including non-competition and non-solicitation clauses, and post-termination payment arrangements.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Endpoints",
    "version": "v0.1"
  },
  "components": {
    "securitySchemes": {
      "bearer_auth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "restrictiveCovenants": {
        "type": "object",
        "properties": {
          "nonCompetition": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "enabled"
            ]
          },
          "nonSolicitation": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean"
              },
              "types": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "CUSTOMERS",
                    "EMPLOYEES"
                  ]
                },
                "description": "Types of non-solicitation restrictions"
              }
            },
            "required": [
              "enabled",
              "types"
            ]
          },
          "postTermination": {
            "type": "object",
            "properties": {
              "restrictedArea": {
                "type": "string",
                "nullable": true,
                "enum": [
                  "CITY",
                  "ADMINISTRATIVE_DIVISION",
                  "COUNTRY",
                  "WORLD"
                ]
              },
              "areaOfBusiness": {
                "type": "string",
                "nullable": true
              },
              "areaOfBusinessLocalized": {
                "type": "string",
                "nullable": true
              },
              "additionalAreas": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "duration": {
                "type": "object",
                "properties": {
                  "months": {
                    "type": "integer"
                  }
                },
                "required": [
                  "months"
                ]
              },
              "payment": {
                "type": "object",
                "properties": {
                  "frequency": {
                    "type": "string",
                    "enum": [
                      "MONTHLY",
                      "ON_TERMINATION"
                    ]
                  },
                  "amount": {
                    "type": "object",
                    "properties": {
                      "decimal": {
                        "type": "string"
                      },
                      "currencyCode": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "decimal",
                      "currencyCode"
                    ]
                  }
                },
                "required": [
                  "frequency",
                  "amount"
                ]
              }
            },
            "required": [
              "restrictedArea",
              "duration",
              "areaOfBusiness",
              "areaOfBusinessLocalized",
              "additionalAreas"
            ]
          }
        },
        "required": [
          "nonCompetition",
          "nonSolicitation"
        ]
      }
    }
  },
  "paths": {
    "/v0.1/hiring/employments/{id}/restrictive_covenants": {
      "put": {
        "summary": "Manage Restrictive Covenant Agreement",
        "tags": [
          "Employments"
        ],
        "description": "This endpoint allows you to configure Restrictive Covenant Agreement, including non-competition and non-solicitation clauses, and post-termination payment arrangements.",
        "security": [
          {
            "bearer_auth": [
              "manage"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Employment ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful update",
            "content": {
              "application/json": {
                "examples": {
                  "Successful update": {
                    "value": {
                      "data": {
                        "nonCompetition": {
                          "enabled": true
                        },
                        "nonSolicitation": {
                          "enabled": true,
                          "types": [
                            "CUSTOMERS",
                            "EMPLOYEES"
                          ]
                        },
                        "postTermination": {
                          "restrictedArea": "COUNTRY",
                          "restrictedActivities": [],
                          "areaOfBusiness": "Software development",
                          "areaOfBusinessLocalized": null,
                          "additionalAreas": [],
                          "duration": {
                            "months": 6
                          },
                          "payment": {
                            "frequency": "MONTHLY",
                            "amount": {
                              "decimal": "833.33",
                              "currencyCode": "USD"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/restrictiveCovenants"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Duration validation error",
            "content": {
              "application/json": {
                "examples": {
                  "Duration validation error": {
                    "value": {
                      "errors": [
                        {
                          "message": "Post-termination duration months must be 12 or less in United States"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "nonCompetition": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "enabled"
                    ]
                  },
                  "nonSolicitation": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "types": {
                        "type": "array",
                        "items": {
                          "minLength": 1,
                          "type": "string",
                          "enum": [
                            "CUSTOMERS",
                            "EMPLOYEES"
                          ]
                        }
                      }
                    },
                    "required": [
                      "enabled"
                    ]
                  },
                  "postTermination": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "restrictedArea": {
                        "type": "string",
                        "minLength": 1,
                        "enum": [
                          "WORLD",
                          "COUNTRY",
                          "ADMINISTRATIVE_DIVISION",
                          "CITY"
                        ]
                      },
                      "restrictedActivities": {
                        "nullable": true,
                        "type": "array",
                        "items": {
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "areaOfBusiness": {
                        "nullable": true,
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 256
                      },
                      "additionalAreas": {
                        "nullable": true,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Z]{2}$"
                        }
                      },
                      "payment": {
                        "nullable": true,
                        "type": "object",
                        "properties": {
                          "frequency": {
                            "type": "string",
                            "minLength": 1,
                            "enum": [
                              "MONTHLY",
                              "ON_TERMINATION"
                            ]
                          },
                          "amountDecimal": {
                            "type": "string",
                            "pattern": "^(?=.*[1-9])(0|[1-9][0-9]*)(\\.[0-9]{2,})?$"
                          },
                          "amountAsPercentage": {
                            "type": "string",
                            "pattern": "^(100(\\.0+)?|[0-9]{1,2}(\\.[0-9]{1,6})?)$"
                          }
                        }
                      },
                      "duration": {
                        "type": "object",
                        "properties": {
                          "months": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 60
                          }
                        },
                        "required": [
                          "months"
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "nonCompetition",
                  "nonSolicitation"
                ]
              },
              "examples": {
                "Successful update": {
                  "summary": "Successful update",
                  "value": {
                    "non_competition": {
                      "enabled": true
                    },
                    "non_solicitation": {
                      "enabled": true,
                      "types": [
                        "CUSTOMERS",
                        "EMPLOYEES"
                      ]
                    },
                    "post_termination": {
                      "restricted_area": "COUNTRY",
                      "area_of_business": "Software development",
                      "duration": {
                        "months": 6
                      },
                      "payment": {
                        "frequency": "MONTHLY",
                        "amount_as_percentage": "10.0"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.oysterhr.com",
      "description": "Production server"
    },
    {
      "url": "https://api-sandbox.oysterhr.com",
      "description": "Sandbox server"
    }
  ]
}
```