Loading...
Loading...
Compare original and translation side by side
https://api.pachca.com/api/shared/v1Authorization: Bearer <ACCESS_TOKEN>https://api.pachca.com/api/shared/v1Authorization: Bearer <ACCESS_TOKEN>emojititlecurl -X PUT "https://api.pachca.com/api/shared/v1/profile/status" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"status":{"emoji":"🏖️","title":"В отпуске до 10 марта"}}'emojititlecurl -X PUT "https://api.pachca.com/api/shared/v1/profile/status" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"status":{"emoji":"🏖️","title":"В отпуске до 10 марта"}}'curl -X DELETE "https://api.pachca.com/api/shared/v1/profile/status" \
-H "Authorization: Bearer $TOKEN"curl -X DELETE "https://api.pachca.com/api/shared/v1/profile/status" \
-H "Authorization: Bearer $TOKEN"idnamedata_typecustom_propertiesПараметрфильтрует поля по типу сущности. Кастомные поля настраиваются администратором пространства. Значения хранятся в массивеentity_type=Userобъектаcustom_properties.user
idnamedata_typecustom_properties参数用于按实体类型过滤字段。自定义字段由工作区管理员配置。值存储在entity_type=User对象的user数组中。custom_properties
| Код | Причина | Что делать |
|---|---|---|
| 422 | Неверные параметры | Проверь обязательные поля, типы данных, допустимые значения enum |
| 429 | Rate limit | Подожди и повтори. Лимит: ~50 req/sec, сообщения ~4 req/sec |
| 403 | Нет доступа | Недостаточно скоупов ( |
| 404 | Не найдено | Неверный id. Проверь что сущность существует |
| 401 | Не авторизован | Проверь токен в заголовке Authorization |
| 代码 | 原因 | 解决方法 |
|---|---|---|
| 422 | 参数错误 | 检查必填字段、数据类型、枚举的有效值 |
| 429 | 请求频率限制 | 等待后重试。限制:约50次请求/秒,消息类约4次请求/秒 |
| 403 | 无权限 | 权限范围不足( |
| 404 | 未找到 | ID错误。检查实体是否存在 |
| 401 | 未授权 | 检查Authorization头中的令牌 |
GET /custom_propertiesскоуп:custom_properties:read
GET /custom_properties权限范围:custom_properties:read
GET /oauth/token/infoGET /oauth/token/infoGET /profileскоуп:profile:read
GET /profile权限范围:profile:read
GET /profile/statusскоуп:profile_status:read
GET /profile/status权限范围:profile_status:read
PUT /profile/statusскоуп:profile_status:write
{
"status": {
"emoji": "",
"title": ""
}
}PUT /profile/status权限范围:profile_status:write
{
"status": {
"emoji": "",
"title": ""
}
}DELETE /profile/statusскоуп:profile_status:write
DELETE /profile/status权限范围:profile_status:write