Virtual Staging Environment Service API
Terminology
Utility Endpoints
In addition to the API, the following utility endpoints are available:
-
/health - Health-check page.
-
/health/fault - Purposefully generate a fault page (for diagnostics).
-
Home - Page showing the API name.
Virtual Staging Environments ¶
Virtual Staging Environments ¶
POST /staging/environment
Requests
Headers
Content-Type: application/vnd.api+json
Authorization: [MyAuthToken]
Body
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "environments",
"attributes": {
"label": "label",
"enabled": true,
"rules": [
"rule_type": "bucket_content",
"bucket_id": "00000000-0000-0000-0000-000000000000",
"schemas": [
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000"
],
"rule_type": "published_content",
"tag": "company"
]
},
"relationships": {
"security_groups": {
"data": [
{
"id": "0aa1b9d8-c0c3-4fa5-a38c-69d31baf1530",
"type": "{ACCESS}/security_groups"
} ]
}
}
}
}
Responses
Headers
Content-Type: application/vnd.api+json
Headers
Content-Type: application/json
Body
{
"status": 400,
"errorMessage": "Fault"
}
Headers
Content-Type: application/json
Body
{
"status": 401,
"errorMessage": "Not allowed: Authentication failed.",
"developerMessage": "auth_violation"
}
Headers
Content-Type: application/json
Body
{
"status": 403,
"errorMessage": "Not allowed: Forbidden, no permission to access.",
"developerMessage": "auth_violation"
}
Headers
Content-Type: application/json
Body
{
"status": 500,
"errorMessage": "An error message"
}
Create a virtual staging environmentPOST/staging/environment
Create a virtual staging environment.
Requires permission STAGING:FUNCTIONAL:VSE:CREATE
PUT /staging/environment
Requests
Headers
Content-Type: application/vnd.api+json
Authorization: [MyAuthToken]
Body
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "environments",
"attributes": {
"label": "label",
"enabled": true,
"rules": [
"rule_type": "bucket_content",
"bucket_id": "00000000-0000-0000-0000-000000000000",
"schemas": [
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000"
],
"rule_type": "published_content",
"tag": "company"
]
},
"relationships": {
"security_groups": {
"data": [
{
"id": "0aa1b9d8-c0c3-4fa5-a38c-69d31baf1530",
"type": "{ACCESS}/security_groups"
} ]
}
}
}
}
Responses
Headers
Content-Type: application/vnd.api+json
Headers
Content-Type: application/json
Body
{
"status": 400,
"errorMessage": "Fault"
}
Headers
Content-Type: application/json
Body
{
"status": 401,
"errorMessage": "Not allowed: Authentication failed.",
"developerMessage": "auth_violation"
}
Headers
Content-Type: application/json
Body
{
"status": 403,
"errorMessage": "Not allowed: Forbidden, no permission to access.",
"developerMessage": "auth_violation"
}
Headers
Content-Type: application/json
Body
{
"status": 404,
"errorMessage": "Not found.",
"developerMessage": "Not found."
}
Headers
Content-Type: application/json
Body
{
"status": 500,
"errorMessage": "An error message"
}
Update a virtual staging environmentPUT/staging/environment
Update a virtual staging environment.
Requires permission STAGING:FUNCTIONAL:VSE:EDIT
Virtual Staging Environments ¶
GET /staging/environment
Responses
Headers
Content-Type: application/vnd.api+json
Headers
Content-Type: application/json
Body
{
"status": 400,
"errorMessage": "Fault"
}
Headers
Content-Type: application/json
Body
{
"status": 401,
"errorMessage": "Not allowed: Authentication failed.",
"developerMessage": "auth_violation"
}
Headers
Content-Type: application/json
Body
{
"status": 403,
"errorMessage": "Not allowed: Forbidden, no permission to access.",
"developerMessage": "auth_violation"
}
Headers
Content-Type: application/json
Body
{
"status": 404,
"errorMessage": "Not found.",
"developerMessage": "Not found."
}
Headers
Content-Type: application/json
Body
{
"status": 500,
"errorMessage": "An error message"
}
Get all virtual staging environmentsGET/staging/environment
Get all virtual staging environments.
Requires permission STAGING:FUNCTIONAL:VSE:READ
Virtual Staging Environments ¶
GET /staging/environment/uuid
Responses
Headers
Content-Type: application/vnd.api+json
Headers
Content-Type: application/json
Body
{
"status": 400,
"errorMessage": "Fault"
}
Headers
Content-Type: application/json
Body
{
"status": 401,
"errorMessage": "Not allowed: Authentication failed.",
"developerMessage": "auth_violation"
}
Headers
Content-Type: application/json
Body
{
"status": 403,
"errorMessage": "Not allowed: Forbidden, no permission to access.",
"developerMessage": "auth_violation"
}
Headers
Content-Type: application/json
Body
{
"status": 404,
"errorMessage": "Not found.",
"developerMessage": "Not found."
}
Headers
Content-Type: application/json
Body
{
"status": 500,
"errorMessage": "An error message"
}
Get virtual staging environment by idGET/staging/environment/{id}
Get a virtual staging environment by id.
Requires permission STAGING:FUNCTIONAL:VSE:READ
URI Parameters
- id
string
(required) Example: uuidvirtual staging environment id
Virtual Staging Environments ¶
DELETE /staging/environment/uuid
Responses
This response has no content.
Headers
Content-Type: application/json
Body
{
"status": 400,
"errorMessage": "Fault"
}
Headers
Content-Type: application/json
Body
{
"status": 401,
"errorMessage": "Not allowed: Authentication failed.",
"developerMessage": "auth_violation"
}
Headers
Content-Type: application/json
Body
{
"status": 403,
"errorMessage": "Not allowed: Forbidden, no permission to access.",
"developerMessage": "auth_violation"
}
Headers
Content-Type: application/json
Body
{
"status": 404,
"errorMessage": "Not found.",
"developerMessage": "Not found."
}
Headers
Content-Type: application/json
Body
{
"status": 500,
"errorMessage": "An error message"
}
Delete a virtual staging environmentDELETE/staging/environment/{id}
Delete a virtual staging environment by id.
Requires permission STAGING:FUNCTIONAL:VSE:DELETE
URI Parameters
- id
string
(required) Example: uuidvirtual staging environment id
Generated on 17 Nov 2016