Skip to main content

Add a vendor's contact

POST 

https://racko-api.ianai.co/v2/vendor/:id/contact

Add a vendor's contact

Request

Responses

Vendor contact

Authorization: http

name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://racko-api.ianai.co/v2/vendor/:id/contact");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent("{\n \"id\": \"uuid\",\n \"title\": \"Mr.\",\n \"first_name\": \"John\",\n \"middle_name\": \"K\",\n \"last_name\": \"Doe\",\n \"suffix\": \"Jr.\",\n \"role\": \"Manager\",\n \"email\": \"john.doe@abc.com\",\n \"phone\": \"123-456-7890\",\n \"alt_phone\": \"987-654-3210\",\n \"mobile\": \"987-123-4567\",\n \"fax\": \"123-987-6543\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://racko-api.ianai.co/v2
Auth
Parameters
— pathrequired
— header
Body required
{
  "id": "uuid",
  "title": "Mr.",
  "first_name": "John",
  "middle_name": "K",
  "last_name": "Doe",
  "suffix": "Jr.",
  "role": "Manager",
  "email": "john.doe@abc.com",
  "phone": "123-456-7890",
  "alt_phone": "987-654-3210",
  "mobile": "987-123-4567",
  "fax": "123-987-6543"
}
ResponseClear

Click the Send API Request button above and see the response here!