---
title: "Update custom code"
method: PUT
path: "/custom_codes/{code_id}"
tags: ["Custom code"]
---

# Update custom code

`PUT /custom_codes/{code_id}`

Update a specific custom code

## Path parameters

- `code_id` string, required

## Request body

- PutCode
  - `name` string
  - `data` string

## Response `200`

successful

- GetCode
  - `_id` string
  - `name` string
  - `updatedAt` string
  - `createdAt` string
  - `data` string
  - `skill_id` string
  - `__v` integer

## Other responses

- `400` — Invalid ID supplied
- `404` — not found

---

[API](https://skmtc.net/smartly/apis/smartly-ai-apis.md) · [All operations](https://skmtc.net/smartly/apis/smartly-ai-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smartly/smartly-ai-apis/revisions/1e26909d86c9/schema)
