---
title: "Creates a new company contact and associates it with user"
method: POST
path: "/v1/resourceowner/companycontact"
tags: ["ResourceOwnerCompanyContacts"]
---

# Creates a new company contact and associates it with user

`POST /v1/resourceowner/companycontact`

## Request

- Base URL: `https://api.automile.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.automile.com/v1/resourceowner/companycontact`
- Auth: OAuth 2
  - Implicit: `https://api.automile.com/login/`

The user only has access to contacts that it is associated with through the company

## Request body

- CompanyContactCreateModel
  - `CompanyId` integer, required
  - `ContactId` integer, required

## Response `200`

A link in the header is returned to the newly created company contact

## Other responses

- `403`: Request is forbidden, this could occur if you try to associate to companies you are not associated with
- `500`: Internal server error

---

[API](https://skmtc.dev/automile/apis/automile-api.md) - [All operations](https://skmtc.dev/automile/apis/automile-api/llms.txt) - [OpenAPI document](https://skmtc.dev/automile/apis/automile-api/revisions/56b5b8d6d733?raw)
