Update Model Name

POST /public/v1/projects/{projectId}/models/{modelId}/name

Headers

  • X-COMPANY-ID string Required

    The company's unique ID

Path parameters

  • projectId integer(int64) Required
  • modelId integer(int64) Required
application/json

Body Required

  • name string

Responses

  • 500 */*

    Internal Server Error

  • 200 */*

    OK

    Hide response attributes Show response attributes object
    • description string
    • projectId integer(int64)
    • modelType string

      Values are BASELINE, ADVANCED_MODEL, TEST_WORKWEEK, REMOVE_RESOURCES, or EXCLUDE_PROGRESS.

    • isAutoUpdate boolean
    • initialDataDate string(date-time)
    • isArchived boolean
    • isOriginalModel boolean
    • modelImportLogIds array[integer(int64)]
    • modelBaseRuleIds array[integer(int64)]
    • name string
    • id integer(int64)
POST /public/v1/projects/{projectId}/models/{modelId}/name
curl \
 --request POST 'https://live.smartpmtech.com/public/v1/projects/{projectId}/models/{modelId}/name' \
 --header "X-API-KEY: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "X-COMPANY-ID: string" \
 --data '{"name":"string"}'
Request examples
# Headers
X-COMPANY-ID: string

# Payload
{
  "name": "string"
}
Response examples (500)
{}
Response examples (200)
{
  "description": "string",
  "projectId": 42,
  "modelType": "BASELINE",
  "isAutoUpdate": true,
  "initialDataDate": "2025-05-04T09:42:00Z",
  "isArchived": true,
  "isOriginalModel": true,
  "modelImportLogIds": [
    42
  ],
  "modelBaseRuleIds": [
    42
  ],
  "name": "string",
  "id": 42
}