PATCH: Highlight Primary or Assign Custom ID Ingrid https://api.bitsighttech.com/ratings/v1/companies/company_guid Highlight a primary for your organization or assign a custom ID for a portfolio company. Parameters * Required. company_guid * Required. [Path] Identify the company to edit. Value: [String] Company unique identifier [entity_guid]. See GET: Portfolio Details. guid * Required. [Body] Identify the company to assign as the primary. Value: [String] Company unique identifier [entity_guid]. See GET: Portfolio Details. null = Delete primary. custom_id [Body] Assign the ID. Value: [String] ID name. null = Delete the custom ID. Example Requests Highlight primary: curl 'https://api.bitsighttech.com/ratings/v1/companies/a940bb61-33c4-42c9-9231-c8194c305db3' -u api_token -X PATCH -H 'Accept: application/json' -H 'Content-Type: application/json' --data-binary '{"contents": {"primary_company": {"guid": "1b3d260c-9e23-4e19-b3a5-a0bcf67d74d9"}}}' --compressed Assign custom ID: curl 'https://api.bitsighttech.com/ratings/v1/companies/a940bb61-33c4-42c9-9231-c8194c305db3' -u api_token -X PATCH -H 'Accept: application/json' -H 'Content-Type: application/json' --data-binary '{"contents": {"custom_id": "Abc123"}}' --compressed Errors and Status Codes See the common errors and status codes. 200 – Okay Everything worked as expected. Returns updated company details. 400 – Bad Data This can often be due to missing a required parameter. 401 – Unauthorized No valid API token was provided. 404 – Not Found The assigned company does not exist. January 13, 2021: Published. Related articles Companies API Endpoint POST: Custom ID in Bulk POST: Customize a Company's ID Company ID Work From Home: IP Addresses Feedback 0 comments Please sign in to leave a comment.