See all operations
PUT: projects/{project_id}/custom-properties/{custom_property_id}
Description
Updates a custom property definition, including any associated options
This method updates the custom property Name, IsDeleted flag, and custom property options, but does not update the list values or other fields.
To change the list values, you need to use: CustomProperty_UpdateCustomList(...)
How to Execute
To access this REST web service, you need to use the following URL (make sure to replace any parameters (eg {project_id}) with the relevant value (eg 1):
https://api.inflectra.com/spira/services/v5_0/RestService.svc/projects/{project_id}/custom-properties/{custom_property_id}
Request Parameters
Name
|
Description
|
project_id
|
The id of the current project
|
custom_property_id
|
The id of the custom property
|
Request Body
Property
|
Description
|
CustomPropertyId
|
The id of the custom property (leave null for newly created ones)
|
ProjectId
|
The project the custom property belongs to
|
ArtifactTypeId
|
The artifact type that the custom property is for
|
Name
|
The display name for the custom property
|
CustomList
|
The associated custom list if this is a list custom property
This will be null if this is not a list custom property
|
CustomPropertyFieldName
|
The internal field name of the custom property (e.g. Custom_01)
|
CustomPropertyTypeId
|
The type of custom property. It can have the following values:
Text = 1,
Integer = 2,
Decimal = 3,
Boolean = 4,
Date = 5,
List = 6,
MultiList = 7,
User = 8
|
CustomPropertyTypeName
|
The display name of the type of custom property
|
IsDeleted
|
Has this custom property been deleted
|
PropertyNumber
|
The position number of this custom property (1-30). Each artifact type can have 30 custom properties per project
|
SystemDataType
|
The physical data type that this custom property is stored as (Int32, String, DataTime, etc.)
|
Options
|
The collection of custom property options
|
<RemoteCustomProperty xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v5_0.DataObjects">
<ArtifactTypeId>0</ArtifactTypeId>
<CustomList i:nil="true" />
<CustomPropertyFieldName i:nil="true" />
<CustomPropertyId i:nil="true" />
<CustomPropertyTypeId>0</CustomPropertyTypeId>
<CustomPropertyTypeName i:nil="true" />
<IsDeleted>false</IsDeleted>
<Name i:nil="true" />
<Options i:nil="true" />
<ProjectId>0</ProjectId>
<PropertyNumber>0</PropertyNumber>
<SystemDataType i:nil="true" />
</RemoteCustomProperty>
{"ArtifactTypeId":0,
"CustomList":null,
"CustomPropertyFieldName":null,
"CustomPropertyId":null,
"CustomPropertyTypeId":0,
"CustomPropertyTypeName":null,
"IsDeleted":false,
"Name":null,
"Options":null,
"ProjectId":0,
"PropertyNumber":0,
"SystemDataType":null}
Return Data
The JSON and XML examples below show the shape of one entry that will be returned. It does not show an example of how that entry will be populated.