Current section
Files
Jump to
Current section
Files
priv/docs/methods/users.setPhoto.json
{
"args": {
"crop_w": {
"desc": "Width/height of crop box (always square). Providing a \"crop box\" with `crop_x`, `crop_y`, and `crop_w` is optional.",
"example": "100",
"required": false,
"type": "string"
},
"crop_x": {
"desc": "X coordinate of top-left corner of crop box. Providing a \"crop box\" with `crop_x`, `crop_y`, and `crop_w` is optional.",
"example": "10",
"required": false,
"type": "string"
},
"crop_y": {
"desc": "Y coordinate of top-left corner of crop box. Providing a \"crop box\" with `crop_x`, `crop_y`, and `crop_w` is optional.",
"example": "15",
"required": false,
"type": "string"
},
"image": {
"desc": "File contents via `multipart/form-data`.",
"example": "...",
"required": false
}
},
"desc": "Set the user profile photo",
"errors": {
"bad_image": "The uploaded image could not be processed - try passing a JPEG, GIF or PNG",
"too_large": "The uploaded image had excessive dimensions",
"too_many_frames": "An animated GIF with too many frames was uploaded"
},
"rate_limit": {
"label": "Tier 2: 20+ per minute",
"url": "https://docs.slack.dev/apis/web-api/rate-limits"
},
"scopes": {
"user": [
{
"name": "users.profile:write",
"url": "https://docs.slack.dev/reference/scopes/users.profile.write"
}
]
}
}