Update a contact field

put

/api/REST/1.0/assets/contact/field/{id}

Updates the contact field specified by the id parameter. All properties should be included in PUT requests, as some properties will be considered blank if not included.

Request

Supported Media Types
Path Parameters
Body ()
List of contact fields.
Root Schema : ContactField
Type: object
Title: ContactField
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : ContactField
Type: object
Title: ContactField
Show Source

400 Response

Bad request. See Status Codes for information about other possible HTTP status codes.

401 Response

Unauthorized. See Status Codes for information about other possible HTTP status codes.

403 Response

Forbidden. See Status Codes for information about other possible HTTP status codes.

404 Response

The requested resource was not found. See Status Codes for information about other possible HTTP status codes.

500 Response

The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Back to Top

Examples

Update the name and isReadOnly value of the contact field with Id #100196:


PUT /api/REST/1.0/assets/contact/field/100196
Content-Type: application/json 
			

Request body:


{
   "id":"100196",
   "name":"Erudition",
   "dataType":"text",
   "displayType":"text",
   "updateType":"newNotBlank"
   "isReadOnly":"true",
}
			

Response:


{
  "type": "ContactField",
  "id": "100196",
  "initialId": "100196",
  "createdAt": "1434032400",
  "createdBy": "19",
  "depth": "complete",
  "name": "Erudition",
  "updatedAt": "1434033658",
  "updatedBy": "19",
  "dataType": "text",
  "displayType": "text",
  "internalName": "C_Intelligence_Quotient1",
  "isReadOnly": "true",
  "isRequired": "false",
  "isStandard": "false",
  "isPopulatedInOutlookPlugin": "true",
  "showTrustedVisitorsOnly": "true",
  "updateType": "newNotBlank"
}
			
Back to Top