POST v2/tasks/{id}/custom-fields
Saves the custom fields for the specified id.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Provide id to save custom fields for. |
integer |
Required |
Body Parameters
Collection of CustomFieldValueName | Description | Type | Additional information |
---|---|---|---|
Id |
Id of custom field. |
integer |
Required |
Name |
Name of the custom field. |
string |
Read Only |
Value |
Represents the value of Custom Field |
string |
None. |
ValueText |
Represents the text value of the custom field. Example: If the field type is Existing List and the source is Employee (SourceId = 4) then ValueText will be the employee's name. |
string |
None. |
Request Formats
application/json, text/json
Sample:
[ { "id": 1, "name": "sample string 2", "value": "sample string 3", "valueText": "sample string 4" }, { "id": 1, "name": "sample string 2", "value": "sample string 3", "valueText": "sample string 4" } ]
application/xml, text/xml
Sample:
<ArrayOfCustomFieldValue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAPI.Models.V2.Core"> <CustomFieldValue> <Id>1</Id> <Name>sample string 2</Name> <Value>sample string 3</Value> <ValueText>sample string 4</ValueText> </CustomFieldValue> <CustomFieldValue> <Id>1</Id> <Name>sample string 2</Name> <Value>sample string 3</Value> <ValueText>sample string 4</ValueText> </CustomFieldValue> </ArrayOfCustomFieldValue>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.