PUT api/Contacto/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

Contacto
NameDescriptionTypeAdditional information
namePrefix

globally unique identifier

None.

namePrefixName

string

None.

FullName

string

None.

firstName

string

Required

lastName

string

Required

secondLastName

string

Required

emplid

string

None.

crmFolio

integer

None.

payOfficeKey

string

None.

curp

string

Matching regular expression pattern: ^[a-zA-Z]{4,4}[0-9]{6}[a-zA-Z]{6,6}[0-9]{2}$

rfc

string

Matching regular expression pattern: ^[a-zA-Z]{4,4}[0-9]{6}\w{3}$

website

string

Data type: Url

email1

string

Data type: EmailAddress

Matching regular expression pattern: ^([a-zA-Z0-9_\-\.]+)@((([a-zA-Z0-9\-]+\.)+)([a-zA-Z]{2,4}))$

email2

string

Data type: EmailAddress

Matching regular expression pattern: ^([a-zA-Z0-9_\-\.]+)@((([a-zA-Z0-9\-]+\.)+)([a-zA-Z]{2,4}))$

email3

string

Data type: EmailAddress

Matching regular expression pattern: ^([a-zA-Z0-9_\-\.]+)@((([a-zA-Z0-9\-]+\.)+)([a-zA-Z]{2,4}))$

email4

string

Data type: EmailAddress

Matching regular expression pattern: ^([a-zA-Z0-9_\-\.]+)@((([a-zA-Z0-9\-]+\.)+)([a-zA-Z]{2,4}))$

telephone

string

Data type: PhoneNumber

Matching regular expression pattern: ^(\+?(\d{0,2}))?(\-|\s)?(\(\d{2,3}\)|d{2,3})?(\-|\s)?(\d{3,4})(\-|\s)?(\d{4})$

telephoneMobile

string

Data type: PhoneNumber

Matching regular expression pattern: ^(\+?(\d{0,2}))?(\-|\s)?(\(\d{2,3}\)|d{2,3})?(\-|\s)?(\d{3,4})(\-|\s)?(\d{4})$

telephoneWork

string

Data type: PhoneNumber

Matching regular expression pattern: ^(\+?(\d{0,2}))?(\-|\s)?(\(\d{2,3}\)|d{2,3})?(\-|\s)?(\d{3,4})(\-|\s)?(\d{4})$

telephoneWorkExt

string

Matching regular expression pattern: ^(\d{3,8})$

otherPhone

string

Data type: PhoneNumber

Matching regular expression pattern: ^(\+?(\d{0,2}))?(\-|\s)?(\(\d{2,3}\)|d{2,3})?(\-|\s)?(\d{3,4})(\-|\s)?(\d{4})$

commentsPhone

string

None.

addressLine1

string

None.

addressLine2

string

None.

addressLine3

string

None.

addressLine4

string

None.

addressTypeCode

integer

None.

addressTypeCodeName

string

None.

addressPostalCode

string

Matching regular expression pattern: ^\d{5}$

city

string

None.

country

globally unique identifier

None.

countryName

string

None.

countryDescr

string

None.

state

globally unique identifier

None.

stateName

string

None.

stateDescr

string

None.

genderCode

integer

None.

genderCodeName

string

None.

birthdate

date

Data type: Date

birthplace

string

None.

FamilyStatusCode

integer

None.

FamilyStatusCodeName

string

None.

aniversaire

date

Data type: Date

spouseName

string

None.

haschildrencode

boolean

None.

childNumber

integer

None.

extraact

string

None.

books

string

None.

hobbie1

string

None.

hobbie2

string

None.

hobbie3

string

None.

facebook

string

None.

twitter

string

None.

linkedin

string

None.

instagram

string

None.

subscribe

boolean

None.

doNotPhone

boolean

None.

doNotEmail

boolean

None.

doNotBulkEmail

boolean

None.

description

string

None.

lastupdate

date

None.

recordName

string

None.

recordId

globally unique identifier

None.

createdOn

date

None.

modifiedOn

date

None.

createdById

globally unique identifier

None.

modifiedById

globally unique identifier

None.

createdByName

string

None.

modifiedByName

string

None.

ownerId

globally unique identifier

None.

