Create a Strategy

post

/api/restapi/strategy

Send a request to this endpoint to create a strategy.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : ApiEntityStrategyInput
Type: object
Title: ApiEntityStrategyInput
This entity represents a Strategy object, a unique Strategy object can be identified by the following combinations of the fields.
  • strategyId
  • strategyName,workspaceId
  • strategyName,workspaceCode
Show Source
Nested Schema : codeValuesStrategy
Type: array
The list of code values for a strategy. This entity can only be used to assign codeValues or create codeValues on the fly.
Show Source
  • ApiEntityCodeValueStrategyInput
    Title: ApiEntityCodeValueStrategyInput
    This entity represents a CodeValueStrategy object, a unique CodeValueStrategy object can be identified by the following combinations of the fields.
    • codeValueStrategyId
    • codeTypeId,codeValueCode
    • codeTypeCode,codeValueCode
    • codeValueId
    • codeTypeCode,codeValueCode,parentId
    • codeValueCode,codeTypeId,parentId
Nested Schema : configuredFields
Type: array
The list of configured fields for a strategy.
Show Source
  • ApiEntityStrategyConfiguredFieldValueInput
    Title: ApiEntityStrategyConfiguredFieldValueInput
    This entity represents a StrategyConfiguredFieldValue object, a unique StrategyConfiguredFieldValue object can be identified by the following combinations of the fields.
    • columnDefinitionId
    • columnName
    • columnLabel
Nested Schema : ApiEntityCodeValueStrategyInput
Type: object
Title: ApiEntityCodeValueStrategyInput
This entity represents a CodeValueStrategy object, a unique CodeValueStrategy object can be identified by the following combinations of the fields.
  • codeValueStrategyId
  • codeTypeId,codeValueCode
  • codeTypeCode,codeValueCode
  • codeValueId
  • codeTypeCode,codeValueCode,parentId
  • codeValueCode,codeTypeId,parentId
Show Source
Nested Schema : ApiEntityStrategyConfiguredFieldValueInput
Type: object
Title: ApiEntityStrategyConfiguredFieldValueInput
This entity represents a StrategyConfiguredFieldValue object, a unique StrategyConfiguredFieldValue object can be identified by the following combinations of the fields.
  • columnDefinitionId
  • columnName
  • columnLabel
Show Source
  • Allowed Values: [ "DELETE" ]
    Provide value for this field during object update to delete the assigned configured field value.
  • Unique identifier of the column. This value should not be provided in create operation request data, however, it is required for update requests.
  • Minimum Length: 1
    Maximum Length: 100
    The user-specified UDF column label.
  • Minimum Length: 1
    Maximum Length: 100
    The user-specified UDF column name.
  • Read Only: true
    Deprecated. As of 23.10.
    This holds values for Cost type configured fields in the base currency conversion. Input should be provided in numberValue field, in currency of record.
  • Read Only: true
    Deprecated. As of 23.10.
    This holds values for Cost type configured fields in the workspace1 currency conversion.
  • Read Only: true
    Deprecated. As of 23.10.
    This holds values for Cost type configured fields in the workspace2 currency conversion.
  • Read Only: true
    Deprecated. As of 23.10.
    This holds values for Cost type configured fields in the workspace3 currency conversion.
  • This holds values for Date type configured fields.
  • This holds values for Number, Integer and Cost type configured fields. Input for the cost configured field should be provided in the currency of record. For example project level currency in case of Activity, base currency for Company, workspace currency for Funds and record level currency for Project Actuals etc. configured fields.
  • The system-generated identifier of the strategy.
  • Maximum Length: 4000
    This holds values for Boolean, List and Text type configured fields.
  • Read Only: true
    Deprecated. As of 23.10.
    Date when the record was last updated.
Examples

Back to Top

Response

Supported Media Types

201 Response

The object was successfully created.
Body ()
Root Schema : ApiEntityStrategy
Type: object
Title: ApiEntityStrategy
This entity represents a Strategy object, a unique Strategy object can be identified by the following combinations of the fields.
  • strategyId
  • strategyName,workspaceId
  • strategyName,workspaceCode
Show Source
Nested Schema : codeValuesStrategy
Type: array
The list of code values for a strategy. This entity can only be used to assign codeValues or create codeValues on the fly.
Show Source
Nested Schema : configuredFields
Type: array
The list of configured fields for a strategy.
Show Source
Nested Schema : ApiEntityCodeValueStrategy
Type: object
Title: ApiEntityCodeValueStrategy
Show Source
Nested Schema : ApiEntityStrategyConfiguredFieldValue
Type: object
Title: ApiEntityStrategyConfiguredFieldValue
Show Source

400 Response

Invalid input for the Strategy service.
Back to Top