PUT api/contact/PutCustomFields

Request Information

URI Parameters

None.

Body Parameters

ContactCustomFieldsUpdateModel
NameDescriptionTypeAdditional information
ContactId

integer

None.

SponsorId

integer

None.

CustomFields

Collection of CustomDataModel

None.

Request Formats

[application/json, { "ContactId": 1, "SponsorId": 2, "CustomFields": [ { "Name": "sample string 1", "Value": "sample string 2" }, { "Name": "sample string 1", "Value": "sample string 2" } ] }][text/json, { "ContactId": 1, "SponsorId": 2, "CustomFields": [ { "Name": "sample string 1", "Value": "sample string 2" }, { "Name": "sample string 1", "Value": "sample string 2" } ] }][application/xml, <ContactCustomFieldsUpdateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rebelity.CM.Model"> <ContactId>1</ContactId> <CustomFields> <CustomDataModel> <Name>sample string 1</Name> <Value>sample string 2</Value> </CustomDataModel> <CustomDataModel> <Name>sample string 1</Name> <Value>sample string 2</Value> </CustomDataModel> </CustomFields> <SponsorId>2</SponsorId> </ContactCustomFieldsUpdateModel>][text/xml, <ContactCustomFieldsUpdateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rebelity.CM.Model"> <ContactId>1</ContactId> <CustomFields> <CustomDataModel> <Name>sample string 1</Name> <Value>sample string 2</Value> </CustomDataModel> <CustomDataModel> <Name>sample string 1</Name> <Value>sample string 2</Value> </CustomDataModel> </CustomFields> <SponsorId>2</SponsorId> </ContactCustomFieldsUpdateModel>][application/x-www-form-urlencoded, Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ContactCustomFieldsUpdateModel'.]

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.