See all operations
PUT: system/custom-properties/{artifact_type_name}
Description
Creates a new system custom property
'Project', 'ProgramMilestone', 'Capability' are some examples of how the artifact name is expected to be formatted.
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/v7_0/RestService.svc/system/custom-properties/{artifact_type_name}
Request Parameters
Name
|
Description
|
artifact_type_name
|
The name of the type of artifact.
|
Request Body
Property
|
Description
|
CustomPropertyId
|
The id of the custom property (leave null for newly created ones)
|
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,
Password = 9,
Release = 10,
Date and Time = 11,
Automation Host = 12
|
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
|
Position
|
Determines the position of this custom property relative to other custom properties in the UI
|
Description
|
Tooltip which appears when hovering the custom property name on a details page
|
Guid
|
The unique identifier for the artifact
|
ConcurrencyGuid
|
GUID for representing the concurrency state of a given artifact
|
LastUpdateDate
|
Last time the artifact was updated
|
<RemoteSystemCustomProperty xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v7_0.DataObjects">
<ConcurrencyGuid i:nil="true" />
<Guid i:nil="true" />
<LastUpdateDate i:nil="true" />
<ArtifactTypeId>0</ArtifactTypeId>
<CustomList i:nil="true" />
<CustomPropertyFieldName i:nil="true" />
<CustomPropertyId i:nil="true" />
<CustomPropertyTypeId>0</CustomPropertyTypeId>
<CustomPropertyTypeName i:nil="true" />
<Description i:nil="true" />
<IsDeleted>false</IsDeleted>
<Name i:nil="true" />
<Options i:nil="true" />
<Position i:nil="true" />
<PropertyNumber>0</PropertyNumber>
<SystemDataType i:nil="true" />
</RemoteSystemCustomProperty>
{"CustomPropertyId":null,
"ArtifactTypeId":0,
"Name":null,
"CustomList":null,
"CustomPropertyFieldName":null,
"CustomPropertyTypeId":0,
"CustomPropertyTypeName":null,
"IsDeleted":false,
"PropertyNumber":0,
"SystemDataType":null,
"Options":null,
"Position":null,
"Description":null,
"Guid":null,
"ConcurrencyGuid":null,
"LastUpdateDate":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.