updateRepoCustomModel
Rename a custom model, which moves its API name, so later requests address it by the new one, or name its primary field: the text, integer, picklist, or date field whose value names its records wherever they are referenced. A model starts with its first text field as its primary field. A change that leaves a policy reading a name or custom field the model no longer has is refused with SchemaChangeBreaksPolicy.
PATCH
/repos/{repo_id}/branches/{branch}/custom-models/{model_api_name}Path parameters
Request body JSON required
Returns
200
CustomModel
400
InvalidRequest | RequestBodyTooDeep
JSON
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
BranchNotFound | CustomModelNotFound | RepoNotFound
JSON
One of the following:
- BranchNotFoundEncoded
- CustomModelNotFoundEncoded
- RepoNotFoundEncoded
409
InstalledSchemaReadOnly | SchemaChangeBreaksPolicy | RepoArchived
JSON
One of the following:
- InstalledSchemaReadOnlyEncoded
- SchemaChangeBreaksPolicyEncoded
- RepoArchivedEncoded
413
WriteTooLarge | RequestBodyTooLarge
JSON
One of the following:
- WriteTooLargeEncoded
- RequestBodyTooLargeEncoded
422
InvalidCustomModel | WriteRefused
JSON
One of the following:
- InvalidCustomModelEncoded
- WriteRefusedEncoded
503
RepoBusy | SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded