Representations, or media types, are a standard for describing the format of content on the Internet. The SAS Business Data Network REST API contains a complete list of available media types it supports for requests and responses. An HTTP response with a body always contains a header with the content type set to a specific media type. A user can control the content type in a response by setting an accept header in a request.
Externally-defined media types include the following:
An example of the selection application is shown below:
{
"type" : "id",
"resources" : { "12345678", "87654321" }
}
The application/vnd.sas.business.data.term.summary media type is a summary of a term that is appropriate to be used in lists of terms.
| Rel | HTTP Method | Description |
|---|---|---|
| self | GET |
A self link to get the full term
|
| up | GET |
A link to the collection of resources that contains this resource. In other words, this link will represent the link used to get the collection of summary term objects. The URI depends on how the collection was retrieved.
|
| type | GET |
A link to the term's type
|
| parent | GET |
A link to the term's parent term. If the term does not have a parent, this link will not be present.
|
| children | GET |
A link to this term's children
|
| isTermRelatedToTag | HEAD |
A link to check to see if the term is related to the tag. Only present if the representation was retrieved in a tag's collection of terms.
|
| getTermRelatedToTag | GET |
A link to get the term related to the tag. Only present if the representation was retrieved in a tag's collection of terms.
|
| removeTermFromTag | DELETE |
A link to remove the term from the specified tag's collection of terms. Only present if the representation was retrieved in a tag's collection of terms. The term itself is not deleted; only the relationship is deleted.
|
This media type contains the following members:
| Rel | Type | Description |
|---|---|---|
| version | integer | This media type's schema version number. This representation is version 1. |
| id | string | The unique identifier of the term |
| parentId | string | The ID of the parent term. A value of "none" indicates the term has no parent (i.e. the term is a root term). |
| revision | string | The current revision of the term. A value of "5.2" would indicate that the term has been published five times and currently has two draft versions. If the draft revision was then published, the current revision of the term would be "6.0." |
| typeId | string | The ID of the term's type |
| type | string |
The name of the term's type |
| name | string | The term's name |
| state | string | The term's state. The term's state can be "normal" or "deleting". "deleting" indicates that the term is in the process of being deleted in a "delete" workflow. |
| description | string | The term's description |
| status | string | The term's status which is the label on one of the status values defined in the term's type. These values are entered by users and can vary per type. Examples from the default type include "Editing," "Under Review," and "Published." |
| importance | string | The term's importance which is the label on one of the importance values defined in the term's type. These values are entered by users and can vary per type. Examples from the default type include "Critical," "High," and "Low." |
| modifiedBy | string |
User ID of user to last modify the term last. The user id can be used with the identities service to get the name of the user. |
| modifiedTimeStamp | string |
Date and time the term was last modified. String format is W3C standard in GMT (yyyy-mm-ddThh:mm:ss.SSSZ). |
| lockedBy | string | User ID of the user who locked the term. The user id can be used with the identities service to get the name of the user. If the term is not locked, this member will not be present. |
| lockedTimeStamp | string |
Date and time the term was locked. String format is W3C standard in GMT (yyyy-mm-ddThh:mm:ss.SSSZ). If the term is not locked, this member will not be present. |
| links | list of link objects | Zero or more links to related resources or operations. See the above link relations table for a description of the link types. |
The application/vnd.sas.business.data.term.relationship media type is a summary of a related term and its relationship that is appropriate to be used in a collection of related terms. It is the same as summary term media type (application/vnd.sas.business.data.term.summary). except it has a label added to the members. The label is used to describe the relationship between the two terms.
All of the links specified in application/vnd.sas.business.data.term.summary with the subtraction of the "self" link and the addition of the following.
| Rel | HTTP Method | Description |
|---|---|---|
| self | GET |
Gets the relationship between the two terms.
|
| updateRelationship | PUT |
Updates the term relationship (i.e. the label on the relationship)
|
| removeRelationship | DELETE |
Removes the relationships between the two terms.
|
This media type contains the following members in addition to the members in application/vnd.sas.business.data.term.summary:
| Rel | Type | Description |
|---|---|---|
| label | string | The label the user added to the relationship between two terms. This member will not be present if the user did not add a label. |
The application/vnd.sas.business.data.term media type represents a term.
These are the links in addition to the links from application/vnd.sas.business.data.term.summary. The "up" link is not included.
| Rel | HTTP Method | Description |
|---|---|---|
| alternate | GET |
Gets the summary version of the term
|
| update | PUT |
Updates the term
|
| delete | DELETE |
Deletes the term
|
| state | GET |
Gets the term's state. Valid values are "normal" and "deleting." "deleting" indicates that the term is in a delete workflow.
|
| abortDelete | PUT |
Aborts the delete of the term that is in a delete workflow. There is no request body and the response body is text/plain. This link is present only if the term's state is "deleting."
|
| name | GET |
Gets the term's name.
|
| rename | PUT |
Renames the term. The name may not be greater than 100 characters. The name must be unique, case sensitive, within the parent term's name space
|
| parentId | GET |
Gets the term's parent's ID. If a term does not have a parent, "none" is returned.
|
| reparent | PUT |
Changes a term's parent. To make a term a root (unparented) term, specify a value of "none." If a parent is specified, it must exist. The term's name must be unique within its new parent's namespace.
|
| revisions | GET |
A link to this term's revisions
|
| drafts | GET |
A link to this term's drafts. If the term does not have any draft revisions.
|
| tags | GET |
A link to this term's tags
|
| relatedTerms | GET |
A link to this term's relatedTerms
|
| comments | GET |
A link to this term's comments
|
| contacts | GET |
A link to this term's contacts
|
This media type contains all of the members from application/vnd.sas.business.data.term.summary in addition to the following members:
| Rel | Type | Description |
|---|---|---|
| resourceId | string | The ID of the term resource in the relationships service |
| requirements | string | The term's requirements |
| attributes | list of attributes |
A list of the term's attribute values. Each attribute may contain these members:
|
| customAttributes | list of attributes |
A list of the term's custom attribute values. This member is included for backwards compatibility only and its use should be avoided. Each custom attribute may contain these members:
|
| references | list of references |
A list of the term's references. Each reference will contain these members:
|
| associatedItems | list of associated items |
A list of the term's associated item. Each associated item may contain these members:
|
The application/vnd.sas.business.data.term.revision.summary media type is a summary of a term's revision. The collection of revisions represents the history of the term.
| Rel | HTTP Method | Description |
|---|---|---|
| self | GET |
A self link to get the full term revision
|
| up | GET |
A link to the term's revisions
|
This media type contains the following members:
| Rel | Type | Description |
|---|---|---|
| version | integer | This media type's schema version number. This representation is version 1. |
| id | string | The unique identifier of the term's revision |
| revision | string |
The term's revision (for example: "3.0", "0.2", "1.4") |
| state | string |
The state of the revision. The state can either be "draft" or "published." |
| createdBy | string |
The user ID of the user that created the term's revision. This ID can be used with the identity service to get information such as the user's name. |
| creationTimeStamp | string |
The date and time the revision was created. String format is W3C standard in GMT (yyyy-mm-ddThh:mm:ss.SSSZ). |
| revisionDescription | string | A description of the changes made in this revision |
| termId | string | The unique identifier of the term |
| links | list of link objects | Zero or more links to related resources or operations. See the above link relations table for a description of the link types. |
The application/vnd.sas.business.data.term.revision media type is a revision of a term. It contains all the members from the summary revision media type for identification purposes as well as several members from the application/vnd.sas.business.data.term media type. The members from the term media type represent the contents of the term in that revision.
| Rel | HTTP Method | Description |
|---|---|---|
| self | GET |
A self link
|
| alternate | GET |
A self link to get the summary term revision
|
| state | GET |
A link to get the revision's state. |
| publish | PUT |
A link to publish the revision. There is no request body and the response body is text/plain. This link is present only on the last draft revision.
|
| term | GET |
A link to get the term.
|
This media type contains the members from the application/vnd.sas.business.data.term.revision.summary media type as well as:
| Rel | Type | Description |
|---|---|---|
| description | string | The term's description |
| requirements | string | The term's requirements |
| status | string | The term's status which is the label on one of the status values defined in the term's type. These values are entered by users and can vary per type. Examples from the default type include "Editing", "Under Review", and "Published." |
| importance | string | The term's importance which is the label on one of the importance values defined in the term's type. These values are entered by users and can vary per type. Examples from the default type include "Critical", "High", and "Low." |
| attributes | list of attributes |
A list of the term's attribute values. Each attribute may contain these members:
|
| customAttributes | list of attributes |
A list of the term's custom attribute values. This member is included for backwards compatibility only and its use should be avoided. Each custom attribute may contain these members:
|
| references | list of references |
A list of the term's references. Each reference will contain these members:
|
| associatedItems | list of associated items |
A list of the term's associated items. Each associated item may contain these members:
|
The application/vnd.sas.business.data.tag media type represents a tag.
| Rel | HTTP Method | Description |
|---|---|---|
| self | GET |
A self link
|
| update | PUT |
Updates the tag
|
| delete | DELETE |
Deletes the tag
|
| terms | GET |
A link to this tag's terms
|
| up | GET |
A link to the tag's containing collection. If the tag was not retrieved as part of a collection, this link will not be present.
|
| isTagRelatedToTerm | HEAD |
A link to check to see if the term is related to the tag. Only present if the representation was retrieved in a term's collection of tags.
|
| getTagRelatedToTerm | GET |
A link to get the tag related to the term. Only present if the representation was retrieved in a term's collection of tags. If the tag is not related to the term, a 404 (Not Found) is returned.
|
| removeTagFromTerm | DELETE |
A link to remove the tag from the specified term's collection of tags. Only present if the representation was retrieved in a term's collection of tags. The tag itself is not deleted; only the relationship is deleted.
|
This media type contains the following members:
| Name | Type | Description |
|---|---|---|
| version | integer | This media type's schema version number. This representation is version 1. |
| id | string | The tag's ID |
| resourceId | string |
The ID of the term resource in the relationships service |
| name | string |
The tag's name |
| links | list of link objects | Zero or more links to related resources or operations. See the above link relations table for a description of the link types. |
The application/vnd.sas.business.data.comment media type represents a term's comment.
| Rel | HTTP Method | Description |
|---|---|---|
| self | GET |
A self linkURI: |
| update | PUT |
Updates the comment URI: |
| delete | DELETE |
Deletes the comment
|
| up | GET |
A link to the term's comments
|
This media type contains the following members:
| Name | Type | Description |
|---|---|---|
| version | integer | This media type's schema version number. This representation is version 1. |
| id | string | The comment's ID |
| userId | string |
The user ID of the last user to update the comment |
| creationTimeStamp | string |
The date and time the comment was created. String format is W3C standard in GMT (yyyy-mm-ddThh:mm:ss.SSSZ).
|
| text | string | The comment's text |
| links | list of link objects | Zero or more links to related resources or operations. See the above link relations table for a description of the link types. |
The application/vnd.sas.business.data.contact media type represents a term's contact. A contact is really a combination of a user and the user's business role for the term. The business roles are defined as part of a term's type.
| Rel | HTTP Method | Description |
|---|---|---|
| up | GET |
A link to the term's contacts
|
| delete | DELETE |
A link to delete the term's contact
|
This media type contains the following members:
| Name | Type | Description |
|---|---|---|
| version | integer | This media type's schema version number. This representation is version 1. |
| user | object |
The user that is a contact for the term. The user is a user obtained from the Identities service. The user contains these members:
|
| businessRole | object |
The business role that the specified user has for the term. Business roles are defined in the term's type. The business role contains the following members:
|
The application/vnd.sas.business.data.term.type represents a term type.
| Rel | HTTP Method | Description |
|---|---|---|
| self | GET |
A self link
|
| up | GET |
Gets the collection of types. If the type was not retrieved as part of a collection, this link will not be present.
|
| terms | GET |
A link to all the terms of this type
|
| Name | Type | Description |
|---|---|---|
| id | string | The type's ID |
| name | string |
The type's name |
| description | string |
The type's description |
| modifiedBy | string | The user id that was last used to modified the type |
| modificationTimeStamp | string |
The time stamp of the last modification of the type. String format is W3C standard in GMT (yyyy-mm-ddThh:mm:ss.SSSZ). |
| state | string | The type's state. Current values are "enabled" and "disabled." |
| statusValues | list of status values |
A list of the possible values for status. Each status value contains the following members:
|
| importanceValues | list of importance values |
A list of the possible values for importance. Each importance value contains the following members:
|
| attributes | list of user defined attributes |
A list of the user defined attributes for the type. Each attribute contains the following members:
Each value in the values list will have the following members:
|
| links | list of link objects | Zero or more links to related resources or operations. See the above link relations table for a description of the link types. |
The application/vnd.sas.business.data.snapshot media type is a description of a snapshot.
| Rel | HTTP Method | Description |
|---|---|---|
| self | GET |
A self link
|
| up | GET |
A link to the collection of snapshots that contains this snapshot.
|
| update | PUT |
Updates a snapshot. Only the snapshot's name and description can be updated.
|
| delete | DELETE |
Deletes a snapshot.
|
This media type contains the following members:
| Name | Type | Description |
|---|---|---|
| version | integer | This media type's schema version number. This representation is version 1. |
| id | string | The unique identifier of the snapshot |
| name | string |
The snapshot's name |
| description | string | The snapshot's description |
| createdBy | string |
User ID of user that created the snapshot. The user ID can be used with the identities service to get the name of the user. |
| creationTimeStamp | string |
Date and time the snapshot was created. String format is W3C standard in GMT (yyyy-mm-ddThh:mm:ss.SSSZ). |
| modifiedBy | string | User ID of user to last modify the snapshot. The user ID can be used with the identities service to get the name of the user. |
| modifiedTimeStamp | string |
Date and time the snapshot was last modified. String format is W3C standard in GMT (yyyy-mm-ddThh:mm:ss.SSSZ). |
| schema | string | Name of the schema that contains the snapshot |
| links | list of link objects | Zero or more links to related resources or operations. See the above link relations table for a description of the link types. |