PUT v1/ProfilePersons/{id}/TopicCodes

Updates the set of active topic codes for a record. The supplied list of topic codes are activated and the other topic codes are deactivated.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

updateTopicCodeInput
NameDescriptionTypeAdditional information
topicCodeIds

Collection of string

Required

Request Formats

application/json, text/json

Sample:
{
  "topicCodeIds": [
    "sample string 1",
    "sample string 2"
  ]
}

text/html

Sample:
{"topicCodeIds":["sample string 1","sample string 2"]}

application/xml, text/xml

Sample:
<v1_ProfilePersons_ProfilePersonEndpointController.updateTopicCodeInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_ProfilePersons_ProfilePersonEndpoint">
  <topicCodeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </topicCodeIds>
</v1_ProfilePersons_ProfilePersonEndpointController.updateTopicCodeInput>

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 'updateTopicCodeInput'.

Response Information

Resource Description

Collection of addTopicCodeOutput
NameDescriptionTypeAdditional information
topicCodeId

integer

None.

Value

string

None.

description

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "topicCodeId": 1,
    "Value": "sample string 2",
    "description": "sample string 3"
  },
  {
    "topicCodeId": 1,
    "Value": "sample string 2",
    "description": "sample string 3"
  }
]

text/html

Sample:
[{"topicCodeId":1,"Value":"sample string 2","description":"sample string 3"},{"topicCodeId":1,"Value":"sample string 2","description":"sample string 3"}]

application/xml, text/xml

Sample:
<ArrayOfv1_ProfilePersons_ProfilePersonEndpointController.addTopicCodeOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_ProfilePersons_ProfilePersonEndpoint">
  <v1_ProfilePersons_ProfilePersonEndpointController.addTopicCodeOutput>
    <Value>sample string 2</Value>
    <description>sample string 3</description>
    <topicCodeId>1</topicCodeId>
  </v1_ProfilePersons_ProfilePersonEndpointController.addTopicCodeOutput>
  <v1_ProfilePersons_ProfilePersonEndpointController.addTopicCodeOutput>
    <Value>sample string 2</Value>
    <description>sample string 3</description>
    <topicCodeId>1</topicCodeId>
  </v1_ProfilePersons_ProfilePersonEndpointController.addTopicCodeOutput>
</ArrayOfv1_ProfilePersons_ProfilePersonEndpointController.addTopicCodeOutput>