Set website or app access
set_service_accessSet who can reach a website or app: public serves it to anyone who has the link, private serves it only to members of the organization that owns it after they sign in to Valet, and password serves it to anyone who enters a shared visitor password. Pass kind to say which you mean; a name holding another kind is then refused rather than changed. Apps can be changed only on a server with app access turned on. Requires connecting a Valet account.
Password mode takes the password as the password argument. It is a shared visitor password the owner hands to whoever should see the service, not a Valet credential, and it is at most 72 bytes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | The kind you mean. Omit to change whatever the name holds; give it to have a name holding another kind refused. | |
| mode | Yes | Required. The access mode. public serves it to anyone who has the link. private serves it only to members of the organization that owns it. password serves it to anyone who enters the shared visitor password. | |
| name | Yes | Required. The website's or app's name. | |
| org_name | No | The Valet organization it belongs to. Omit to use the organization the account joined first. | |
| password | No | The shared visitor password. Required for password mode and rejected for the others. Anyone who enters it can open the service, so its owner passes it to whoever should see it. At most 72 bytes. |