provider users POST /users.setPhoto
@utdk/slack /users.setPhoto
users_setPhoto
Set the user profile photo

Try it

Authentication
Configure credentials for Slack Web API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

usersSetphoto
POST/users.setPhoto
Set the user profile photo

Input

Width/height of crop box (always square)

X coordinate of top-left corner of crop box

Y coordinate of top-left corner of crop box

File contents via `multipart/form-data`.

required

Authentication token. Requires scope: `users.profile:write`

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import slack from '@utdk/slack';

await slack.usersSetphoto()