Get a website by its resource ID
GET/api/v1/Website/byResourceId/:id
Returns the website that is linked to a given resource. Use it when you have the resource ID rather than the website ID. The body is the website record itself (ID, name, icon, sign-in address, URL rules, virtual flag and timestamps), not the website-and-resource object that the other website routes return.
Permission required: Admin or App role.
Request
Responses
- 200
- 400
- 404
The body is the website record.
The ID is empty. The body is a message.
No website is linked to that resource, or it could not be retrieved.