---
updatedAt: 2026-05-27T16:34:25.000Z
agentTools:
  projectIndex: https://api.atsanywhere.io/llms.txt
---

# Update Restricted File

Update a restricted file.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/restricted_files/{id}": {
      "patch": {
        "responses": {
          "200": {
            "description": "Updated a restricted file.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestrictedFile"
                }
              }
            }
          },
          "403": {
            "description": "Not authorized"
          },
          "404": {
            "description": "Record not found.  Please check to make sure that the specified ID is valid."
          },
          "422": {
            "description": "Fields were invalid or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "errors": {
                      "type": "object",
                      "properties": {
                        "field_name": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "can't be blank"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal system error.  Please contact support in the event that this occurs."
          }
        },
        "summary": "Update Restricted File",
        "description": "Update a restricted file.",
        "tags": [
          "Application Files"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The identifier provided after your restricted file was created.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/UpdateRestrictedFilePayload"
        }
      }
    }
  },
  "info": {
    "version": "1.0.0",
    "title": "Applicant Tracking API",
    "description": "Applicant Tracking API"
  },
  "servers": [
    {
      "url": "https://api.applicant-tracking.com/api/v1"
    }
  ],
  "components": {
    "requestBodies": {
      "UpdateRestrictedFilePayload": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/UpdateRestrictedFilePayload"
            }
          }
        },
        "required": true
      }
    },
    "schemas": {
      "RestrictedFile": {
        "properties": {
          "id": {
            "type": "string",
            "example": "111"
          },
          "company_id": {
            "type": "string",
            "example": "23"
          },
          "company_external_id": {
            "type": "string",
            "example": "abc123",
            "description": "The company's external ID (set by its private label or integration partner); null when it has none."
          },
          "application_id": {
            "type": "string",
            "example": "23"
          },
          "site_id": {
            "type": "string",
            "example": "492"
          },
          "site_external_id": {
            "type": "string",
            "example": "abc123",
            "description": "The site's external ID; null when there is no site or it has none."
          },
          "filename": {
            "type": "string",
            "example": "SampleOffer.pdf"
          },
          "file_type": {
            "type": "string",
            "example": "Offer"
          },
          "file_size": {
            "type": "string",
            "example": "1500"
          },
          "file_url": {
            "type": "string",
            "example": "https://www.downloadablelink.com/myfile.pdf"
          },
          "restricted": {
            "type": "boolean",
            "example": true
          },
          "created_at": {
            "type": "string",
            "example": "2018-01-08T06:34:48-08:00"
          }
        }
      },
      "UpdateRestrictedFilePayload": {
        "properties": {
          "filename": {
            "type": "string",
            "example": "MyNewResume.pdf"
          }
        }
      }
    }
  }
}
```