cURL
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>" }
Updates the script file associated with a specific part
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the model
ID of the part
Script updated successfully
The response is of type object.
object