Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request PUT \ --url https://api.hirehive.com/v1.0/{company_id}/candidates/{candidate_id}/notes/{note_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "text": "<string>", "files": [ { "id": "<string>", "size_in_kb": 123, "download_link": "<string>", "name": "<string>", "original_name": "<string>", "content_type": "<string>", "file_extension": "<string>" } ], "mentioned_users": [ "<string>" ], "restricted": true } '
import requests url = "https://api.hirehive.com/v1.0/{company_id}/candidates/{candidate_id}/notes/{note_id}" payload = { "text": "<string>", "files": [ { "id": "<string>", "size_in_kb": 123, "download_link": "<string>", "name": "<string>", "original_name": "<string>", "content_type": "<string>", "file_extension": "<string>" } ], "mentioned_users": ["<string>"], "restricted": True } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.put(url, json=payload, headers=headers) print(response.text)
const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify({ text: '<string>', files: [ { id: '<string>', size_in_kb: 123, download_link: '<string>', name: '<string>', original_name: '<string>', content_type: '<string>', file_extension: '<string>' } ], mentioned_users: ['<string>'], restricted: true }) }; fetch('https://api.hirehive.com/v1.0/{company_id}/candidates/{candidate_id}/notes/{note_id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.hirehive.com/v1.0/{company_id}/candidates/{candidate_id}/notes/{note_id}", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "PUT", CURLOPT_POSTFIELDS => json_encode([ 'text' => '<string>', 'files' => [ [ 'id' => '<string>', 'size_in_kb' => 123, 'download_link' => '<string>', 'name' => '<string>', 'original_name' => '<string>', 'content_type' => '<string>', 'file_extension' => '<string>' ] ], 'mentioned_users' => [ '<string>' ], 'restricted' => true ]), CURLOPT_HTTPHEADER => [ "Authorization: Bearer <token>", "Content-Type: application/json" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.hirehive.com/v1.0/{company_id}/candidates/{candidate_id}/notes/{note_id}" payload := strings.NewReader("{\n \"text\": \"<string>\",\n \"files\": [\n {\n \"id\": \"<string>\",\n \"size_in_kb\": 123,\n \"download_link\": \"<string>\",\n \"name\": \"<string>\",\n \"original_name\": \"<string>\",\n \"content_type\": \"<string>\",\n \"file_extension\": \"<string>\"\n }\n ],\n \"mentioned_users\": [\n \"<string>\"\n ],\n \"restricted\": true\n}") req, _ := http.NewRequest("PUT", url, payload) req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) }
HttpResponse<String> response = Unirest.put("https://api.hirehive.com/v1.0/{company_id}/candidates/{candidate_id}/notes/{note_id}") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"text\": \"<string>\",\n \"files\": [\n {\n \"id\": \"<string>\",\n \"size_in_kb\": 123,\n \"download_link\": \"<string>\",\n \"name\": \"<string>\",\n \"original_name\": \"<string>\",\n \"content_type\": \"<string>\",\n \"file_extension\": \"<string>\"\n }\n ],\n \"mentioned_users\": [\n \"<string>\"\n ],\n \"restricted\": true\n}") .asString();
require 'uri' require 'net/http' url = URI("https://api.hirehive.com/v1.0/{company_id}/candidates/{candidate_id}/notes/{note_id}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Put.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"text\": \"<string>\",\n \"files\": [\n {\n \"id\": \"<string>\",\n \"size_in_kb\": 123,\n \"download_link\": \"<string>\",\n \"name\": \"<string>\",\n \"original_name\": \"<string>\",\n \"content_type\": \"<string>\",\n \"file_extension\": \"<string>\"\n }\n ],\n \"mentioned_users\": [\n \"<string>\"\n ],\n \"restricted\": true\n}" response = http.request(request) puts response.read_body
{ "data": { "id": "<string>", "date_created": "2023-11-07T05:31:56Z", "text": "<string>", "creator": { "name": "<string>", "user_id": "<string>", "guest_id": "<string>", "recruiter": "<string>" }, "files": [ { "id": "<string>", "type": "inbound_email_attachment", "size_in_kb": 123, "download_link": "<string>", "name": "<string>", "original_name": "<string>", "content_type": "<string>", "file_extension": "<string>" } ], "mentioned_users": [ "<string>" ], "restricted": true, "share": { "id": "<string>", "application_id": "<string>", "message": "<string>", "metadata": { "expires_at": "2023-11-07T05:31:56Z", "visits": 123, "expired": true, "revoked": true }, "guest": { "id": "<string>", "email": "<string>" }, "sender": { "id": "<string>", "first_name": "<string>", "last_name": "<string>" } } } }
{ "type": "<string>", "title": "<string>", "status": 123, "detail": "<string>", "instance": "<string>" }
Update a note by id
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Show child attributes
Was this page helpful?