PUT

Update Robots Txt


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Updates the robots.txt file entity.

The content can be set to an empty string to create a blank file.

To restore Wix's default content, set the default field to true and omit the content field.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Blog
Learn more about app permissions.
Endpoint
PUT
https://www.wixapis.com/promote-seo-robots-server/v2/robots

Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?