Share via


PS.StageCustomFieldCollection.add Method (ps.js)

Adds a new custom field to the collection of custom fields.

Applies to: Project Professional 2013 | Project Server 2013

PS.StageCustomFieldCollection.add(creationInfo)

Parameters

creationInfo
Type: PS.StageCustomFieldCreationInformation
An object that contains information that is used to create the custom field.

Return value

PS.StageCustomField

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/ProjectServer/Stages('stageid')/CustomFields/add(creationInfo)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/ProjectServer/Stages('stageid')/CustomFields/add(creationInfo)

Resource parameters

  • creationInfo