update_mcptoken
Update an existing MCP Token via Django admin MCP, changing only supplied fields and rejecting invalid form fields.
Instructions
Update an existing MCP Token with optional inline updates. Only the fields sent are changed.
Date and datetime fields take a single ISO 8601 string (e.g. '2026-03-01' or '2026-03-01T09:30:00Z'). Foreign keys take the related object's ID, many-to-many fields a list of IDs. A field the admin form does not accept (unknown, read-only or non-editable) is rejected with an error, never ignored.
Fields:
id (BigAutoField)
name (CharField) [required]
user (ForeignKey) [required]
is_active (BooleanField)
created_at (DateTimeField)
expires_at (DateTimeField)
last_used_at (DateTimeField)
groups (ManyToManyField)
permissions (ManyToManyField)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the MCP Token | |
| data | No | The fields to update | |
| inlines | No | Inline rows saved with the object, keyed by inline model name: {model_name: [{data} to add, {id, data} to update, {id, _delete: true} to delete]}. All-or-nothing: any inline error rejects the whole call and nothing is saved |