updateSource

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "namePrefix": "2248b5e6-6c1c-45f9-a9df-93aefca333c1",
  "namePrefixName": "sample string 1",
  "FullName": "sample string 2",
  "firstName": "sample string 3",
  "lastName": "sample string 4",
  "secondLastName": "sample string 5",
  "emplid": "sample string 6",
  "crmFolio": 1,
  "payOfficeKey": "sample string 7",
  "curp": "sample string 8",
  "rfc": "sample string 9",
  "website": "sample string 10",
  "email1": "sample string 11",
  "email2": "sample string 12",
  "email3": "sample string 13",
  "email4": "sample string 14",
  "telephone": "sample string 15",
  "telephoneMobile": "sample string 16",
  "telephoneWork": "sample string 17",
  "telephoneWorkExt": "sample string 18",
  "otherPhone": "sample string 19",
  "commentsPhone": "sample string 20",
  "addressLine1": "sample string 21",
  "addressLine2": "sample string 22",
  "addressLine3": "sample string 23",
  "addressLine4": "sample string 24",
  "addressTypeCode": 1,
  "addressTypeCodeName": "sample string 25",
  "addressPostalCode": "sample string 26",
  "city": "sample string 27",
  "country": "6871b60f-f566-41a0-a07e-f615ad5b62f6",
  "countryName": "sample string 28",
  "countryDescr": "sample string 29",
  "state": "a9346c90-96ad-4189-9146-95f69d702a33",
  "stateName": "sample string 30",
  "stateDescr": "sample string 31",
  "genderCode": 1,
  "genderCodeName": "sample string 32",
  "birthdate": "2017-11-17T20:47:09.2456983-06:00",
  "birthplace": "sample string 33",
  "FamilyStatusCode": 1,
  "FamilyStatusCodeName": "sample string 34",
  "aniversaire": "2017-11-17T20:47:09.2456983-06:00",
  "spouseName": "sample string 35",
  "haschildrencode": true,
  "childNumber": 1,
  "extraact": "sample string 36",
  "books": "sample string 37",
  "hobbie1": "sample string 38",
  "hobbie2": "sample string 39",
  "hobbie3": "sample string 40",
  "facebook": "sample string 41",
  "twitter": "sample string 42",
  "linkedin": "sample string 43",
  "instagram": "sample string 44",
  "subscribe": true,
  "doNotPhone": true,
  "doNotEmail": true,
  "doNotBulkEmail": true,
  "description": "sample string 45",
  "lastupdate": "2017-11-17T20:47:09.2456983-06:00",
  "recordName": "sample string 46",
  "recordId": "116beb15-0df2-47f3-8d5b-0746a2dab5c0",
  "createdOn": "2017-11-17T20:47:09.2456983-06:00",
  "modifiedOn": "2017-11-17T20:47:09.2456983-06:00",
  "createdById": "b264decd-3e37-48c9-bc09-b0ca7c752cf4",
  "modifiedById": "0056dc16-401a-47bd-886c-44b2ab9e0450",
  "createdByName": "sample string 47",
  "modifiedByName": "sample string 48",
  "ownerId": "a8560c92-dc9e-404d-b885-d5addf9922a8",
  "updateSource": 1
}

application/xml, text/xml

Sample:
<Contacto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrmAppsUP.Models">
  <createdById>b264decd-3e37-48c9-bc09-b0ca7c752cf4</createdById>
  <createdByName>sample string 47</createdByName>
  <createdOn>2017-11-17T20:47:09.2456983-06:00</createdOn>
  <modifiedById>0056dc16-401a-47bd-886c-44b2ab9e0450</modifiedById>
  <modifiedByName>sample string 48</modifiedByName>
  <modifiedOn>2017-11-17T20:47:09.2456983-06:00</modifiedOn>
  <ownerId>a8560c92-dc9e-404d-b885-d5addf9922a8</ownerId>
  <recordId>116beb15-0df2-47f3-8d5b-0746a2dab5c0</recordId>
  <recordName>sample string 46</recordName>
  <updateSource>1</updateSource>
  <FamilyStatusCode>1</FamilyStatusCode>
  <FamilyStatusCodeName>sample string 34</FamilyStatusCodeName>
  <addressLine1>sample string 21</addressLine1>
  <addressLine2>sample string 22</addressLine2>
  <addressLine3>sample string 23</addressLine3>
  <addressLine4>sample string 24</addressLine4>
  <addressPostalCode>sample string 26</addressPostalCode>
  <addressTypeCode>1</addressTypeCode>
  <addressTypeCodeName>sample string 25</addressTypeCodeName>
  <aniversaire>2017-11-17T20:47:09.2456983-06:00</aniversaire>
  <birthdate>2017-11-17T20:47:09.2456983-06:00</birthdate>
  <birthplace>sample string 33</birthplace>
  <books>sample string 37</books>
  <childNumber>1</childNumber>
  <city>sample string 27</city>
  <commentsPhone>sample string 20</commentsPhone>
  <country>6871b60f-f566-41a0-a07e-f615ad5b62f6</country>
  <countryDescr>sample string 29</countryDescr>
  <countryName>sample string 28</countryName>
  <crmFolio>1</crmFolio>
  <curp>sample string 8</curp>
  <description>sample string 45</description>
  <doNotBulkEmail>true</doNotBulkEmail>
  <doNotEmail>true</doNotEmail>
  <doNotPhone>true</doNotPhone>
  <email1>sample string 11</email1>
  <email2>sample string 12</email2>
  <email3>sample string 13</email3>
  <email4>sample string 14</email4>
  <emplid>sample string 6</emplid>
  <extraact>sample string 36</extraact>
  <facebook>sample string 41</facebook>
  <firstName>sample string 3</firstName>
  <genderCode>1</genderCode>
  <genderCodeName>sample string 32</genderCodeName>
  <haschildrencode>true</haschildrencode>
  <hobbie1>sample string 38</hobbie1>
  <hobbie2>sample string 39</hobbie2>
  <hobbie3>sample string 40</hobbie3>
  <instagram>sample string 44</instagram>
  <lastName>sample string 4</lastName>
  <linkedin>sample string 43</linkedin>
  <namePrefix>2248b5e6-6c1c-45f9-a9df-93aefca333c1</namePrefix>
  <namePrefixName>sample string 1</namePrefixName>
  <otherPhone>sample string 19</otherPhone>
  <payOfficeKey>sample string 7</payOfficeKey>
  <rfc>sample string 9</rfc>
  <secondLastName>sample string 5</secondLastName>
  <spouseName>sample string 35</spouseName>
  <state>a9346c90-96ad-4189-9146-95f69d702a33</state>
  <stateDescr>sample string 31</stateDescr>
  <stateName>sample string 30</stateName>
  <subscribe>true</subscribe>
  <telephone>sample string 15</telephone>
  <telephoneMobile>sample string 16</telephoneMobile>
  <telephoneWork>sample string 17</telephoneWork>
  <telephoneWorkExt>sample string 18</telephoneWorkExt>
  <twitter>sample string 42</twitter>
  <website>sample string 10</website>
</Contacto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Contacto'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>