# Method: projects.companies.patch

- [HTTP request](https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies/patch#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies/patch#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies/patch#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies/patch#body.request_body.SCHEMA_REPRESENTATION)
    - [JSON representation](https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies/patch#body.request_body.SCHEMA_REPRESENTATION.company.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies/patch#body.response_body)
- [Authorization Scopes](https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies/patch#body.aspect)
- [Try it!](https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies/patch#try-it)

Updates specified company. Company names can't be updated. To update a company name, delete the company and all jobs associated with it, and only then re-create them.

### HTTP request

`PATCH https://jobs.googleapis.com/v3p1beta1/{company.name=projects/*/companies/*}`

The URL uses [gRPC Transcoding](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto) syntax.

### Path parameters

| Parameters ||
|---|---|
| `company.name` | `string` Required during company update. The resource name for a company. This is generated by the service when a company is created. The format is "projects/{projectId}/companies/{company_id}", for example, "projects/api-test-project/companies/foo". |

### Request body

The request body contains data with the following structure:

| JSON representation ||
|---|---|
| ``` { "company": { "name": string, "displayName": string, "externalId": string, "size": enum (`https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies#CompanySize`), "headquartersAddress": string, "hiringAgency": boolean, "eeoText": string, "websiteUri": string, "careerSiteUri": string, "imageUri": string, "keywordSearchableJobCustomAttributes": [ string ], "derivedInfo": { "headquartersLocation": { object (`https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/Location`) } }, "suspended": boolean }, "updateMask": string } ``` |

| Fields ||
|---|---|
| `company.displayName` | `string` Required. The display name of the company, for example, "Google LLC". |
| `company.externalId` | `string` Required. Client side company identifier, used to uniquely identify the company. The maximum number of allowed characters is 255. |
| `company.size` | ``enum (`https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies#CompanySize`)`` Optional. The employer's company size. |
| `company.headquartersAddress` | `string` Optional. The street address of the company's main headquarters, which may be different from the job location. The service attempts to geolocate the provided address, and populates a more specific location wherever possible in `https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies#DerivedInfo.FIELDS.headquarters_location`. |
| `company.hiringAgency` | `boolean` Optional. Set to true if it is the hiring agency that post jobs for other employers. Defaults to false if not provided. |
| `company.eeoText` | `string` Optional. Equal Employment Opportunity legal disclaimer text to be associated with all jobs, and typically to be displayed in all roles. The maximum number of allowed characters is 500. |
| `company.websiteUri` | `string` Optional. The URI representing the company's primary web site or home page, for example, "https://www.google.com". The maximum number of allowed characters is 255. |
| `company.careerSiteUri` | `string` Optional. The URI to employer's career site or careers page on the employer's web site, for example, "https://careers.google.com". |
| `company.imageUri` | `string` Optional. A URI that hosts the employer's company logo. |
| `company.keywordSearchableJobCustomAttributes[]` | `string` Optional. A list of keys of filterable `https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.jobs#Job.FIELDS.custom_attributes`, whose corresponding `stringValues` are used in keyword search. Jobs with `stringValues` under these specified field keys are returned if any of the values matches the search keyword. Custom field values with parenthesis, brackets and special symbols won't be properly searchable, and those keyword queries need to be surrounded by quotes. |
| `company.derivedInfo` | ``object (`https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies#DerivedInfo`)`` Output only. Derived details about the company. |
| `company.suspended` | `boolean` Output only. Indicates whether a company is flagged to be suspended from public availability by the service when job content appears suspicious, abusive, or spammy. |
| `updateMask` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask` format)`` Optional but strongly recommended for the best service experience. If `https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies/patch#body.request_body.FIELDS.update_mask` is provided, only the specified fields in `company` are updated. Otherwise all the fields are updated. A field mask to specify the company fields to be updated. Only top level fields of `https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies#Company` are supported. A comma-separated list of fully qualified names of fields. Example: `"user.displayName,photo"`. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/talent-solution/job-search/v3/docs/reference/rest/v3p1beta1/projects.companies#Company`.

### Authorization Scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/jobs`
- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).