Documents
Use document as a site or update the existing site
Use document as a site or update the existing site by the given document <strong>{id}</strong>. <br> The <strong>{id}</strong> must be an ID of existing document
post/pimcore-studio/api/documents/site/{id}
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /pimcore-studio/api/documents/site/{id}
- Auth: none declared
Path parameters
idinteger required
Example:83
Id of the document
Request body
Example request
{
"mainDomain": "main_site",
"domains": [
"other_domain"
],
"errorDocument": "path/to/error/document",
"localizedErrorDocuments": {
"en": "path/to/en/error/document",
"de": "path/to/de/error/document"
}
}Response
Successfully created/updated site
Changes
No recorded changes to this operation across all 2 revisions of this API.