POST/users/{userId}/link-to-works

Grants a member permission to chat with external LINE WORKS users.

If chatting with external users is disabled for the domain, it becomes enabled. Go to Service > Message > Chat with External Users in the LINE WORKS Admin to check the relevant option. This API operation will not work if Permissions under Service > Message > Chat with External Users is set to Grant to all members in the LINE WORKS Admin; if the company name or member name includes an emoji or a prohibited keyword("line"); if the permission is being granted or deleted.

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

user

HTTP Request

POSThttps://www.worksapis.com/v1.0/users/{userId}/link-to-works

Path Parameters

ParameterTypeDescription
userId string 

Member ID
- Email address
- Resource ID
- External key in "externalKey:{externalKey}" format


required
example : userf7da-f82c-4284-13e7-030f3b4c756x 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 202

Accepted

HTTP 204

No Content

HTTP 400

Bad Request

HTTP 403

Forbidden

HTTP 404

Not Found