Skip to main content
POST
/
companies
/
v2
/
rs
/
{companyId}
/
contacts
Create contacts
curl --request POST \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/companies/v2/rs/{companyId}/contacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --header 'X-Session-Token: <x-session-token>' \
  --data '
[
  {
    "name": "Company Contact Name",
    "notify": true,
    "email": "[email protected]",
    "phones": [
      "phone1",
      "phone2"
    ],
    "comment": "Company contact comment"
  }
]
'
{
  "nbInsertion": 1
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Session-Token
string
required

Session token used for authenticating the request.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"

Content-Type
enum<string>
required

Content type, must be "application/json".

Available options:
application/json

Body

application/json
name
string
required

Name of the company contact.

Maximum string length: 250
Example:

"Company Contact Name"

notify
boolean
required

Indicates whether the company contact should be notified.

Example:

true

email
string<email> | null

Email of the company contact.

Maximum string length: 250
phones
string[]

Phones of the company contact.

Maximum array length: 5
Maximum string length: 50
Example:
["phone1", "phone2"]
comment
string | null

Comment on the company contact.

Maximum string length: 2500
Example:

"Company contact comment"

Response

201 - application/json

Contacts created successfully

nbInsertion
integer
required

The number of inserted elements.

Example:

1