文档首页/ ISDP/ API参考/ API接口/ 组织管理/ 新增公告信息(API名称:notice/addNotice)
更新时间:2025-02-11 GMT+08:00
分享

新增公告信息(API名称:notice/addNotice)

功能介绍

新增公告信息。

相关接口

接口名称

调用说明

获取Token

调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。

URL

请求方式

HTTPS地址

服务架构

消息体类型

POST

https://isdp+域名/openApi/v1/notice/addNotice

OpenAPI

application/json

请求头

KEY

VALUE

是否必填

描述

Content-Type

application/json

是

无

Authorization

bearer ${access_token}

是

bearer +“ ”+5.2.1中获取的access_token的值

请求参数

参数

类型

必填

描述

noticeId

string

否

公告id

personId

string

否

人员id

noticeTitile

string

是

公告标题

noticeStatus

string

是

公告状态,值为Closed, Draft, Release

noticeType

string

是

公告类型,值为Meeting,Common,Other

description

string

是

公告描述

publishTime

date

是

公告发布时间

top

string

否

是否置顶,0:不置顶, 1:置顶

响应参数

参数

类型

描述

status

string

接口是否成功信息

msg

string

提示信息

data

array

响应结果json对象数组,此处为null, 无返回值

failed

boolean

失败

success

boolean

成功

请求示例

{
    "noticeType": "Common",
    "noticeStatus": "Draft",
    "noticeTitile": "test",
    "description": "test",
    "publishTime": "2024-12-25 17:30:13"
}

响应示例

{
    "status": "success",
    "msg": null,
    "data": null,
    "failed": false,
    "success": true
}

相关文档