Skip to main content

Create a contact.

POST/api/v1/contactscontacts:write

The organisation must exist. A name of -Root- is refused: it is the organisation's own details row.

Scopecontacts:write
AsynchronousNo
MCP toolcreate_contact
Portal permissionscreate_contacts

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonContactCreateInput

Responses​

StatusDescriptionBody
201Success.application/json Contact or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

Contact​

FieldTypeRequiredDescription
contact_idstringRequired
created_atstring (date-time) or nullRequiredWhen the contact was entered.
created_by_usernamestring or nullRequiredThe username of whoever entered the contact (the Portal's Entered By); null when none was recorded.
detailsContactDetailsRequired
namestring or nullRequired
organisation_idstringRequired
updated_atstring (date-time) or nullRequiredWhen the contact was last changed; null when it never was.

ContactCreateInput​

FieldTypeRequiredDescription
detailsContactDetailsInput or nullOptional
namestringRequired
organisation_idstringRequired

ContactDetails​

FieldTypeRequiredDescription
business_typestring or nullRequired
categorystring or nullRequired
category_statusstring or nullRequired
date_of_birthstring (date) or nullRequired
designationstring or nullRequired
emailstring or nullRequired
f1string or nullRequired
f10string or nullRequired
f11string or nullRequired
f12string or nullRequired
f13string or nullRequired
f14string or nullRequired
f15string or nullRequired
f2string or nullRequired
f3string or nullRequired
f4string or nullRequired
f5string or nullRequired
f6string or nullRequired
f7string or nullRequired
f8string or nullRequired
f9string or nullRequired
faxstring or nullRequired
genderstring or nullRequired
id_numberstring or nullRequired
initialsstring or nullRequired
mobilestring or nullRequired
mobile_2string or nullRequired
notesstring or nullRequired
phonestring or nullRequired
phone_homestring or nullRequired
physical_addressstring or nullRequired
physical_codestring or nullRequired
physical_countrystring or nullRequired
postal_address_1string or nullRequired
postal_address_2string or nullRequired
postal_address_3string or nullRequired
postal_codestring or nullRequired
postal_countrystring or nullRequired
websitestring or nullRequired

ContactDetailsInput​

FieldTypeRequiredDescription
business_typestring or nullOptional
categorystring or nullOptional
category_statusstring or nullOptional
date_of_birthstring (date) or nullOptional
designationstring or nullOptional
emailstring or nullOptional
f1string or nullOptional
f10string or nullOptional
f11string or nullOptional
f12string or nullOptional
f13string or nullOptional
f14string or nullOptional
f15string or nullOptional
f2string or nullOptional
f3string or nullOptional
f4string or nullOptional
f5string or nullOptional
f6string or nullOptional
f7string or nullOptional
f8string or nullOptional
f9string or nullOptional
faxstring or nullOptional
genderstring or nullOptional
id_numberstring or nullOptional
initialsstring or nullOptional
mobilestring or nullOptional
mobile_2string or nullOptional
notesstring or nullOptional
phonestring or nullOptional
phone_homestring or nullOptional
physical_addressstring or nullOptional
physical_codestring or nullOptional
physical_countrystring or nullOptional
postal_address_1string or nullOptional
postal_address_2string or nullOptional
postal_address_3string or nullOptional
postal_codestring or nullOptional
postal_countrystring or nullOptional
websitestring or nullOptional