PUT
/
api
/
models
/
{modelId}
/
parts
/
{partId}
curl --request PUT \
  --url http://localhost:3000/api/models/{modelId}/parts/{partId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contents": "<string>",
  "fileName": "<string>",
  "fileExtension": "<string>"
}'
{
  "success": true,
  "fileName": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

modelId
string
required

ID of the model

partId
string
required

ID of the part

Body

application/json
contents
string

The contents of the script file

fileName
string

The name of the script file (optional)

fileExtension
string

extension of the script file (optional)

Response

200
application/json
Script updated successfully
success
boolean
fileName
string