Add a contact
POST/api/v3/user
Notes:
- The response/id value will be the user_id value for the newly created user.
Request
- application/json
Body
external_key string
External key value
username string
Customer portal username
password string
Customer portal password
name string
First and last name of the contact
first_name string
First name of contact
middle_name_glob string
Middle name/initial
last_name string
Last name
name_suffix string
Suffix (e.g. "Jr.", "Sr.", "III", etc.)
title string
Title
email string
E-mail address
phone string
Phone number
mobile string
Mobile number
user_type_id integer
User type ID #
customer_id integer
The customer ID # this contact belongs to
custom_1 string
Custom field #1
custom_2 string
Custom field #2
custom_3 string
Custom field #3
custom_4 string
Custom field #4
custom_5 string
Custom field #5
custom_6 string
Custom field #6
custom_7 string
Custom field #7
custom_8 string
Custom field #8
custom_9 string
Custom field #9
custom_10 string
Custom field #10
custom_11 string
Custom field #11
custom_12 string
Custom field #12
custom_13 string
Custom field #13
custom_14 string
Custom field #14
custom_15 string
Custom field #15
custom_16 string
Custom field #16
custom_17 string
Custom field #17
custom_18 string
Custom field #18
custom_19 string
Custom field #19
custom_20 string
Custom field #20
Responses
- 201
- 400
- 401
Object was created successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response
object
id integer
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": {
"id": 0
}
}
{
"code": 201,
"status": "OK",
"message": "",
"details": {},
"response": {
"id": 1234
}
}
Bad request
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 400,
"status": "Error",
"message": "Missing or invalid parameter.",
"details": {},
"response": false
}
Authentication error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 401,
"status": "Error",
"message": "Invalid or incorrect authorization [Missing (basic) authorization header.]",
"details": {},
"response": false
}
Loading...