POST /people
基本信息
Note: 该端点在Alfresco 5.2和更高版本中可用。
创建people。
如果适用,还可以选择禁用给定people的登录访问权限。
您必须具有管理员权限才能创建people。
您可以在创建people时设置自定义属性:
{ "id": "abeecher", "firstName": "Alice", "lastName": "Beecher", "email": "abeecher@example.com", "password": "secret", "properties": { "my:property": "The value" } }
Note: 不支持设置类型d:content和d:category的属性。
请求方式: POST
请求API: /people
响应等级(状态201)
成功回应
{ "entry": { "id": "string", "firstName": "string", "lastName": "string", "description": "string", "avatarId": "string", "email": "string", "skypeId": "string", "googleId": "string", "instantMessageId": "string", "jobTitle": "string", "location": "string", "company": { "organization": "string", "address1": "string", "address2": "string", "address3": "string", "postcode": "string", "telephone": "string", "fax": "string", "email": "string" }, "mobile": "string", "telephone": "string", "statusUpdatedAt": "2021-01-08T08:52:11.515Z", "userStatus": "string", "enabled": true, "emailNotificationsEnabled": true, "aspectNames": [ "string" ], "properties": {}, "capabilities": {} } }
响应内容类型 applicaiton/json
Query参数
Body参数(personBodyCreate)
request body示例
{ "id": "string", "firstName": "string", "lastName": "string", "description": "string", "email": "string", "skypeId": "string", "googleId": "string", "instantMessageId": "string", "jobTitle": "string", "location": "string", "company": { "organization": "string", "address1": "string", "address2": "string", "address3": "string", "postcode": "string", "telephone": "string", "fax": "string", "email": "string" }, "mobile": "string", "telephone": "string", "userStatus": "string", "enabled": true, "emailNotificationsEnabled": true, "password": "string", "aspectNames": [ "string" ], "properties": {} }
错误信息描述
状态码 | 原因 |
400 | 无效的参数:personBodyCreate无效 |
401 | 验证失败 |
403 | 当前用户无权创建people |
409 | 指定ID中的people已存在 |
422 | 模型完整性异常 |
default | 意外错误 |
返回结果示例
{ "error": { "errorKey": "string", "statusCode": 0, "briefSummary": "string", "stackTrace": "string", "descriptionURL": "string", "logId": "string" } }