- 開発
- CMS Developer Docs
- create a model
create a model
POST
/{workspaceIdOrAlias}/projects/{projectIdOrAlias}/models
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” workspaceIdOrAlias
required
string
ID or alias of the workspace
projectIdOrAlias
required
string
ID or alias of the project
Query Parameters
Section titled “Query Parameters ” page
integer
Used to select the page
perPage
integer
Used to select the page
sort
string
Used to define the order of the response list
dir
string
Used to define the order direction of the response list, will be ignored if the order is not presented
keyword
string
Keyword string
Request Body required
Section titled “Request Body required ”object
name
string
description
string
key
string
Responses
Section titled “ Responses ”A JSON object of model
object
id
string
projectId
string
schemaId
string
schema
object
id
string
projectId
string
fields
Array<object>
object
id
required
string
type
required
string
key
required
string
required
required
boolean
multiple
required
boolean
name
required
string
titleField
string
createdAt
string format: date-time
metadataSchemaId
string
metadataSchema
object
id
string
projectId
string
fields
Array<object>
object
id
required
string
type
required
string
key
required
string
required
required
boolean
multiple
required
boolean
name
required
string
titleField
string
createdAt
string format: date-time
name
string
description
string
key
string
createdAt
string format: date-time
updatedAt
string format: date-time
lastModified
string format: date-time
Invalid request parameter value
Access token is missing or invalid