All GET methods also support HEAD with identical behavior except that no response body is returned.
REST APIs provide access to resources, or data entities, using URI paths. To use a REST API, a request is made using standard HTTP methods such as GET, PUT, POST, and DELETE. Representations are returned as a JSON or XML response accompanied by a status code. No authentication is required for these resources.
The primary HTTP verbs that are used in the SAS Business Data Network REST API are GET, PUT, POST, and DELETE. Here is a brief description.
GET is used to retrieve, or read, a representation of a resource. GET returns a representation in XML or JSON with a response code of 200 (OK) . If an error occurs, HTTP returns a status of 400 (Bad request), or 404 (Not found).
PUT is used to update a resource. HTTP returns a status 201 (Success) if the update is successful or a status 404 (Not found) if the resource could not be found. If an error occurs, HTTP returns a status of 400 (Bad request), or 404 (Not found).
POST is used for creation of new resources. On successful creation, HTTP returns a status of 200 (OK). If there is an error in the request, or HTTP returns status of 404 (Not found).
DELETE is used to delete a resource identified by a URI. On successful deletion, HTTP returns status 204 (Server Resource found and deleted). If the resource cannot be found, an HTTP status of 404 (Not Found) is returned.
The / resource is the root resource that is used to get top-level links.
Get Links returns the list of root level links. This resource supports the HEAD method as well.
Authentication required: false
GET http://www.hostname.com/SASBusinessDataNetwork/rest
The request also supports the following request headers:
Accept
Indicate the media type of the response. This method supports the following media types:
application/vnd.sas.api+xml
application/vnd.sas.api+json
application/xml
application/json
Returns the root level links as defined by application/vnd.sas.api.
| rel | HTTP Method | Description |
|---|---|---|
| self | GET |
Gets this list of links.
|
| tags | GET |
Gets the collection of tags.
|
| createTag | POST |
Creates a tag.
|
| terms | GET |
Gets the collection of terms.
|
| createTerm | POST |
Creates a term.
|
| types | GET |
Gets the collection of types.
|
| snapshots | GET |
Gets the collection of snapshots.
|
| createSnapshot | POST |
Creates a snapshot.
|
This operation can return the following media type representations by setting the Accept header of the request:
Indicate the media type of the response. This method supports the following media types:
application/vnd.sas.api+xml, returned as a list of links.application/vnd.sas.api+json
application/xml, equivalent to application/vnd.sas.api+xmlapplication/json, equivalent to application/vnd.sas.api+jsonThe /tags collection represents all tags.
Get all the tags.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/tag
| Name | Type | Description |
|---|---|---|
| ?start | integer |
The starting index of the first item in a page. The index is 0-based. Default is 0. |
| ?limit | integer |
The maximum number of items to return in this page of results. The actual number of returned items may be less if the collection has been exhausted. The default is 10. |
The request also support the following request headers:
Accept:
application/vnd.sas.collection+jsonapplication/vnd.sas.collection+xmlapplication/jsonapplication/xmlA collection of tags (application/vnd.sas.business.data.tag).
In addition to the standard collection links (up, self, first, prev, next, and last), the tags collection will have the following links.
| rel | HTTP method | Description |
|---|---|---|
| create | POST |
Creates a tag.
|
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.collection+json
application/vnd.sas.collection+xml
application/json, equivalent to application/vnd.sas.collection+jsonapplication/xml, equivalent to application/vnd.sas.collection+xmlCreates a tag with the specified name.
Authentication required: true
POST http://www.hostname.com/SASBusinessDataNetwork/rest/tags
The request also support the following request headers:
Accept:
application/vnd.sas.business.data.tag+jsonapplication/vnd.sas.business.data.tag+xmlapplication/jsonapplication/xmlThis method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.business.data.tag+json - the tag to be created.application/vnd.sas.business.data.tag+xml - the tag to be created. text/plain - the name of the tag to be created. Only the name field will be used. Leading and trailing spaces will be trimmed from the name. If the name has already been used (case-sensitive) or if the name exceeds 50 characters, the creation will fail with a 400 - Bad Request.
Returns the created tag.
ETag
The unique entity tag for this resource
Location
The location of this resource
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.tag+json
application/vnd.sas.business.data.tag+xml
application/json, equivalent to application/vnd.sas.business.data.tag+jsonapplication/xml, equivalent to application/vnd.sas.business.data.tag+xmlThe /tags/{tagId} resource represents one tag.
| Name | Type | Description |
|---|---|---|
| {tagId} | String |
The tag ID |
Gets the tag. This resource also supports the HEAD method.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/tags/{tagId}
The request also support the following request headers:
Accept
application/vnd.sas.business.data.tag+xmlapplication/vnd.sas.business.data.tag+jsonapplication/xmlapplication/jsonThe tag.
ETag
The unique entity tag for this resource
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.tag.json
application/vnd.sas.business.data.tag.xml
application/json, equivalent to application/vnd.sas.business.data.tag+jsonapplication/xml, equivalent to application/vnd.sas.business.data.tag+xmlUpdates the tag. Only the name of the tag can be updated.
Authentication required: true
PUT http://www.hostname.com/SASBusinessDataNetwork/rest/tags/{tagId}
This method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.business.data.tag+json - the tag to be updated.application/vnd.sas.business.data.tag+xml - the tag to be updated. Only the name field will be used. Leading and trailing spaces will be trimmed from the name. If the name has already been used (case-sensitive) for a different tag or if the name exceeds 50 characters, the update will fail with a 400 - Bad Request.
The request also supports the following request headers:
Accept
application/vnd.sas.business.data.tag+jsonapplication/vnd.sas.business.data.tag+xmlapplication/jsonapplication/xmlIf-Match
ETag header, obtained from POST, GET, HEAD, or a previous PUT. If this header is missing, a 428 (Precondition Required) status is returned. If the value does not match the current ETag value, a 412 (Precondition failed) status is returned.The updated tag is returned.
ETag
The unique entity tag for this resource
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.tag+json
application/vnd.sas.business.data.tag+xml
application/json, equivalent to application/vnd.sas.business.data.tag+jsonapplication/xml, equivalent to application/vnd.sas.business.data.tag+xmlDeletes the tag.
Authentication required: true
DELETE http://www.hostname.com/SASBusinessDataNetwork/rest/tags/{tagId}
None.
This operation can return the following media type representations by setting the Accept: header of the request:
The /tags/{tagId}/terms collection represents the collection of terms that have been associated to the tag.
| Name | Type | Description |
|---|---|---|
| {tagId} | string |
The tag's ID |
Gets a tag's terms.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/tags/{tagId}/terms
| Name | Type | Description |
|---|---|---|
| ?start | integer |
The starting index of the first item in a page. The index is 0-based. Default is 0. |
| ?limit | integer |
The maximum number of items to return in this page of results. The actual number of returned items may be less if the collection has been exhausted. The default is 10. |
The request also supports the following request headers:
Accept
application/vnd.sas.collection+jsonapplication/vnd.sas.collection+xmlapplication/jsonapplication/xmlThe terms that have been associated to the tag represented as a collection of summary terms (application/vnd.sas.business.data.term.summary).
In addition to the standard collection links (up, self, first, prev, next, and last), the tag's terms collection will have the following links.
| rel | HTTP method | Description |
|---|---|---|
| addTermsToTag | POST | Adds terms to the tag. |
| removeTermsFromTag | POST | Removes terms from the tag. |
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.collection+jsonapplication/vnd.sas.collection+xmlapplication/json, equivalent to application/vnd.sas.collection+jsonapplication/xml, equivalent to application/vnd.sas.collection+xmlAdd relationships from the tag to one or more terms. If the tag is already related to the term, that term is ignored.
Authentication required: true
POST http://www.hostname.com/SASBusinessDataNetwork/rest/tags/{tagId}/terms
This method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.selection+json : A selection of term IDs application/vnd.sas.selection+xml : A selection of term IDsThe request also support the following request headers:
Accept
application/jsonA map of tag IDs to error response objects. If the addition was successful, the error response object will be empty. Since this response creates multiple relationships, returning a LOCATION header is not appropriate.
This operation can return the following media type representations by setting the Accept: header of the request:
application/json which is a map of tag ids to error response objects. If the addition was successful, the error response object will be empty.
The /tags/{tagId}/terms/deletions collection is used to support deleting relationships between the tag specified by tagId and multiple terms.
| Name | Type | Description |
|---|---|---|
| {tagId} | string |
The tag's ID |
Remove Terms from Tag removes the relationships between the tag and multiple terms. Only the relationships are removed. No terms are deleted. If a relationship between the tag and a specified term does not exist, the term is ignored.
Authentication required: true
POST http://www.hostname.com/SASBusinessDataNetwork/rest/tags/{tagId}/terms/deletions
This method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.selection+json : A selection of term ids. application/vnd.sas.selection+xml : A selection of term idsThe request also support the following request headers:
Accept
application/jsonA map of term IDs to error response objects. If the removal was successful, the error response object will be empty. Since this operation is a multi-POST for deletions, returning a LOCATION header is not appropriate.
This operation can return the following media type representations by setting the Accept: header of the request:
application/json - a map of term ids to error response objects. If the removal was successful, the error response object will be empty.The /tags/{tagId}/terms/{termId} resource represents the relationship between a term and tag.
| Name | Type | Description |
|---|---|---|
| {tagId} | string |
The tag's ID |
| termId | string |
The term's ID |
Returns OK if there is a relationship between the tag and term. Both tag and term must exist.
Authentication required: true
HEAD http://www.hostname.com/SASBusinessDataNetwork/rest/tags/{tagId}/terms/{termId}
This operation can return the following media type representations by setting the Accept: header of the request:
Returns the term if there is a relationship between the tag and term.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/tags/{tagId}/terms/{termId}
The request also support the following request headers:
Accept
application/vnd.sas.business.data.term.summary+jsonapplication/vnd.sas.business.data.term.summary+xmlapplication/jsonapplication/xmlThis operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.term.summary.json
application/vnd.sas.business.data.term.summary.xml
application/json which is really application/vnd.sas.business.data.term.summary+jsonapplication/xml which is really application/vnd.sas.business.data.term.summary+xmlRemoves the relationship between the term and the tag. The term is not deleted. Both the tag specified by the tagId and the term specified by the termId must exist.
Authentication required: true
DELETE http://www.hostname.com/SASBusinessDataNetwork/rest/tags/{tagId}/terms/{termId}
This operation can return the following media type representations by setting the Accept: header of the request:
The /terms collection represents all terms.
Get all terms as filtered by the query parameters. The collection returned is a collection of summary terms (application/vnd.sas.business.data.term.summary).
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms
| Name | Type | Description |
|---|---|---|
| ?start | integer |
The starting index of the first item in a page. The index is 0-based. Default is 0. |
| ?limit | integer |
The maximum number of items to return in this page of results. The actual number of returned items may be less if the collection has been exhausted. The default is 10. |
| ?includeParentedTerms | boolean | When false, only terms that have no parents are returned. The default value is true. |
| ?type | string | Returns only terms of the type with the name specified |
| ?typeId | string | Returns only terms of the type specified by the ID |
| ?name | string | Returns only terms with the specified name |
| ?nameContains | string | Returns only terms whose names contain the specified text |
| ?search | string | Returns only terms that contain the search text in the term's name, status, importance, description, requirements, links, attributes, associated items, or comments |
| ?status | string | Returns only terms that have the specified status. Multiple statuses may be specified in a comma delimited list surrounded by parentheses: (under review, editing, and published). |
| ?importance | string | Returns only terms that have the specified importance. The importance value may be the label of the importance (ex: low) or the number of stars. Multiple importances may be specified in a comma delimited list surrounded by parentheses: (low, high, critical or 4, 5). |
| ?contact | string | Returns only terms that have a contact with the specified user. |
The request also supports the following request headers:
Accept
application/vnd.sas.collection+jsonapplication/vnd.sas.collection+xmlapplication/jsonapplication/xmlReturns a collection of summary terms (application/vnd.sas.business.data.term.summary) that match the specified query parameters
| rel | HTTP method | Description |
|---|---|---|
| create | POST |
Creates a term.
|
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.collection+json
application/vnd.sas.collection+xml
application/json, equivalent to application/vnd.sas.collection+jsonapplication/xml, equivalent to application/vnd.sas.collection+xmlCreates a term using the information supplied in the request body. The name of the term must be unique with in the scope of its parent term. The term is created as a draft. If the leaveAsDraft query parameter is true, the new term will be left in the draft state. If leaveAsDraft is false and the term's type has a create workflow template specified, a workflow instance is started for the term. Otherwise, the term is immediately published.
Authentication required: true
POST http://www.hostname.com/SASBusinessDataNetwork/rest/terms
| Name | Type | Description |
|---|---|---|
| ?leaveAsDraft | boolean |
When true, the term is left in a draft state meaning no create workflow is started nor is the term published. False is the default value. |
The request also supports the following request headers:
Accept
application/vnd.sas.business.data.term+jsonapplication/vnd.sas.business.data.term+xmlapplication/jsonapplication/xmlThis method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.business.data.term+json
application/vnd.sas.business.data.term+xml
The following fields are used in creating the term:
The newly created term resource is returned.
ETag
Location
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.term+json
application/vnd.sas.business.data.term+xml
application/json, equivalent to application/vnd.sas.business.data.term+jsonapplication/xml, equivalent to application/vnd.sas.business.data.term+xmlThe /terms/{termId} resource represents a term.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
Gets the specified term. HEAD is also supported for this resource.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}
The request also support the following request headers:
Accept
application/vnd.sas.business.data.term+jsonapplication/vnd.sas.business.data.term+xmlapplication/jsonapplication/xmlGets the term.
ETag
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.term+json
application/vnd.sas.business.data.term+xml
application/json which is really application/vnd.sas.business.data.term+jsonapplication/xml which is really application/vnd.sas.business.data.term+xmlUpdates the specified term by creating a draft revision of the term. If the leaveAsDraft query parameter is true, the change is left in a draft state. If leaveAsDraft is false and the term's type has an edit workflow, an instance of the edit workflow is started. Otherwise, the new revision of the term is published.
Authentication required: true
PUT http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}
| Name | Type | Description |
|---|---|---|
| ?leaveAsDraft | boolean |
When true, the term is left in a draft state meaning an edit workflow is not started nor is the update published. False is the default value. |
The request also supports the following request headers:
Accept
application/vnd.sas.business.data.term+jsonapplication/vnd.sas.business.data.term+xmlapplication/jsonapplication/xmlIf-Match
ETag header, obtained from POST, GET, HEAD, or a previous PUT. If this header is missing, a 428 (Precondition Required) status is returned. If the value does not match the current ETag value, a 412 (Precondition failed) status is returned.This method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.business.data.term+json
application/vnd.sas.business.data.term+xml
The following fields are used in updating the term:
The updated term is returned with updated revision and revision ID.
ETag
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.term+json
application/vnd.sas.business.data.term+xml
application/json, equivalent to application/vnd.sas.business.data.term+jsonapplication/xml, equivalent to application/vnd.sas.business.data.term+xmlDeletes the term. If the term has never been published, the term is deleted. If the term's type does not have a delete workflow template specified, the term is deleted. If the type does have a workflow template specified and the term's state is "normal", a new delete workflow instance is started, the term's state is changed to "deleting", and a workflowKey is generated. If the term's state is "deleting" and the workflowKey matches the term's workflowKey, then the term is deleted. Otherwise, a bad request (400) response code is returned.
Authentication required: true
DELETE http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}
| Name | Type | Description |
|---|---|---|
| ?workflowKey | string |
Key used to indicate that this request is from the delete workflow instance that was created |
This operation can return the following media type representations by setting the Accept: header of the request:
The /terms/{termId}/children collection represents the term's child terms.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
Gets a term's child terms.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/children
| Name | Type | Description |
|---|---|---|
| ?start | integer |
The starting index of the first item in a page. The index is 0-based. Default is 0. |
| ?limit | integer | The maximum number of items to return in this page of results. The actual number of returned items may be less if the collection has been exhausted. The default is 10. |
The request also supports the following request headers:
Accept
application/vnd.sas.collection+jsonapplication/vnd.sas.collection+xmlapplication/jsonapplication/xmlThe term's child terms represented as a collection of summary terms (application/vnd.sas.business.data.term.summary).
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.collection+json
application/vnd.sas.collection+xml
application/json, equivalent to application/vnd.sas.collection+jsonapplication/xml, equivalent to application/vnd.sas.collection+xmlThe /terms/{termId}/tags collection represents the tags associated with the specified term.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
Gets a term's tags.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/tags
| Name | Type | Description |
|---|---|---|
| ?start | integer |
The starting index of the first item in a page. The index is 0-based. Default is 0. |
| ?limit | integer | The maximum number of items to return in this page of results. The actual number of returned items may be less if the collection has been exhausted. The default is 10. |
The request also support the following request headers:
Accept
application/vnd.sas.collection+jsonapplication/vnd.sas.collection+xmlapplication/jsonapplication/xmlA collection of the term's tags (application/vnd.sas.business.data.tag).
In addition to the standard collection links (up, self, first, prev, next, and last), the term's tags collection will have the following links.
| rel | HTTP method | Description |
|---|---|---|
| addTagsToTerm | POST |
Adds tags to the term. The selection contains tag ids.
|
| removeTagsFromTerm | POST |
Removes tags from the term. The selection contains tag ids.
|
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.collection+json
application/vnd.sas.collection+xml
application/json, equivalent to application/vnd.sas.collection+jsonapplication/xml, equivalent to application/vnd.sas.collection+xmlAdd relationships from the term to one or more tags. If the term is already related to the tag, that tag is ignored.
Authentication required: true
POST http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/tags
The request also supports the following request headers:
Accept
application/jsonThis method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.selection+json : A selection of tag IDs. application/vnd.sas.selection+xml : A selection of tag IDsA map of tag ids to error response objects. If the addition was successful, the error response object will be empty. Since this operation is a multi-POST, returning a LOCATION header is not appropriate.
This operation can return the following media type representations by setting the Accept: header of the request:
application/json, which is a map of tag ids to error response objects. If the removal was successful, the error response object will be empty.The /terms/{termId}/tags/deletions collection is used to support deleting relationships between the term specified by termId and multiple tags.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
Remove Tags from Term removes the relationships between the term and multiple tags. Only the relationships are removed. No tags are deleted. If a relationship between the term and a specified tag does not exist, the tag is ignored.
Authentication required: true
POST http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/tags/deletions
The request also supports the following request headers:
Accept
application/jsonThis method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.selection+json : A selection of tag IDs application/vnd.sas.selection+xml : A selection of tag IDsA map of tag ids to error response objects. If the removal was successful, the error response object will be empty. Since this operation is a multi-POST to deletions, returning a LOCATION header is not appropriate.
This operation can return the following media type representations by setting the Accept: header of the request:
application/json - A map of tag IDs to error response objects. If the removal was successful, the error response object will be empty.The /terms/{termId}/tags/{tagId} resource represents a relationship between a term and a tag.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
| tagId | string | The tag's ID |
Returns OK if there is a relationship between the term and tag. Both term and tag must exist.
Authentication required: true
HEAD http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/tags/{tagId}
This operation can return the following media type representations by setting the Accept: header of the request:
Returns the tag if there is a relationship between the term and tag.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/tags/{tagId}
The request also supports the following request headers:
Accept
application/vnd.sas.business.data.tag+jsonapplication/vnd.sas.business.data.tag+xmlapplication/jsonapplication/xmlThe tag
ETag
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.tag.json
application/vnd.sas.business.data.tag.xml
application/json, equivalent to application/vnd.sas.business.data.tag+jsonapplication/xml, equivalent to application/vnd.sas.business.data.tag+xmlRemoves a tag from a term. Removing a tag from a term's collection of tags only deletes the relationship between the term and the tag.
Authentication required: true
DELETE http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/tags/{tagId}
This operation can return the following media type representations by setting the Accept: header of the request:
The /terms/{termId}/relatedTerms collection represents the terms that are related to the specified term.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
Gets a term's related terms represented as a collection of term relationships (application/vnd.sas.business.data.term.relationship).
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/relatedTerms
| Name | Type | Description |
|---|---|---|
| ?start | integer |
The starting index of the first item in a page. The index is 0-based. Default is 0. |
| ?limit | integer | The maximum number of items to return in this page of results. The actual number of returned items may be less if the collection has been exhausted. The default is 10. |
The request also supports the following request headers:
Accept
application/vnd.sas.collection+jsonapplication/vnd.sas.collection+xmlapplication/jsonapplication/xmlThe term's related terms represented as a collection of term relationships (application/vnd.sas.business.data.term.relationship).
In addition to the standard collection links (up, self, first, prev, next, and last), the term's related terms collection will have the following links.
| Name | Type | Description |
|---|---|---|
| addRelatedTermsToTerm | POST |
Adds related terms to the term.
|
| removeRelatedTermsFromTerm | POST |
Removess related terms from the term.
|
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.collection+json
application/vnd.sas.collection+xml
application/json, equivalent to application/vnd.sas.collection+jsonapplication/xml, equivalent to application/vnd.sas.collection+xmlAdd relationships from the term to one or more terms. If a term is already related to the term, that term is ignored.
Authentication required: true
POST http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/relatedTerms
The request also supports the following request headers:
Accept
application/jsonThis method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.collection.json : A collection of application/vnd.sas.business.data.term.relationships. Only the label and id are used to create the relationships.application/vnd.sas.collection.xml : A collection of application/vnd.sas.business.data.term.relationships. Only the label and id are used to create the relationships.A map of term IDs to error response objects. If the addition was successful, the error response object will be empty. Since this operation is a multi-POST, returning a LOCATION header is not appropriate.
This operation can return the following media type representations by setting the Accept: header of the request:
application/json, which is a map of term IDs to error response objects. If the addition was successful, the error response object will be empty.The /terms/{termId}/relatedTerms/deletions collection is used to support deleting relationships between the term specified by termId and multiple related terms.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
Remove Related Terms from Term removes the relationships between the term and multiple related terms. Only the relationships are removed. No related terms are deleted. If a relationship between the term and a specified related term does not exist, the related term is ignored.
Authentication required: true
POST http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/relatedTerms/deletions
The request also supports the following request headers:
Accept
application/jsonThis method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.selection+json : A selection of related term IDs application/vnd.sas.selection+xml : A selection of related term IDsA map of related term IDs to error response objects. If the removal was successful, the error response object will be empty. Since this operation is a multi-POST for deletions, returning a LOCATION header is not appropriate.
This operation can return the following media type representations by setting the Accept: header of the request:
application/json - A map of related term IDs to error response objects. If the removal was successful, the error response object will be empty.The /terms/{termId}/relatedTerms/{relatedTermId} resource represents the relationship between two terms.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
| relatedTermId | string | The related term's ID |
Returns OK if there is a relationship between the term and the related term. Both terms must exist.
Authentication required: true
HEAD http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/relatedTerms/{relatedTermId}
This operation can return the following media type representations by setting the Accept: header of the request:
Returns the related term if there is a relationship between the term and the related term.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/relatedTerms/{relatedTermId}
The request also supports the following request headers:
Accept
application/vnd.sas.business.data.term.relationship+jsonapplication/vnd.sas.business.data.term.relationship+xmlapplication/jsonapplication/xmlThe related term
ETag
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.term.relationship.json
application/vnd.sas.business.data.term.relationship.xml
application/json, equivalent to application/vnd.sas.business.data.term.relationship+jsonapplication/xml, equivalent to application/vnd.sas.business.data.term.relationship+xmlUpdates the label of the relationship between the related term and the term.
Authentication required: true
PUT http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/relatedTerms/{relatedTermId}
This method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.business.data.term.relationship+json - the term relationship to be updated.application/vnd.sas.business.data.term.relationship+xml - the term relationship to be updated. Only the label field will be used.
The request also supports the following request headers:
Accept
application/vnd.sas.business.data.term.relationship+jsonapplication/vnd.sas.business.data.term.relationship+xmlapplication/jsonapplication/xmlIf-Match
ETag header, obtained from GET, HEAD, or a previous PUT.This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.term.relationship+json
application/vnd.sas.business.data.term.relationship+xml
application/json, equivalent to application/vnd.sas.business.data.term.relationship+jsonapplication/xml, equivalent to application/vnd.sas.business.data.term.relationship+xmlRemoves a related term from a term.
Authentication required: true
DELETE http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/relatedTerms/{relatedTermId}
This operation can return the following media type representations by setting the Accept: header of the request:
The /terms/{termId}/comments collection represents a term's comments.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
Gets a term's comments as a collection of comment resources.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/comments
| Name | Type | Description |
|---|---|---|
| ?start | integer |
The starting index of the first item in a page. The index is 0-based. Default is 0. |
| ?limit | integer | The maximum number of items to return in this page of results. The actual number of returned items may be less if the collection has been exhausted. The default is 10. |
The request also supports the following request headers:
Accept
application/vnd.sas.collection+jsonapplication/vnd.sas.collection+xmlapplication/jsonapplication/xmlThe collection of the term's comments (application/vnd.sas.business.data.comment)
In addition to the standard collection links (up, self, first, prev, next, and last), the term's comments collection will have the following links.
| rel | HTTP method | Description |
|---|---|---|
| create | POST |
Adds a comment to the term.
|
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.collection+json
application/vnd.sas.collection+xml
application/json, equivalent to application/vnd.sas.collection+jsonapplication/xml, equivalent to application/vnd.sas.collection+xmlCreates a comment for the term.
Authentication required: true
POST http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/comments
The request also support the following request headers:
Accept
application/vnd.sas.business.data.comment+jsonapplication/vnd.sas.business.data.comment+xmlapplication/jsonapplication/xmlThis method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.business.data.comment+json - Only the text of the comment is used.application/vnd.sas.business.data.comment+xml - Only the text of the comment is used.text/plain - The text of the commentThe comment that was created
ETag
Location
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.comment+json
application/vnd.sas.business.data.comment+xml
application/json, equivalent to application/vnd.sas.business.data.comment+jsonapplication/xml, equivalent to application/vnd.sas.business.data.comment+jsonThe /terms/{termId}/comments/{commentId} resource represents a term's comment resource.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
| commentId | string |
The comment's ID |
Gets a comment. This resource also supports the HEAD method.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/comments/{commentId}
The request also support the following request headers:
Accept
application/vnd.sas.business.data.comment+jsonapplication/vnd.sas.business.data.comment+xmlapplication/jsonapplication/xmlThe comment
ETag
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.comment+json
application/vnd.sas.business.data.comment+xml
application/json, equivalent to application/vnd.sas.business.data.comment+jsonapplication/xml, equivalent to application/vnd.sas.business.data.comment+xmlUpdates the comment's text.
Authentication required: true
PUT http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/comments/{commentId}
This method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.business.data.comment+json
application/vnd.sas.business.data.comment+xml
text/plain - the comment's new text.The request also supports the following request headers:
Accept
application/vnd.sas.business.data.comment+jsonapplication/vnd.sas.business.data.comment+xmlapplication/jsonapplication/xmlIf-Match
ETag header, obtained from GET, HEAD, or a previous PUT.The updated comment is returned.
ETag
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.comment+json
application/vnd.sas.business.data.comment+xml
application/json, equivalent to application/vnd.sas.business.data.comment+jsonapplication/xml, equivalent to application/vnd.sas.business.data.comment+xmlDeletes the comment
Authentication required: true
DELETE http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/comments/{commentId}
This operation can return the following media type representations by setting the Accept: header of the request:
The /terms/{termId}/contacts collection represents the term's contacts.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
Gets a term's contacts
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/contacts
| Name | Type | Description |
|---|---|---|
| ?start | integer |
The starting index of the first item in a page. The index is 0-based. Default is 0. |
| ?limit | integer | The maximum number of items to return in this page of results. The actual number of returned items may be less if the collection has been exhausted. The default is 10. |
Returns a collection of contact information (application/vnd.sas.business.data.contact)
| rel | HTTP method | Description |
|---|---|---|
| create | POST |
Adds a contact to the term.
|
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.collection+json
application/vnd.sas.collection+xml
application/json, equivalent to application/vnd.sas.collection+jsonapplication/xml, equivalent to application/vnd.sas.collection+xmlAdds a contact to the term.
Authentication required: true
POST http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/contacts
The request also support the following request headers:
Accept
application/vnd.sas.business.data.contact+jsonapplication/vnd.sas.business.data.contact+xmlapplication/jsonapplication/xmlThis method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.business.data.contact+json
application/vnd.sas.business.data.contact+xml
Only the user.id and businessRole.id are used. If a contact with the specified user and business role already exists, the request returns OK with out making any changes.
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.contact+json
application/vnd.sas.business.data.contact+xml
application/json, equivalent to application/vnd.sas.business.data.contact+jsonapplication/xml, equivalent to application/vnd.sas.business.data.contact+xmlRemoves a contact from a term
Authentication required: true
DELETE http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/contacts
| Name | Type | Description |
|---|---|---|
| ?userId | string |
The ID of the user in the contact. Required. |
| ?businessRoleId | string | The ID of the user in the contact. Required. |
This operation can return the following media type representations by setting the Accept: header of the request:
The /terms/{termId}/status resource represents the current status of the specified term. This resource is intended to allow the workflows used by BDN to check and set a term's status. The values for status are user-defined values from the term's type.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
Gets a term's status. The values for status are defined by users in the term's type.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/status
The request also support the following request headers:
Accept
text/plainThe label of the selected status value.The values for status are defined by users in the term's type.
This operation can return the following media type representations by setting the Accept: header of the request:
text/plain
Sets the term's status. This PUT is not conditional as the only thing affected by this PUT is the status, and there is no way an update can be lost.
Authentication required: true
PUT http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/status
The request also support the following request headers:
Accept
text/plainThis method accepts the following content types, as named by the Content-Type: header:
text/plain - The label of the status value to which the term's status is to be set. The values for status are defined by users in the term's type. If the specified value is not one of the type's status value, a 400, invalid request, response code is returned.This operation can return the following media type representations by setting the Accept: header of the request:
text/plain
The /terms/{termId}/state resource represents the current state of the specified term. This resource is intended to allow the workflows used by BDN to check and set a term's state. The values for state are "normal" and "deleting". A term with a state of "deleting" indicates that a delete workflow has been started for the term.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
Gets a term's state. The value for state can be "normal" or "deleting."
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/state
The request also support the following request headers:
Accept
text/plainThe term's state
This operation can return the following media type representations by setting the Accept: header of the request:
text/plain
Sets the term's state. This PUT is not a conditional PUT as the state of the term can only be changed from "deleting" back to "normal" in order to abort a delete. There is no possibility of a "lost" update.
Authentication required: true
PUT http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/state
| Name | Type | Description |
|---|---|---|
| ?value | string |
Normal is the only valid value. Required. |
| ?workflowKey | string | The workflow's key. Required. |
The request also support the following request headers:
Accept
text/plainNone
The current state of the term
This operation can return the following media type representations by setting the Accept: header of the request:
The /terms/{termId}/name resource is the name of the specified term. This resource is intended to allow renaming of terms.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
Gets a term's name
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/name
The request also support the following request headers:
Accept
text/plainThe term's name
This operation can return the following media type representations by setting the Accept: header of the request:
text/plain
Renames the term. There is no possibility of a "lost" update.
Authentication required: true
PUT http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/name
| Name | Type | Description |
|---|---|---|
| ?value | string |
The new name. Required. |
The request also support the following request headers:
Accept
text/plainNone
The current state of the term
This operation can return the following media type representations by setting the Accept: header of the request:
The /terms/{termId}/parentId resource represents the specified term's parent id. This resource is intended to allow the user to change a term's parent.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
Gets a term's parent's ID. If the term does not have a parent, a value of "none" is returned.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/parentId
The request also support the following request headers:
Accept
text/plainThe term's parent's ID. A value of "none" means the term does not have a parent.
This operation can return the following media type representations by setting the Accept: header of the request:
text/plain
Changes the term's parent. This PUT is not a conditional PUT as there is no possibility of a "lost" update.
Authentication required: true
PUT http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/parentId
| Name | Type | Description |
|---|---|---|
| ?value | string |
The ID of the term's new parent. A value of "none" means the term will have no parent. Required. |
The term's name must be unique within the parent term's namespace. Otherwise, a 400, bad request, is returned.
The request also support the following request headers:
Accept
text/plainNone
The new parent ID of the term
This operation can return the following media type representations by setting the Accept: header of the request:
The /terms/{termId}/revisions collection is the collection of revisions to the term.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
Get Term's Revisions gets the term's revisions, (in other words, the term's history).
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/revisions
| Name | Type | Description |
|---|---|---|
| ?start | integer |
The starting index of the first item in a page. The index is 0-based. Default is 0. |
| ?limit | integer | The maximum number of items to return in this page of results. The actual number of returned items may be less if the collection has been exhausted. The default is 10. |
Note that sorting and filtering are not supported. Revisions are always sorted most recent to least recent.
The request also support the following request headers:
Accept
application/vnd.sas.collection+jsonapplication/vnd.sas.collection+xmlapplication/jsonapplication/xmlA collection of application/vnd.sas.business.data.term.revision.summary representing the term's revisions
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.collection+json
application/vnd.sas.collection+xml
application/json, equivalent to application/vnd.sas.collection+jsonapplication/xml, equivalent to application/vnd.sas.collection+xmlThe /terms/{termId}/revisions/{revisionId} resource represents a revision of a term.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
| revisionId | string | The revision's ID |
Get Term's Revision gets the specified revision of the term. Supports the HEAD method as well.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/revisions/{revisionId}
The request also support the following request headers:
Accept
application/vnd.sas.business.data.term.revision+jsonapplication/vnd.sas.business.data.term.revision+xmlapplication/jsonapplication/xmlThe term's revision
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.term.revision+json
application/vnd.sas.business.data.term.revision+xml
application/json, equivalent to application/vnd.sas.business.data.term.revision+jsonapplication/xml, equivalent to application/vnd.sas.business.data.term.revision+jsonThe /terms/{termId}/revisions/{revisionId}/state} resource is the state of the specified revision.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
| revisionId | string | The revision's ID |
Get Term Revision's State gets the revision's state which can be "draft" or "published."
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/revisions/{revisionId}/state
The request also support the following request headers:
Accept
text/plainThe state
This operation can return the following media type representations by setting the Accept: header of the request:
text/plain
Publish Revision publishes the last draft revision of the term. A new published revision is created from all the draft revisions which means the resulting revision will have a new ID. All the draft revisions are deleted. This method is only valid on the last draft revision of a term. If this method is called on a revision that is not the last draft revision, a 400, bad request, is returned. This PUT is not a conditional PUT because the only change to the state that is allowed is from "draft" to "published" and there is no possibility of a "lost" update.
Authentication required: true
PUT http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/revisions/{revisionId}/state
Query parameters
| Name | Type | Description |
|---|---|---|
| ?value | string |
The value of the state. The only valid value is "published." |
The request also support the following request headers:
Accept
application/vnd.sas.business.data.term.revision+jsonapplication/vnd.sas.business.data.term.revision+xmlapplication/vnd.sas.business.data.term.revision.summary+jsonapplication/vnd.sas.business.data.term.revision.summary+xmlapplication/jsonapplication/xmlThis method has no content body.
The newly published revision of the draft term is returned.
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.term.revision.summary+json
application/vnd.sas.business.data.term.revision.summary+xml
application/vnd.sas.business.data.term.revision+json
application/vnd.sas.business.data.term.revision+xml
application/json, equivalent to application/vnd.sas.business.data.term.revision.summary+jsonapplication/xml, equivalent to application/vnd.sas.business.data.term.revision.summary+xmlThe /terms/{termId}/drafts collection is the collection of draft revisions to the term.
| Name | Type | Description |
|---|---|---|
| termId | string |
The term's ID |
Get Term's Draft Revisions gets the term's drafts revisions, which consist of changes to the term since it was last published. This method is essentially the same as filtering the revisions on state equal to "draft."
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/drafts
| Name | Type | Description |
|---|---|---|
| ?start | integer |
The starting index of the first item in a page. The index is 0-based. Default is 0. |
| ?limit | integer | The maximum number of items to return in this page of results. The actual number of returned items may be less if the collection has been exhausted. The default is 10. |
Note: Sorting and filtering are not supported. Draft revisions are always sorted most recent to least recent.
The request also support the following request headers:
Accept
application/vnd.sas.collection+jsonapplication/vnd.sas.collection+xmlapplication/jsonapplication/xmlA collection of application/vnd.sas.business.data.term.revision.summary representing the term's draft revisions
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.collection+json
application/vnd.sas.collection+xmo
application/json, equivalent to application/vnd.sas.collection+jsonapplication/xml, equivalent to application/vnd.sas.collection+xmlRevert Term to Last Published Revision reverts the term to its last published revision by deleting all the draft revisions. If the term was never published, the term is deleted.
Authentication required: true
DELETE http://www.hostname.com/SASBusinessDataNetwork/rest/terms/{termId}/drafts
This operation can return the following media type representations by setting the Accept: header of the request:
The /types collection represents the term types.
Gets all the term types.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/types
| Name | Type | Description |
|---|---|---|
| ?start | integer |
The starting index of the first item in a page. The index is 0-based. Default is 0. |
| ?limit | integer | The maximum number of items to return in this page of results. The actual number of returned items may be less if the collection has been exhausted. The default is 10. |
The request also support the following request headers:
Accept
application/vnd.sas.collection+jsonapplication/vnd.sas.collection+xmlapplication/jsonapplication/xmlA collection of application/vnd.sas.business.data.term.type that are term types.
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.collection+json
application/vnd.sas.collection+xml
application/json, equivalent to application/vnd.sas.collection+jsonapplication/xml, equivalent to application/vnd.sas.collection+xmlThe /types/{typeId} resource represents a term type.
| Name | Type | Description |
|---|---|---|
| typeId | string |
The type's ID |
Gets the specified term type. This resource also supports the HEAD method.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/types/{typeId}
The request also supports the following request headers:
Accept
application/vnd.sas.business.data.term.type+jsonapplication/vnd.sas.business.data.term.type+xmlapplication/jsonapplication/xmlThe term type
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.term.type+json
application/vnd.sas.business.data.term.type+xml
application/json, equivalent to application/vnd.sas.business.data.term.type+jsonapplication/xml, equivalent to application/vnd.sas.business.data.term.type+xmlThe /types/{typeId}/terms collection represents the collection of all the terms of the specified type.
| Name | Type | Description |
|---|---|---|
| typeId | string |
The type's ID |
Gets the terms of the specified type
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/types/{typeId}/terms
| Name | Type | Description |
|---|---|---|
| ?start | integer |
The starting index of the first item in a page. The index is 0-based. Default is 0. |
| ?limit | integer | The maximum number of items to return in this page of results. The actual number of returned items may be less if the collection has been exhausted. The default is 10. |
Gets a collection of summary term (application/vnd.sas.business.data.term.summary) resources representing the terms that are the specified type.
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.collection+json
application/vnd.sas.collection+xml
application/json
application/xml
The /snapshots collection represents all snapshots.
Get Snapshots gets all the snapshots
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/rest/snapshots
| Name | Type | Description |
|---|---|---|
| ?start | integer |
The starting index of the first item in a page. The index is 0-based. Default is 0. |
| ?limit | integer | The maximum number of items to return in this page of results. The actual number of returned items may be less if the collection has been exhausted. The default is 10. |
The request also supports the following request headers:
Accept
application/vnd.sas.collection+jsonapplication/vnd.sas.collection+xmlapplication/jsonapplication/xmlA collection of snapshots (application/vnd.sas.business.data.snapshot)
| rel | HTTP method | Description |
|---|---|---|
| create | POST |
Creates a snapshot.
|
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.collection+json
application/vnd.sas.collection+xml
application/json, equivalent to application/vnd.sas.collection+jsonapplication/xml, equivalent to application/vnd.sas.collection+xmlCreate Snapshot creates a snapshot by copying the BDN database into a new schema.
Authentication required: true
POST http://www.hostname.com/SASBusinessDataNetwork/rest/rest/snapshots
This method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.business.data.snapshot+json
application/vnd.sas.business.data.snapshot+xml
Only the name and description fields will be used. Leading and trailing spaces will be trimmed from the name. If the name has already been used (case-sensitive) or if the name exceeds 100 characters, the creation will fail with a 400 - Bad Request.
The request also supports the following request headers:
Accept
application/vnd.sas.business.data.snapshot+jsonapplication/vnd.sas.business.data.snapshot+xmlapplication/jsonapplication/xmlReturns the created snapshot
ETag
Location
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.snapshot+json
application/vnd.sas.business.data.snapshot+xml
application/json, equivalent to application/vnd.sas.business.data.snapshot+jsonapplication/xml, equivalent to application/vnd.sas.business.data.snapshot+xmlThe /snapshots/{snapshotId} resource represents one snapshot.
| Name | Type | Description |
|---|---|---|
| snapshotId | string |
The snapshot's ID |
Get Snapshot gets a snapshot.
Authentication required: true
GET http://www.hostname.com/SASBusinessDataNetwork/rest/rest/snapshots/{snapshotId}
The request also supports the following request headers:
Accept
application/vnd.sas.business.data.snapshot+xmlapplication/vnd.sas.business.data.snapshot+jsonapplication/xmlapplication/jsonThe snapshot
ETag
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.snapshot.json
application/vnd.sas.business.data.snapshot.xml
application/json, equivalent to application/vnd.sas.business.data.snapshot+jsonapplication/xml, equivalent to application/vnd.sas.business.data.snapshot+xmlUpdate Snapshot updates the snapshot. Only the snapshot's name and description can be changed. Leading and trailing spaces will be trimmed from the name. If the name has already been used (case-sensitive) or if the name exceeds 100 characters, the update will fail with a 400 - Bad Request.
Authentication required: true
PUT http://www.hostname.com/SASBusinessDataNetwork/rest/rest/snapshots/{snapshotId}
This method accepts the following content types, as named by the Content-Type: header:
application/vnd.sas.business.data.snapshot+json
application/vnd.sas.business.data.snapshot+xml
application/json
application/xml
The request also supports the following request headers:
Accept
application/vnd.sas.business.data.snapshot+jsonapplication/vnd.sas.business.data.snapshot+xmlapplication/jsonapplication/xmlIf-Match
ETag header, obtained from the GET or HEADThe updated snapshot
ETag
This operation can return the following media type representations by setting the Accept: header of the request:
application/vnd.sas.business.data.snapshot.json
application/vnd.sas.business.data.snapshot.xml
application/json, equivalent to application/vnd.sas.business.data.snapshot+jsonapplication/xml, equivalent to application/vnd.sas.business.data.snapshot+xmlDelete Snapshot deletes a snapshot
Authentication required: true
DELETE http://www.hostname.com/SASBusinessDataNetwork/rest/rest/snapshots/{snapshotId}
None
This operation can return the following media type representations by setting the Accept: header of the request: