Create Directory Contact

POST {{baseUrl}}/directories/:directoryId/contacts

Create a single contact in a specific directory. <!--From Readme--> <!-- theme: warning -->

This API call is only available to XM Directory users.

Request Body

{"firstName"=>"Jane", "lastName"=>"Doe", "email"=>"JaneDoe@email.com", "phone"=>"111-111-1111", "extRef"=>"my_Internal_ID_12345", "embeddedData"=>{"dolor_b"=>true, "ea_4ed"=>"id do fugiat commodo"}, "language"=>"", "unsubscribed"=>true}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;result&quot;:{&quot;id&quot;:&quot;CID_012345678901234&quot;},&quot;meta&quot;:{&quot;httpStatus&quot;:&quot;ex dolore magna&quot;,&quot;requestId&quot;:&quot;sit m&quot;,&quot;notice&quot;:&quot;voluptate eu in sit&quot;}}