看板
创建看板
POST
/api/boards创建包含名称、类型和配置的看板,可选分配给团队,并验证对其引用资源和报告的访问权限。
Headers
| Name | Type | Description |
|---|---|---|
| Authorizationrequired | string | Authentication credentials, e.g. Bearer <token>. |
Request body
| Name | Type | Description |
|---|---|---|
| description | string | Description of the resource. |
| namerequired | string | Display name of the resource. |
| parameters | object | Configuration parameters for the resource. |
| teamId | string | null | ID of the associated team. |
| typerequired | anyOf | |
| userId | string | null | ID of the associated user. |
Example request
Responses
200The operation completed successfully.
| Name | Type | Description |
|---|---|---|
| createdAtrequired | string | Date and time the record was created. |
| descriptionrequired | string | Description of the resource. |
| idrequired | string | Unique identifier of the resource. |
| namerequired | string | Display name of the resource. |
| parametersrequired | anyOf | Configuration parameters for the resource. |
| teamIdrequired | string | ID of the associated team. |
| typerequired | string | |
| updatedAtrequired | string | Date and time the record was last updated. |
| userIdrequired | string | ID of the associated user. |
200 example
400Bad request.
| Name | Type | Description |
|---|---|---|
| errorrequired | object | Error details returned when the operation fails. |
400 example
401Unauthorized.
| Name | Type | Description |
|---|---|---|
| errorrequired | object | Error details returned when the operation fails. |
401 example
Code samples
cURL