Admin API
Describes the Admin API for administering your Experience Edge for XM tenant.
The Admin
API is a REST API that enables you to administer your Experience Edge for XM tenants.
The base URL for the Admin
API is https://edge.sitecorecloud.io/api/admin/v1
.
All endpoints use bearer authorization.
Headers
The following header is required:
Name | Format | Purpose |
---|---|---|
|
| A JSON web token (JWT). Request a JWT for Experience Edge XM using OAuth. |
The Admin API has the following endpoints:
ClearCacheForTenant
- clears the entire cache for a given tenant.ClearCacheByIdentifier
- clears the cache by identifier.DeleteContent
- Removes tenant data from the data storage.GetSettings
- lists all available settings for a tenant.UpdateSettings
- updates all available settings for a tenant.PatchSettings
- updates a setting for a tenant using one or more Patch operations.CreateWebhook
- creates a new webhook.UpdateWebhook
- updates an existing webhook.DeleteWebhook
- deletes a specific webhook.ListWebhooks
- lists all webhooks for a tenant.GetWebhookById
- gets a specific tenant webhook.
Clears the entire cache for a given tenant.
Relative route |
|
HTTP verb |
|
Response format | Accepted status code (202) |
Clears the cache by identifier. The identifier is the identifier of the entity as published to Edge.
Relative route |
|
HTTP verb |
|
Response format | Accepted status code (202) |
Removes tenant data from the data storage.
Relative route |
|
HTTP verb |
|
Example |
|
Response format | Accepted status code (202) |
Lists all available settings for a tenant.
Relative route |
|
HTTP verb |
|
Example |
|
Response format | The settings for the tenant. { "contentCacheTtl": "04:00:00", "contentCacheAutoClear": true, "mediaCacheTtl": "04:00:00", "mediaCacheAutoClear": true, "tenantCacheAutoClear": true } |
Updates all available settings for a tenant.
Relative route |
|
HTTP verb |
|
Example |
|
Body format | { "contentCacheTtl": "04:00:00", "contentCacheAutoClear": true, "mediaCacheTtl": "04:00:00", "mediaCacheAutoClear": true, "tenantCacheAutoClear": true } |
Response status code | Accepted (202) |
Updates a setting using a patch operation or multiple patch operations. Uses JSON patch format for operations and content-type headers as specified in https://tools.ietf.org/html/rfc6902.
Relative route |
|
HTTP verb |
|
Example |
|
Headers | Content-Type: |
Body format | A settings operation. Only replace operations are allowed. For more information, see https://tools.ietf.org/html/rfc6902#section-4.3. [ { "op":"replace", "path":"/contentcacheautoclear", "value":true }, { "op":"replace", "path":"/contentcachettl", "value":"00:15:00" } ] |
Response format | The settings for the tenant. { "contentCacheTtl": "04:00:00", "contentCacheAutoClear": true, "mediaCacheTtl": "04:00:00", "mediaCacheAutoClear": true, "tenantCacheAutoClear": true } |
Response status code | OK (200) |
Creates a new webhook.
Relative route |
|
HTTP verb |
|
Body format | A webhook structure. Refer to Webhook objects to learn more about the various JSON objects used within the webhooks endpoint of the Edge Admin API. { "label": "My new webhook", "uri": "https://www.mysite.com/hooks/edge-hook", "method": "POST", "headers": { "x-header": "bar" }, "body": "{\"rebuild\":\"true\"}", "createdBy": "anco", "executionMode": "OnEnd" } |
Response format | A webhook structure. Refer to Webhook objects to learn more about the various JSON objects used within the webhooks endpoint of the Edge Admin API. { "id": "5678", "tenantId": "mysite-corp", "label": "webhook 29", "uri": "https://www.mysite.com/hooks/edge-hook", "method": "POST", "headers": { "x-header": "bar" }, "body": "{\"rebuild\":\"true\"}", "createdBy": "anco", "created": "2021-03-26T10:44:04.6107312+00:00", "executionMode": "OnEnd" } |
Response header | Returns the location of the new webhook. For example: Location: |
Response status code | Created (201) |
Updates an existing webhook.
Relative route |
|
HTTP verb |
|
Body format | A webhook structure. Refer to Webhook objects to learn more about the various JSON objects used within the webhooks endpoint of the Edge Admin API. { "label": "webhook 29", "uri": "https://www.acme.com/hooks/edge-hook", "method": "GET", "headers": { "x-header": "bar" }, "body": "{\"rebuild\":\"true\"}", "createdBy": "anco", "created": "2021-03-26T10:44:04.6107312+00:00", "executionMode": "OnEnd" } |
Response status code | No content (204) |
DeleteWebhook
Deletes a specific webhook.
Relative route |
|
HTTP verb |
|
Example |
|
Response status | No content (204) |
ListWebhooks
Lists all webhooks for a tenant.
Relative route |
|
HTTP verb |
|
Example |
|
Response format | An array of webhooks. Refer to Webhook objects to learn more about the various JSON objects used within the webhooks endpoint of the Edge Admin API. [ { "id": "1234", "tenantId": "test-tenant", "label": "webhook 92", "uri": "https://localhost/", "method": "POST", "body": "This is my optional body content", "created": "2021-03-26T10:44:04.6107312+00:00" }, { "id": "5678", "tenantId": "test-tenant", "label": "webhook 29", "uri": "https://localhost/", "method": "POST", "headers": { "x-header": "bar" }, "createdBy": "anco", "created": "2021-03-26T10:44:04.6107312+00:00" "executionMode": "OnEnd" } ] |
GetWebhookById
Gets a specific tenant webhook by ID.
Relative route |
|
HTTP verb |
|
Example |
|
Response format | { "id": "1234", "tenantId": "test-tenant", "label": "webhook 92", "uri": "https://localhost/", "method": "POST", "headers": { "x-header": "foo" }, "body": "Optional body content", "createdBy": "adn", "created": "2021-03-26T10:44:04.6107312+00:00" "executionMode": "OnEnd" } |