updateRepoCustomField
Change a custom field's display name, flags, picklist options, or reference target. New options replace the whole list. A change that leaves a policy reading a field the model no longer has is refused with SchemaChangeBreaksPolicy.
PATCH
/repos/{repo_id}/branches/{branch}/custom-models/{model_api_name}/fields/{field_api_name}Path parameters
Request body JSON required
One of the following:
- PlainFieldUpdate
- FormulaFieldUpdate
Returns
200
CustomField
JSON
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 | CustomFieldNotFound | RepoNotFound
JSON
One of the following:
- BranchNotFoundEncoded
- CustomModelNotFoundEncoded
- CustomFieldNotFoundEncoded
- 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