createRepoCustomField
Add a custom field to a custom model: a stored field, or a formula field computed from others.
POST
/repos/{repo_id}/branches/{branch}/custom-models/{model_api_name}/fieldsPath parameters
Request body JSON required
One of the following:
- PlainFieldDeclaration
- FormulaFieldDeclaration
Returns
201
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 | RepoNotFound
JSON
One of the following:
- BranchNotFoundEncoded
- CustomModelNotFoundEncoded
- RepoNotFoundEncoded
409
InstalledSchemaReadOnly | RepoArchived
JSON
One of the following:
- InstalledSchemaReadOnlyEncoded
- 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